forked from jjjake/internetarchive
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (27 loc) · 1.21 KB
/
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
.PHONY: docs
VERSION=$(shell grep -m1 __version__ internetarchive/__version__.py | cut -d\' -f2)
init:
pip install responses==0.5.0 pytest-cov pytest-pep8
pip install -e .
clean:
find . -type f -name '*\.pyc' -delete
find . -type d -name '__pycache__' -delete
pep8-test:
py.test --pep8 -m pep8 --cov-report term-missing --cov internetarchive
test:
py.test --pep8 --cov-report term-missing --cov internetarchive
publish:
git tag -a v$(VERSION) -m 'version $(VERSION)'
git push --tags origin master
python setup.py sdist bdist_wheel
twine upload --repository-url https://upload.pypi.org/legacy/ --repository testpypi dist/internetarchive-$(VERSION).tar.gz
docs-init:
pip install -r docs/requirements.txt
docs:
cd docs && make html
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/build/html/index.html.\n\033[0m"
binary:
pex . --python-shebang='/usr/bin/env python3' --python python3 -e internetarchive.cli.ia:main -o ia-$(VERSION)-py3-none-any.pex -r pex-requirements.txt --use-pep517
publish-binary:
./ia-$(VERSION)-py3-none-any.pex upload ia-pex ia-$(VERSION)-py3-none-any.pex --no-derive
./ia-$(VERSION)-py3-none-any.pex upload ia-pex ia-$(VERSION)-py3-none-any.pex --remote-name=ia --no-derive