From 51947a403e04dabd68a966bd16cbde539030a307 Mon Sep 17 00:00:00 2001 From: Fyssion Date: Wed, 20 Jan 2021 15:54:09 -0600 Subject: [PATCH 1/2] Read requirements from file in setup.py --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index ba5c5ed..8feaad3 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,11 @@ from setuptools import setup -# TODO: read requirements from file -install_requires = ["click", "dnspython3", "six"] +with open("requirements.txt") as f: + install_requires = f.read().splitlines() -tests_require = ["mock", "nose"] +with open("test-requirements.txt") as f: + tests_require = f.read().splitlines() + tests_require.pop(0) # remove '-r requirements.txt' line setup( name="mcstatus", From a43cd33f4045cb2b03aaab7611474b41bc16f146 Mon Sep 17 00:00:00 2001 From: Fyssion Date: Wed, 20 Jan 2021 16:22:45 -0600 Subject: [PATCH 2/2] Pin to version ranges in requirements.txt --- requirements.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6ef3ac7..9098b17 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -asyncio-dgram==1.2.0 -click==7.1.1 -dnspython3==1.15.0 -six==1.14.0 +asyncio-dgram>=1.2.0 +click>=7.1.1 +dnspython3>=1.15.0 +six>=1.14.0