forked from foospidy/pysigsci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (46 loc) · 1.55 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
codestyle:
pycodestyle setup.py
pycodestyle pysigsci/__init__.py
pycodestyle pysigsci/sigsciapi/__init__.py
pycodestyle pysigsci/sigsciapi/sigsciapi.py
pycodestyle pysigsci/powerrules/__init__.py
pycodestyle pysigsci/powerrules/powerrules.py
pycodestyle pysigsci/bin/pysigsci
pycodestyle pysigsci/bin/pysigscia
pycodestyle example.py
fix-codestyle:
autopep8 --in-place --aggressive setup.py
autopep8 --in-place --aggressive pysigsci/__init__.py
autopep8 --in-place --aggressive pysigsci/sigsciapi/__init__.py
autopep8 --in-place --aggressive pysigsci/sigsciapi/sigsciapi.py
autopep8 --in-place --aggressive pysigsci/powerrules/__init__.py
autopep8 --in-place --aggressive pysigsci/powerrules/powerrules.py
autopep8 --in-place --aggressive pysigsci/bin/pysigsci
autopep8 --in-place --aggressive pysigsci/bin/pysigscia
autopep8 --in-place --aggressive example.py
lint:
pylint pysigsci/__init__.py
pylint pysigsci/sigsciapi/__init__.py
pylint pysigsci/sigsciapi/sigsciapi.py
pylint pysigsci/powerrules/__init__.py
pylint pysigsci/powerrules/powerrules.py
pylint pysigsci/bin/pysigsci
pylint pysigsci/bin/pysigscia
pylint example_with_api_token.py
pylint example_without_api_token.py
env:
virtualenv .env
. .env/bin/activate \
&& pip install --upgrade pip \
&& pip install --upgrade setuptools \
&& pip install --upgrade -r requirements.txt
install:
pip install -r requirements.txt
wheel:
python setup.py bdist_wheel --universal
publish:
twine upload --skip-existing dist/*
clean:
find . -name "*.pyc" -type f -delete
rm -rf dist
rm -rf build