Skip to content

Commit 113e139

Browse files
committed
[chores] Removed "publish" from setup.py
1 parent ab5956e commit 113e139

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

setup.py

-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
#!/usr/bin/env python
2-
import os
3-
import sys
4-
52
from setuptools import find_packages, setup
63

74
from openwisp_firmware_upgrader import get_version
85

9-
if sys.argv[-1] == 'publish':
10-
# delete any *.pyc, *.pyo and __pycache__
11-
os.system('find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf')
12-
os.system("python setup.py sdist bdist_wheel")
13-
os.system("twine upload -s dist/*")
14-
os.system("rm -rf dist build")
15-
args = {'version': get_version()}
16-
print("You probably want to also tag the version now:")
17-
print(" git tag -a %(version)s -m 'version %(version)s'" % args)
18-
print(" git push --tags")
19-
sys.exit()
20-
21-
226
setup(
237
name='openwisp-firmware-upgrader',
248
version=get_version(),

0 commit comments

Comments
 (0)