Skip to content

Commit

Permalink
Merge pull request #110 from Fyssion/fix-install-requires
Browse files Browse the repository at this point in the history
Read requirements from file in setup.py
  • Loading branch information
kevinkjt2000 authored Jan 21, 2021
2 parents 694401d + a43cd33 commit 2e33ffc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 2e33ffc

Please sign in to comment.