Skip to content

Commit 10c08d6

Browse files
committed
[chores] Removed publish command from setup.py
1 parent cbcef3d commit 10c08d6

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,7 +1,4 @@
11
#!/usr/bin/env python
2-
import os
3-
import sys
4-
52
from setuptools import find_packages, setup
63

74
from openwisp_monitoring import get_version
@@ -24,19 +21,6 @@ def get_install_requires():
2421
return requirements
2522

2623

27-
if sys.argv[-1] == 'publish':
28-
# delete any *.pyc, *.pyo and __pycache__
29-
os.system('find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf')
30-
os.system("python setup.py sdist bdist_wheel")
31-
os.system("twine upload -s dist/*")
32-
os.system("rm -rf dist build")
33-
args = {'version': get_version()}
34-
print("You probably want to also tag the version now:")
35-
print(" git tag -a %(version)s -m 'version %(version)s'" % args)
36-
print(" git push --tags")
37-
sys.exit()
38-
39-
4024
setup(
4125
name='openwisp-monitoring',
4226
version=get_version(),

0 commit comments

Comments
 (0)