def main(args): """ Invoke twisted.python.dist with the appropriate metadata about the Twisted package. """ # On Python 3, use setup3.py until Python 3 port is done: if sys.version_info[0] > 2: import setup3 setup3.main() return if os.path.exists('twisted'): sys.path.insert(0, '.') requirements = ["zope.interface >= 3.6.0"] from twisted.python.dist import ( STATIC_PACKAGE_METADATA, getExtensions, getScripts, setup, _EXTRAS_REQUIRE) setup_args = STATIC_PACKAGE_METADATA.copy() setup_args.update(dict( packages=setuptools.find_packages(), install_requires=requirements, conditionalExtensions=getExtensions(), scripts=getScripts(), include_package_data=True, zip_safe=False, extras_require=_EXTRAS_REQUIRE, )) setup(**setup_args)
def main(args): """ Invoke twisted.python.dist with the appropriate metadata about the Twisted package. """ if os.path.exists('twisted'): sys.path.insert(0, '.') if sys.version_info[0] >= 3: requirements = ["zope.interface >= 4.0.2"] else: requirements = ["zope.interface >= 3.6.0"] from twisted.python.dist import (STATIC_PACKAGE_METADATA, getExtensions, getConsoleScripts, setup, _EXTRAS_REQUIRE) setup_args = STATIC_PACKAGE_METADATA.copy() setup_args.update( dict( packages=setuptools.find_packages(), install_requires=requirements, conditionalExtensions=getExtensions(), entry_points={'console_scripts': getConsoleScripts()}, include_package_data=True, zip_safe=False, extras_require=_EXTRAS_REQUIRE, )) if sys.version_info[0] >= 3: setup_args.update(dict(cmdclass={ 'build_py': PickyBuildPy, })) setup(**setup_args)
def main(args): """ Invoke twisted.python.dist with the appropriate metadata about the Twisted package. """ # On Python 3, use setup3.py until Python 3 port is done: if sys.version_info[0] > 2: import setup3 setup3.main() return if os.path.exists('twisted'): sys.path.insert(0, '.') requirements = ["zope.interface >= 3.6.0"] from twisted.python.dist import (STATIC_PACKAGE_METADATA, getExtensions, getScripts, setup, _EXTRAS_REQUIRE) setup_args = STATIC_PACKAGE_METADATA.copy() setup_args.update( dict( packages=setuptools.find_packages(), install_requires=requirements, conditionalExtensions=getExtensions(), scripts=getScripts(), include_package_data=True, zip_safe=False, extras_require=_EXTRAS_REQUIRE, )) setup(**setup_args)
def main(): # Make sure the to-be-installed version of Twisted is used, if available, # since we're importing from it: if os.path.exists('twisted'): sys.path.insert(0, '.') from twisted.python.dist import (STATIC_PACKAGE_METADATA, getExtensions, getScripts, setup) args = STATIC_PACKAGE_METADATA.copy() args.update( dict( cmdclass={ 'build_py': PickyBuildPy, 'build_scripts': PickyBuildScripts, }, packages=find_packages(), conditionalExtensions=getExtensions(), install_requires=["zope.interface >= 4.0.2"], zip_safe=False, include_package_data=True, scripts=getScripts(), )) setup(**args)
def main(): try: from setuptools import setup except ImportError: from distutils.core import setup from twisted.python.dist import STATIC_PACKAGE_METADATA args = STATIC_PACKAGE_METADATA.copy() args['install_requires'] = ["zope.interface >= 4.0.2"] args['classifiers'] = ["Programming Language :: Python :: 3.3"] args['py_modules'] = modules + testModules + almostModules args['cmdclass'] = {'sdist': DisabledSdist} setup(**args)
def main(): try: from setuptools import setup except ImportError: from distutils.core import setup # Make sure the to-be-installed version of Twisted is used, if available, # since we're importing from it: if os.path.exists('twisted'): sys.path.insert(0, '.') from twisted.python.dist3 import modulesToInstall from twisted.python.dist import STATIC_PACKAGE_METADATA args = STATIC_PACKAGE_METADATA.copy() args['install_requires'] = ["zope.interface >= 4.0.2"] args['py_modules'] = modulesToInstall args['cmdclass'] = {'sdist': DisabledSdist} setup(**args)
def main(): from setuptools import setup # Make sure the to-be-installed version of Twisted is used, if available, # since we're importing from it: if os.path.exists('twisted'): sys.path.insert(0, '.') from twisted.python.dist3 import modulesToInstall from twisted.python.dist3 import testDataFiles, _processDataFileList from twisted.python.dist import STATIC_PACKAGE_METADATA, getDataFiles _dataFiles = _processDataFileList(testDataFiles) args = STATIC_PACKAGE_METADATA.copy() args['install_requires'] = ["zope.interface >= 4.0.2"] args['py_modules'] = modulesToInstall args['data_files'] = getDataFiles('twisted') + _dataFiles args['zip_safe'] = False args['cmdclass'] = {'sdist': DisabledSdist} args['scripts'] = ['bin/trial', 'bin/twistd'] setup(**args)
def main(): from setuptools import setup # Make sure the to-be-installed version of Twisted is used, if available, # since we're importing from it: if os.path.exists('twisted'): sys.path.insert(0, '.') from twisted.python.dist3 import modulesToInstall from twisted.python.dist3 import testDataFiles, _processDataFileList from twisted.python.dist import STATIC_PACKAGE_METADATA, getDataFiles _dataFiles = _processDataFileList(testDataFiles) args = STATIC_PACKAGE_METADATA.copy() args['install_requires'] = ["zope.interface >= 4.0.2"] args['py_modules'] = modulesToInstall args['data_files'] = getDataFiles('twisted') + _dataFiles args['zip_safe'] = False args['cmdclass'] = {'sdist': DisabledSdist} args['scripts'] = ['bin/trial'] setup(**args)
def main(): # Make sure the to-be-installed version of Twisted is used, if available, # since we're importing from it: if os.path.exists('twisted'): sys.path.insert(0, '.') from twisted.python.dist import STATIC_PACKAGE_METADATA, getScripts args = STATIC_PACKAGE_METADATA.copy() args.update(dict( cmdclass={ 'build_py': PickyBuildPy, 'build_scripts': PickyBuildScripts, }, packages=find_packages(), install_requires=["zope.interface >= 4.0.2"], zip_safe=False, include_package_data=True, scripts=getScripts(), )) setup(**args)
# Required by twisted.web.server, no actual code here: "twisted.web.iweb", # Required by twisted.web.server for an error handling case: "twisted.web.html", # This module has a lot of missing test coverage. What tests it has pass, # but it needs a lot more. It was ported only enough to make the client # work. "twisted.web.http", # GzipEncoder and allowed methods functionality not ported, no doubt # missing lots of test coverage: "twisted.web.server", ] if __name__ == "__main__": sys.path.insert(0, '.') from distutils.core import setup from twisted.python.dist import STATIC_PACKAGE_METADATA args = STATIC_PACKAGE_METADATA.copy() args['classifiers'] = ["Programming Language :: Python :: 3.3"] args['py_modules'] = modules + testModules + almostModules if 'sdist' in sys.argv: args['data_files'] = [('admin', ['admin/run-python3-tests'])] setup(**args)
# completely work. "twisted.web.error", # Required by twisted.web.server, no actual code here: "twisted.web.iweb", # Required by twisted.web.server for an error handling case: "twisted.web.html", # This module has a lot of missing test coverage. What tests it has pass, # but it needs a lot more. It was ported only enough to make the client # work. "twisted.web.http", # GzipEncoder and allowed methods functionality not ported, no doubt # missing lots of test coverage: "twisted.web.server", ] if __name__ == "__main__": sys.path.insert(0, '.') from distutils.core import setup from twisted.python.dist import STATIC_PACKAGE_METADATA args = STATIC_PACKAGE_METADATA.copy() args['classifiers'] = ["Programming Language :: Python :: 3.3"] args['py_modules'] = modules + testModules + almostModules if 'sdist' in sys.argv: args['data_files'] = [('admin', ['admin/run-python3-tests'])] setup(**args)