-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
44 lines (34 loc) · 980 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
clean: clean-eggs clean-build
@find . -iname '*.pyc' -delete
@find . -iname '*.pyo' -delete
@find . -iname '*~' -delete
@find . -iname '*.swp' -delete
@find . -iname '__pycache__' -delete
clean-eggs:
@find . -name '*.egg' -print0|xargs -0 rm -rf --
@rm -rf .eggs/
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info
delete-cassettes:
@rm -rf resources/cassettes/*
enable-dev: delete-cassettes
@cp dev.env .env
enable-local: delete-cassettes
@cp local.env .env
test:
python setup.py test
build: test
pip install -U wheel
python setup.py sdist
python setup.py bdist_wheel
/usr/local/bin/package_cloud:
sudo gem install package_cloud
package_cloud: /usr/local/bin/package_cloud
release: package_cloud clean build
git rev-parse --abbrev-ref HEAD | grep '^master$$'
git tag `python setup.py -q version`
git push origin `python setup.py -q version`
package_cloud push olist/v2/python dist/*.whl
package_cloud push olist/v2/python dist/*.tar.gz