mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Condense requirements files down to one
PEP 508 defines a way to specify platform-specific requirements. Rather than having to manage two different requirements files, let's crunch them down to one and use that facility. For more details on how this works, see: https://www.python.org/dev/peps/pep-0508/
This commit is contained in:
parent
0eef4bee6f
commit
0c5628759f
3 changed files with 6 additions and 24 deletions
6
setup.py
6
setup.py
|
|
@ -10,11 +10,9 @@ OS_WINDOWS = os.name == "nt"
|
|||
|
||||
def get_requirements():
|
||||
"""
|
||||
To update the requirements for Evennia, edit the requirements.txt
|
||||
file, or win_requirements.txt for Windows platforms.
|
||||
To update the requirements for Evennia, edit the requirements.txt file.
|
||||
"""
|
||||
filename = 'win_requirements.txt' if OS_WINDOWS else 'requirements.txt'
|
||||
with open(filename, 'r') as f:
|
||||
with open('requirements.txt', 'r') as f:
|
||||
req_lines = f.readlines()
|
||||
reqs = []
|
||||
for line in req_lines:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue