From f6c6c94a1e1ed2a8f2a37fd43f60547f031ac9ad Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 23 May 2024 10:01:46 +0300 Subject: [PATCH] pyproject.toml: use ~= for dependencies These are the closest to semantic versioning in Python that I can find with PEP 621 syntax. For example: > ~=3.1: version 3.1 or later, but not version 4.0 or later. > ~=3.1.2: version 3.1.2 or later, but not version 3.2.0 or later. For most cases I want to bump the minor and micro / patch. See: https://packaging.python.org/en/latest/specifications/version-specifiers/#examples --- pyproject.toml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2b47a98..a0e7a9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,15 +7,15 @@ authors = [ ] license= { file = "LICENSE.txt" } dependencies = [ - "pandas[feather,performance]>=2.2.1", - "python-stdnum>=1.19", - "requests>=2.31.0", - "requests-cache>=1.2.0", - "colorama>=0.4.6", - "ftfy>=6.1.3", - "country-converter>=1.2", - "pycountry>=23.12.11", - "py3langid>=0.2.2", + "pandas[feather,performance]~=2.2", + "python-stdnum~=1.19", + "requests~=2.31", + "requests-cache~=1.2", + "colorama~=0.4", + "ftfy~=6.1", + "country-converter~=1.2", + "pycountry~=23.12", + "py3langid~=0.2", ] readme = "README.md" requires-python = ">= 3.9" @@ -47,12 +47,12 @@ build-backend = "hatchling.build" [tool.rye] managed = true dev-dependencies = [ - "pytest>=8.0.2", - "pytest-clarity>=1.0.1", - "isort>=5.13.2", - "csvkit>=1.4.0", - "ipython>=8.22.1", - "fixit>=2.1.0", + "pytest~=8.0", + "pytest-clarity~=1.0", + "isort~=5.13", + "csvkit~=1.4", + "ipython~=8.22", + "fixit~=2.1", ] # So hatch doesn't try to build other top-level directories like "data"