forked from JuliaPy/pyjulia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 800 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
# Yes python packaging sucks.
# I hope that a makefile
# will help everyone to update the pakage.
# don't foret to bump the version number in setup.py
.PHONY: dist
clean:
rm -rf build
rm -rf dist
dist: clean
# source distribution
python3 setup.py sdist
# 'compiled' distribution
# you mignt need to `pip3 install wheel`
python3 setup.py bdist_wheel
upload: dist
# upload to Python package index`
twine upload dist/*
download-testpypi: dist/.download-testpypi
dist/.download-testpypi:
rm -rf dist
pip download --dest dist --no-deps --index-url https://test.pypi.org/simple/ julia
pip download --dest dist --no-deps --index-url https://test.pypi.org/simple/ julia --no-binary :all:
touch $@
release: dist/.download-testpypi
twine upload dist/julia-*-any.whl dist/julia-*.tar.gz