Skip to content

Commit eb36511

Browse files
committedNov 22, 2024·
[chores] Removed "publish" from setup.py
1 parent 85cc0a5 commit eb36511

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_controller import get_version
@@ -26,19 +23,6 @@ def get_install_requires():
2623
return requirements
2724

2825

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

0 commit comments

Comments
 (0)
Please sign in to comment.