Set 3.6.6 as minimum python version on Windows (#2117)

* Set 3.6.6 as minimum python version on Windows

Signed-off-by: Toby Harradine <tobyharradine@gmail.com>

* Conditional python_requires in setup.py

Signed-off-by: Toby Harradine <tobyharradine@gmail.com>

* Should probably add the comment too

Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
Toby Harradine
2018-09-14 21:22:43 +10:00
committed by GitHub
parent 08fc732b7b
commit 1a9216b522
6 changed files with 40 additions and 12 deletions

View File

@@ -27,6 +27,11 @@ requirements = [
"yarl==1.2.6",
]
python_requires = ">=3.6.2,<3.8"
if os.name == "nt":
# Due to issues with ProactorEventLoop prior to 3.6.6 (bpo-26819)
python_requires = ">=3.6.6,<3.8"
def get_dependency_links():
with open("dependency_links.txt") as file:
@@ -94,7 +99,7 @@ if __name__ == "__main__":
],
"pytest11": ["red-discordbot = redbot.pytest"],
},
python_requires=">=3.6.2,<3.8",
python_requires=python_requires,
install_requires=requirements,
dependency_links=get_dependency_links(),
extras_require={