forked from AndreaCensi/geometry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (32 loc) · 966 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
46
47
48
package=geometry
include pypackage.mk
bump:
bumpversion patch
git push --tags
git push --all
env=-e PIP_INDEX_URL=$(PIP_INDEX_URL) -e DOCKER_HUB_USERNAME=$(DOCKER_HUB_USERNAME) -e DOCKER_HUB_PASSWORD=$(DOCKER_HUB_PASSWORD)
test-circleci-local-staging:
circleci local execute --job test-3.8-staging $(env)
upload-twine:
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=geometry-python3
test-python3:
docker stop $(name) || true
docker rm $(name) || true
docker run -it -v "$(shell realpath $(PWD)):/geometry" -w /geometry --name $(name) python:3 /bin/bash
test-python3-install:
pip install -r requirements.txt
pip install nose
python setup.py develop --no-deps
black:
black -l 110 --target-version py37 src