-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
45 lines (30 loc) · 868 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
35
36
37
38
39
40
41
42
43
44
45
test: lint-check
lint-check:
pipenv run black --check *.py **/*.py
lint:
pipenv run black *.py **/*.py
setup:
pip install pipenv
pipenv install --dev --three
clean:
rm -rf dist
#---- Packaging ----
package: requirements.txt clean *.py */*.py
pipenv run python setup.py sdist bdist_wheel
requirements.txt: Pipfile Pipfile.lock
pipenv run pipenv_to_requirements
#---- Publishing ----
check-package: package
pipenv run twine check dist/*
publish-test: check-package
pipenv run twine upload --repository-url https://test.pypi.org/legacy/ dist/*
publish-prod: check-package
pipenv run twine upload dist/*
publish-travis: check-package
pipenv run twine upload dist/* -u $$PYPI_USERNAME -p $$PYPI_PASSWORD
travis:
make test
travis-deploy:
git checkout master ;
./scripts/bump-version-from-commit.sh ;
./scripts/push-and-publish-if-changed.sh ;