Skip to content

Commit

Permalink
requirements: Adjust installation of PyAMF module.
Browse files Browse the repository at this point in the history
* requirements.txt (Py3AMF, pyAMF): Move extra requirements from setup.py
to here with conditions.
* setup.py (load_requirements): Remove condition to install Py3AMF, pyAMF.
  • Loading branch information
Hellseher committed Nov 6, 2024
1 parent 97fffe3 commit 7b81994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ tldextract
python-dateutil
markupsafe>=2.1.1
ua_parser
Py3AMF; python_version >= '3.0'
pyAMF; python_version < '3.0'
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ def generate_git_hash_py(pkg, filename='git_hash.py'):
def load_requirements(filename):
with open(filename, 'rt') as fh:
requirements = fh.read().rstrip().split('\n')
if sys.version_info > (3, 0):
requirements.append("py3AMF")
else:
requirements.append("pyAMF")
return requirements


def get_package_data():
Expand Down

0 comments on commit 7b81994

Please sign in to comment.