-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 700 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 700 Bytes
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
package=contracts
include pypackage.mk
bump:
bumpversion patch
git push --tags
git push --all
upload-pip:
rm -f dist/*
rm -rf src/*.egg-info
python3 setup.py sdist
twine upload dist/*
upload:
rm -f dist/*
rm -rf src/*.egg-info
python3 setup.py sdist
devpi use $(TWINE_REPOSITORY_URL)
devpi login $(TWINE_USERNAME) --password $(TWINE_PASSWORD)
devpi upload --verbose dist/*
name=contracts-python3
test-python3:
docker stop $(name) || true
docker rm $(name) || true
docker run -it -v "$(shell realpath $(PWD)):/contracts" -w /contracts --name $(name) python:3 /bin/bash
test-python3-install:
pip install -r requirements.txt
pip install nose
python setup.py develop --no-deps