From 9177569382417ae5ab90b1148a48c1e0cfa5a158 Mon Sep 17 00:00:00 2001 From: Gagan Deep Date: Sat, 23 Nov 2024 03:27:33 +0530 Subject: [PATCH] [chores] Removed "publish" from setup.py --- setup.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/setup.py b/setup.py index 36641cc7..a7b873f1 100644 --- a/setup.py +++ b/setup.py @@ -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 @@ -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(),