Ver Fonte

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 há 4 anos atrás
pai
commit
7ed2c71f8b
1 ficheiros alterados com 1 adições e 0 exclusões
  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')