""" parse requirements.txt, ignore links, exclude comments """ requirements = [] for line in open('requirements.txt').readlines(): # skip to next iteration if comment or empty line if line.startswith('#') or line == '' or line.startswith('http') or line.startswith('git'): continue # add line to requirements requirements.append(line) return requirements if sys.argv[-1] == 'publish': os.system("python setup.py sdist bdist_wheel upload -s") 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='django-netjsongraph', version=get_version(), license='MIT', author='Federico Capoano', author_email='*****@*****.**', description='Reusable django app for collecting and visualizing network topology', url='http://netjson.org', download_url='https://github.com/interop-dev/django-netjsongraph/releases',
parse requirements.txt, ignore links, exclude comments """ requirements = [] for line in open('requirements.txt').readlines(): # skip to next iteration if comment or empty line if line.startswith('#') or line == '' or line.startswith( 'http') or line.startswith('git'): continue # add line to requirements requirements.append(line) return requirements if sys.argv[-1] == 'publish': os.system("python setup.py sdist bdist_wheel upload -s") 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='django-netjsongraph', version=get_version(), license='MIT', author='Federico Capoano', author_email='*****@*****.**', description= 'Reusable django app for collecting and visualizing network topology', url='http://netjson.org', download_url='https://github.com/interop-dev/django-netjsongraph/releases',
""" requirements = [] for line in open("requirements.txt").readlines(): # skip to next iteration if comment or empty line if line.startswith("#") or line == "" or line.startswith("http") or line.startswith("git"): continue # add line to requirements requirements.append(line) 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 upload -s") 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="django-netjsongraph", version=get_version(), license="MIT", author="Federico Capoano", author_email="*****@*****.**", description="Reusable django app for collecting and visualizing network topology", url="http://netjson.org", download_url="https://github.com/interop-dev/django-netjsongraph/releases",