forked from graphql-python/graphene-mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (28 loc) · 792 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
clean:
@rm -f .coverage 2> /dev/null
@rm -rf .eggs 2> /dev/null
@rm -rf .cache 2> /dev/null
@rm -rf ./graphene_mongo/.cache 2> /dev/null
@rm -rf build 2> /dev/null
@rm -rf dist 2> /dev/null
@rm -rf graphene_mongo.egg-info 2> /dev/null
@find . -name "*.pyc" -delete
@find . -name "*.swp" -delete
@find . -name "__pycache__" -delete
lint:
@ruff check graphene_mongo
@ruff format . --check
test: clean
pytest graphene_mongo/tests --cov=graphene_mongo --cov-report=html --cov-report=term
register-pypitest:
#python setup.py register -r pypitest
deploy-pypitest: clean
poetry build
#poetry publish --repository testpypi
twine upload --repository testpypi dist/*
register:
#python setup.py register -r pypi
deploy: clean
poetry build
twine upload dist/*
#poetry publish