setup.py: constrain Python version
authorAlain Péteut <alain.peteut@yahoo.com>
Fri, 22 Feb 2019 08:45:28 +0000 (09:45 +0100)
committerwhitequark <cz@m-labs.hk>
Fri, 22 Feb 2019 08:45:28 +0000 (08:45 +0000)
Installation should be constraint to supported Python versions, using `python_requires`,
refer to [1] for details.

[1] https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires

setup.py

index 74dd99a4211f7775a5968eba87bc47106952151a..75825d9c48ed4c359ac8d471e56e7994776f8b0a 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -16,6 +16,7 @@ setup(
     license="BSD",
     install_requires=["pyvcd>=0.1.4", "bitarray"],
     packages=find_packages(),
+    python_requires=">=3.6",
     project_urls={
         #"Documentation": "https://glasgow.readthedocs.io/",
         "Source Code": "https://github.com/m-labs/nmigen",