| 1 |
--- /dev/null |
| 2 |
+++ b/setup.py |
| 3 |
@@ -0,0 +1,73 @@ |
| 4 |
+# -*- coding: utf-8 -*- |
| 5 |
+# |
| 6 |
+# Copyright (C) 2021 Vinay Sajip. |
| 7 |
+# Licensed to the Python Software Foundation under a contributor agreement. |
| 8 |
+# See LICENSE.txt and CONTRIBUTORS.txt. |
| 9 |
+# |
| 10 |
+ |
| 11 |
+import setuptools |
| 12 |
+import distutils.core |
| 13 |
+from os.path import join, dirname |
| 14 |
+ |
| 15 |
+import distlib |
| 16 |
+ |
| 17 |
+ |
| 18 |
+class TestCommand(distutils.core.Command): |
| 19 |
+ user_options = [] |
| 20 |
+ |
| 21 |
+ def run(self): |
| 22 |
+ import sys |
| 23 |
+ |
| 24 |
+ sys.path.append(join(dirname(__file__), 'tests')) |
| 25 |
+ import test_all |
| 26 |
+ sys.exit(test_all.main()) |
| 27 |
+ |
| 28 |
+ def initialize_options(self): |
| 29 |
+ pass |
| 30 |
+ |
| 31 |
+ def finalize_options(self): |
| 32 |
+ pass |
| 33 |
+ |
| 34 |
+ |
| 35 |
+setuptools.setup( |
| 36 |
+ name='distlib', |
| 37 |
+ version=distlib.__version__, |
| 38 |
+ author='Vinay Sajip', |
| 39 |
+ author_email='[email protected]', |
| 40 |
+ url='https://bitbucket.org/pypa/distlib', |
| 41 |
+ download_url=('https://bitbucket.org/pypa/distlib/downloads/' |
| 42 |
+ 'distlib-' + distlib.__version__ + '.zip'), |
| 43 |
+ description='Distribution utilities', |
| 44 |
+ long_description=('Low-level components of distutils2/packaging, ' |
| 45 |
+ 'augmented with higher-level APIs for making packaging easier.'), |
| 46 |
+ license='Python license', |
| 47 |
+ classifiers=[ |
| 48 |
+ 'Development Status :: 5 - Production/Stable', |
| 49 |
+ 'Environment :: Console', |
| 50 |
+ 'Intended Audience :: Developers', |
| 51 |
+ 'License :: OSI Approved :: Python Software Foundation License', |
| 52 |
+ 'Operating System :: OS Independent', |
| 53 |
+ 'Programming Language :: Python', |
| 54 |
+ 'Programming Language :: Python :: 2', |
| 55 |
+ 'Programming Language :: Python :: 3', |
| 56 |
+ 'Programming Language :: Python :: 2.7', |
| 57 |
+ 'Programming Language :: Python :: 3.6', |
| 58 |
+ 'Programming Language :: Python :: 3.7', |
| 59 |
+ 'Programming Language :: Python :: 3.8', |
| 60 |
+ 'Programming Language :: Python :: 3.9', |
| 61 |
+ 'Programming Language :: Python :: 3.10', |
| 62 |
+ 'Programming Language :: Python :: 3.11', |
| 63 |
+ 'Topic :: Software Development', |
| 64 |
+ ], |
| 65 |
+ platforms='any', |
| 66 |
+ packages=[ |
| 67 |
+ 'distlib' |
| 68 |
+ ], |
| 69 |
+ package_data={ |
| 70 |
+ 'distlib': ['t32.exe', 't64.exe', 'w32.exe', 'w64.exe', |
| 71 |
+ 't64-arm.exe', 'w64-arm.exe'], |
| 72 |
+ }, |
| 73 |
+ cmdclass={ |
| 74 |
+ 'test': TestCommand, |
| 75 |
+ }, |
| 76 |
+) |