Explorar o código

Add python_requires metadata to setup.py.

If trying to install dulwich on Python 2, the following error will be printed:
"ERROR: Package 'dulwich' requires a different Python: 2.7.18 not in '>=3.5'"
Manuel Jacob %!s(int64=4) %!d(string=hai) anos
pai
achega
7ed2c71f8b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      setup.py

+ 1 - 0
setup.py

@@ -79,6 +79,7 @@ if has_setuptools:
         "console_scripts": [
             "dulwich=dulwich.cli:main",
         ]}
+    setup_kwargs['python_requires'] = '>=3.5'
 else:
     scripts.append('bin/dulwich')