/
valemobil
/
python-future
Обзор
Документация
Войти
/
valemobil
/
python-future
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.12.2
setup.py
102 строки
3 KB
Ed Schofield
Change setup.py to use future.backports; make it a package
05 май 2014, 20:30
05 май 2014, 20:30
c4abb6b
Код
Авторство
О чём код?
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup import future if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() NAME = "future" PACKAGES = ["future", "future.builtins", "future.types", "future.standard_library", "future.backports", "future.backports.email", "future.backports.email.mime", "future.backports.html", "future.backports.http", "future.backports.test", "future.backports.urllib", # "future.backports.xmlrpc", "future.moves", "future.moves.html", "future.moves.http", "future.moves.test", "future.moves.urllib", "future.moves.xmlrpc", "future.tests", # "future.tests.test_email", "future.utils", "past", "past.builtins", "past.types", "past.utils", "past.tests", "past.translation", "libfuturize", "libfuturize.fixes", "libpasteurize", "libpasteurize.fixes"] PACKAGE_DATA = {'': [ 'README.rst', 'LICENSE.txt', 'futurize.py', 'pasteurize.py', 'discover_tests.py', 'check_rst.sh' ]} REQUIRES = [] VERSION = future.__version__ DESCRIPTION = "Clean single-source support for Python 3 and 2" LONG_DESC = future.__doc__ AUTHOR = "Ed Schofield" AUTHOR_EMAIL = "ed@pythoncharmers.com" URL="https://github.com/PythonCharmers/python-future" LICENSE = "MIT" KEYWORDS = "future python3 migration backport six 2to3 futurize modernize past pasteurize" CLASSIFIERS = [ "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "License :: OSI Approved", "License :: OSI Approved :: MIT License", "Development Status :: 4 - Beta", "Intended Audience :: Developers", ] setup_kwds = {} setup(name=NAME, version=VERSION, author=AUTHOR, author_email=AUTHOR_EMAIL, url=URL, description=DESCRIPTION, long_description=LONG_DESC, license=LICENSE, keywords=KEYWORDS, entry_points={ 'console_scripts': [ 'futurize = libfuturize.main:main', 'pasteurize = libpasteurize.main:main' ] }, packages=PACKAGES, package_data=PACKAGE_DATA, include_package_data=True, install_requires=REQUIRES, classifiers=CLASSIFIERS, test_suite = "discover_tests", **setup_kwds )