changeset 4817:a9b4c4849338

python3: add supported python versions to setup.py Mercurial technically can support Python 3.5 (although no lower, see its setup.py), but `evolve` probably won't because it represents more work for an underrepresented Python version. If you happen to *really* need evolve to work on Python 3 and you're reading this message, send an email to the mailing list, or contribute patches.
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 07 Aug 2019 15:21:17 +0200
parents 2d85de79ead8
children bce578f9012f
files setup.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Fri Aug 09 12:48:58 2019 +0200
+++ b/setup.py	Wed Aug 07 15:21:17 2019 +0200
@@ -29,6 +29,8 @@
     'hgext3rd.topic',
 ]
 
+py_versions = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4'
+
 if os.environ.get('INCLUDE_INHIBIT'):
     py_modules.append('hgext3rd.evolve.hack.inhibit')
     py_modules.append('hgext3rd.evolve.hack.directaccess')
@@ -46,5 +48,6 @@
     keywords='hg mercurial',
     license='GPLv2+',
     py_modules=py_modules,
-    packages=py_packages
+    packages=py_packages,
+    python_requires=py_versions
 )