From 9b908d0215b4be11243191d2a84c679cfa4f1185 Mon Sep 17 00:00:00 2001 From: Yeison Date: Thu, 22 Apr 2021 11:26:48 -0500 Subject: [PATCH] Remove explicit version in requirements --- examples/full_features/main_window.ui | 4 +++- gen_requirements.sh | 22 +++++++--------------- requirements.txt | 2 +- setup.py | 7 ++----- 4 files changed, 13 insertions(+), 22 deletions(-) diff --git a/examples/full_features/main_window.ui b/examples/full_features/main_window.ui index 186f8ca..9860f8f 100644 --- a/examples/full_features/main_window.ui +++ b/examples/full_features/main_window.ui @@ -1512,7 +1512,9 @@ - + + + diff --git a/gen_requirements.sh b/gen_requirements.sh index 380b93c..9c35df4 100755 --- a/gen_requirements.sh +++ b/gen_requirements.sh @@ -1,16 +1,8 @@ -pipreqs --savepath requirements.tmp --force qt_material rm requirements.txt - -sed '/PyQt5/d' requirements.tmp >> requirements.txt -mv requirements.txt requirements.tmp - -sed '/PyQt6/d' requirements.tmp >> requirements.txt -mv requirements.txt requirements.tmp - -sed '/PySide2/d' requirements.tmp >> requirements.txt -mv requirements.txt requirements.tmp - -sed '/PySide6/d' requirements.tmp >> requirements.txt - -rm requirements.tmp -cat requirements.txt \ No newline at end of file +pipreqs --savepath requirements.txt --force qt_material +sed -i '/PyQt5/d' requirements.txt +sed -i '/PyQt6/d' requirements.txt +sed -i '/PySide2/d' requirements.txt +sed -i '/PySide6/d' requirements.txt +sed -i 's/==.*//' requirements.txt +python -c "[print(f'\'{line[:-1]}\',') for line in open('requirements.txt').readlines()]" diff --git a/requirements.txt b/requirements.txt index 5efd989..8ce973e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -Jinja2==2.11.3 +Jinja2 diff --git a/setup.py b/setup.py index 2705a45..da5ea5e 100644 --- a/setup.py +++ b/setup.py @@ -7,12 +7,9 @@ with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) -with open('requirements.txt') as f: - requirements = f.read().splitlines() - setup( name='qt-material', - version='2.8.5', + version='2.8.6', packages=['qt_material', 'qt_material.resources', 'qt_material.resources.source'], @@ -24,7 +21,7 @@ setup( download_url='https://github.com/UN-GCPDS/qt-material', - install_requires=requirements, + install_requires=['Jinja2'], python_requires='>=3.7',