]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
requirements: Switch to compatible releases
authorStephen Finucane <stephen@that.guru>
Sun, 8 Sep 2019 16:05:21 +0000 (17:05 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 10 Sep 2019 14:30:12 +0000 (15:30 +0100)
In commit ab0c443691, we switched from using commit ranges to fixed
ranges. This was a good idea in so far as it ensures we're providing an
application with dependencies that are guaranteed to work. However,
Patchwork as a project isn't active enough to warrant the continued busy
work effort necessary to keep bumping these versions and it's probably
about time to abandon the experiment. However, rather than switching
back to version ranges, use the compatible releases feature introduced
in PEP 440 [1]. This gives us most of the benefits of ranges but with a
nicer syntax.

[1] https://www.python.org/dev/peps/pep-0440/#compatible-release

Signed-off-by: Stephen Finucane <stephen@that.guru>
requirements-dev.txt
requirements-prod.txt
requirements-test.txt

index 62cd8b2187caf955f21c445f852a5a1906fde288..28bb8efb364f65b2851f62d94dd908f0d06bfebc 100644 (file)
@@ -1,10 +1,10 @@
-Django==2.2.5; python_version >= '3.5'
-Django==1.11.24; python_version < '3.0'  # pyup: ignore
-djangorestframework==3.10.3; python_version >= '3.5'
-djangorestframework==3.9.4; python_version < '3.0'  # pyup: ignore
-django-filter==2.2.0; python_version >= '3.5'
-django-filter==1.1.0; python_version < '3.0'  # pyup: ignore
-django-debug-toolbar==2.0; python_version >= '3.5'  # pyup: ignore
-django-debug-toolbar==1.11; python_version < '3.0'  # pyup: ignore
-django-dbbackup==3.2.0
+Django~=2.2; python_version >= '3.5'
+Django~=1.11; python_version < '3.0'  # pyup: ignore
+djangorestframework~=3.10; python_version >= '3.5'
+djangorestframework~=3.9; python_version < '3.0'  # pyup: ignore
+django-filter~=2.2; python_version >= '3.5'
+django-filter~=1.1; python_version < '3.0'  # pyup: ignore
+django-debug-toolbar~=2.0; python_version >= '3.5'  # pyup: ignore
+django-debug-toolbar~=1.11; python_version < '3.0'  # pyup: ignore
+django-dbbackup~=3.2
 -r requirements-test.txt
index 4a7ca630f376db055272f5cce9c33b3bd93ee0bf..1532b4f666e4dcd41d623a573238927f80cae6fe 100644 (file)
@@ -1,8 +1,8 @@
-Django==2.2.5; python_version >= '3.5'
-Django==1.11.24; python_version < '3.0'  # pyup: ignore
-djangorestframework==3.10.3; python_version >= '3.5'
-djangorestframework==3.9.4; python_version < '3.0'  # pyup: ignore
-django-filter==2.2.0; python_version >= '3.5'
-django-filter==1.1.0; python_version < '3.0'  # pyup: ignore
-psycopg2-binary==2.8.3
-sqlparse==0.3.0
+Django~=2.2; python_version >= '3.5'
+Django~=1.11; python_version < '3.0'  # pyup: ignore
+djangorestframework~=3.10; python_version >= '3.5'
+djangorestframework~=3.9; python_version < '3.0'  # pyup: ignore
+django-filter~=2.2; python_version >= '3.5'
+django-filter~=1.1; python_version < '3.0'  # pyup: ignore
+psycopg2-binary~=2.8
+sqlparse~=0.3
index b1a38c3188dd642e573e33f70f5e1e077b756507..6d0b3ef10b27a076b3dbc092784a023524778377 100644 (file)
@@ -1,5 +1,5 @@
-mysqlclient==1.4.4
-psycopg2-binary==2.8.3
-sqlparse==0.3.0
-python-dateutil==2.8.0
-openapi-core==0.8.0
+mysqlclient~=1.4.4
+psycopg2-binary~=2.8
+sqlparse~=0.3
+python-dateutil~=2.8
+openapi-core~=0.8.0