changeset 416:ee722faa3e93

install (setup.py): updated setup.py for Python 3
author Goffi <goffi@goffi.org>
date Sun, 25 Aug 2019 12:26:35 +0200
parents 4179ed660a85
children 412d26a9b2c2
files setup.py
diffstat 1 files changed, 30 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Fri Aug 23 17:27:26 2019 +0200
+++ b/setup.py	Sun Aug 25 12:26:35 2019 +0200
@@ -50,27 +50,33 @@
             'local_scheme': local_scheme}
 
 
-setup(name=NAME,
-      version=VERSION,
-      description='XMPP Publish-Subscribe Service Component, build for the need of '
-                  'the « Salut à Toi » project',
-      author='Association « Salut à Toi »',
-      author_email='goffi@goffi.org',
-      url='https://salut-a-toi.org',
-      classifiers=['Development Status :: 5 - Production/Stable',
-                   'Framework :: Twisted',
-                   'License :: OSI Approved :: GNU Affero General Public License v3 '
-                   'or later (AGPLv3+)',
-                   'Operating System :: POSIX :: Linux',
-                   'Topic :: Communications :: Chat'],
-      packages=find_packages() + ['twisted.plugins'],
-      data_files=[(os.path.join('share/doc', NAME),
-                   ['CHANGELOG', 'COPYING', 'README']),
-                  ],
-      zip_safe=True,
-      setup_requires=['setuptools_scm'] if is_dev_version else [],
-      use_scm_version=sat_dev_version if is_dev_version else False,
-      install_requires=install_requires,
-      package_data={'sat_pubsub': ['VERSION']},
-      python_requires='>=3.6',
-      )
+setup(
+    name=NAME,
+    version=VERSION,
+    description="XMPP Publish-Subscribe Service Component, build for the need of "
+                "the « Salut à Toi » project",
+    author="Association « Salut à Toi »",
+    author_email="goffi@goffi.org",
+    url="https://salut-a-toi.org",
+    classifiers=[
+        "Programming Language :: Python :: 3 :: Only",
+        "Programming Language :: Python :: 3.6",
+        "Programming Language :: Python :: 3.7",
+        "Development Status :: 5 - Production/Stable",
+        "Framework :: Twisted",
+        "License :: OSI Approved :: GNU Affero General Public License v3 "
+        "or later (AGPLv3+)",
+        "Operating System :: POSIX :: Linux",
+        "Topic :: Communications :: Chat"
+    ],
+    packages=find_packages() + ["twisted.plugins"],
+    data_files=[(os.path.join("share/doc", NAME),
+                 ["CHANGELOG", "COPYING", "README"]),
+                ],
+    zip_safe=True,
+    setup_requires=["setuptools_scm"] if is_dev_version else [],
+    use_scm_version=sat_dev_version if is_dev_version else False,
+    install_requires=install_requires,
+    package_data={"sat_pubsub": ["VERSION"]},
+    python_requires=">=3.6",
+)