#!/usr/bin/env python import os import sys from openwisp_utils import get_version from setuptools import find_packages, setup 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-utils', version=get_version(), license='BSD-3-Clause', author='Rohith Asrk', author_email='*****@*****.**', description='OpenWISP 2 Utilities', long_description=open('README.rst').read(), url='http://openwisp.org', download_url='https://github.com/openwisp/openwisp-utils/releases', platforms=['Platform Independent'], keywords=['django', 'netjson', 'openwrt', 'networking', 'openwisp'],
#!/usr/bin/env python import os import sys from openwisp_utils import get_version from setuptools import find_packages, setup 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-utils', version=get_version(), license='BSD-3-Clause', author='Rohith Asrk', author_email='*****@*****.**', description='OpenWISP 2 Utilities', long_description=open('README.rst').read(), url='http://openwisp.org', download_url='https://github.com/openwisp/openwisp-utils/releases', platforms=['Platform Independent'],