Skip to content

Commit

Permalink
[chores] Removed "publish" from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Nov 22, 2024
1 parent adddf56 commit 9177569
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#!/usr/bin/env python
import os
import sys

from setuptools import find_packages, setup

from openwisp_network_topology import get_version
Expand All @@ -26,19 +23,6 @@ def get_install_requires():
return requirements


if sys.argv[-1] == 'publish':
# delete any *.pyc, *.pyo and __pycache__
os.system('find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf')
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload -s dist/*")
os.system("rm -rf dist build")
args = {'version': get_version()}
print("You probably want to also tag the version now:")
print(" git tag -a %(version)s -m 'version %(version)s'" % args)
print(" git push --tags")
sys.exit()


setup(
name='openwisp-network-topology',
version=get_version(),
Expand Down

0 comments on commit 9177569

Please sign in to comment.