1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-14 15:53:28 +01:00

requirements: Adjust installation of Py3AMF module. (#920)

Move Py3AMF from setup.py load_requirements to requirements.txt

---------

Co-authored-by: Tessa Walsh <tessa@bitarchivist.net>
This commit is contained in:
Hellseher 2024-11-07 17:09:35 +00:00 committed by GitHub
parent 97fffe3a34
commit b44c93bf6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -18,3 +18,4 @@ tldextract
python-dateutil python-dateutil
markupsafe>=2.1.1 markupsafe>=2.1.1
ua_parser ua_parser
py3AMF

View File

@ -62,10 +62,6 @@ def generate_git_hash_py(pkg, filename='git_hash.py'):
def load_requirements(filename): def load_requirements(filename):
with open(filename, 'rt') as fh: with open(filename, 'rt') as fh:
requirements = fh.read().rstrip().split('\n') requirements = fh.read().rstrip().split('\n')
if sys.version_info > (3, 0):
requirements.append("py3AMF")
else:
requirements.append("pyAMF")
return requirements return requirements