diff --git a/python-semver-3.0.0-dev.3-gh.tar.gz b/python-semver-3.0.0-dev.3-gh.tar.gz deleted file mode 100644 index 8d3d389..0000000 --- a/python-semver-3.0.0-dev.3-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:19cabde5fb1692b74d68bd1bc538ef95e0cf7317ecd5ab81c694fb9416b3920a -size 56440 diff --git a/python-semver-3.0.0-dev.4-gh.tar.gz b/python-semver-3.0.0-dev.4-gh.tar.gz new file mode 100644 index 0000000..74380df --- /dev/null +++ b/python-semver-3.0.0-dev.4-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92a8193c8013dd3d3f99fb0caf2fab8f0503388f748b6e1d903f8a752883f7d1 +size 63217 diff --git a/python-semver.changes b/python-semver.changes index 6b1cae2..fb104b5 100644 --- a/python-semver.changes +++ b/python-semver.changes @@ -1,3 +1,52 @@ +------------------------------------------------------------------- +Sat Mar 11 09:57:18 UTC 2023 - Sebastian Wagner + +- add setup-remove-asterisk.patch to fix build error +- update to version 3.0.0-dev.4: + - Bug Fixes: + - :gh:`374`: Correct Towncrier's config entries in the :file:`pyproject.toml` file. + The old entries ``[[tool.towncrier.type]]`` are deprecated and need + to be replaced by ``[tool.towncrier.fragment.]``. + - Deprecations: + - :gh:`372`: Deprecate support for Python 3.6. + Python 3.6 reached its end of life and isn't supported anymore. + At the time of writing (Dec 2022), the lowest version is 3.7. + Although the `poll `_ + didn't cast many votes, the majority agree to remove support for + Python 3.6. + - Improved Documentation: + - :gh:`335`: Add new section "Converting versions between PyPI and semver" the limitations + and possible use cases to convert from one into the other versioning scheme. + - :gh:`340`: Describe how to get version from a file + - :gh:`343`: Describe combining Pydantic with semver in the "Advanced topic" + section. + - :gh:`350`: Restructure usage section. Create subdirectory "usage/" and splitted + all section into different files. + - :gh:`351`: Introduce new topics for: + * "Migration to semver3" + * "Advanced topics" + - Features: + - :pr:`359`: Add optional parameter ``optional_minor_and_patch`` in :meth:`.Version.parse` to allow optional + minor and patch parts. + - :pr:`362`: Make :meth:`.Version.match` accept a bare version string as match expression, defaulting to + equality testing. + - :gh:`364`: Enhance :file:`pyproject.toml` to make it possible to use the + :command:`pyproject-build` command from the build module. + For more information, see :ref:`build-semver`. + - :gh:`365`: Improve :file:`pyproject.toml`. + * Use setuptools, add metadata. Taken approach from + `A Practical Guide to Setuptools and Pyproject.toml + `_. + * Doc: Describe building of semver + * Remove :file:`.travis.yml` in :file:`MANIFEST.in` + (not needed anymore) + * Distinguish between Python 3.6 and others in :file:`tox.ini` + * Add skip_missing_interpreters option for :file:`tox.ini` + * GH Action: Upgrade setuptools and setuptools-scm and test + against 3.11.0-rc.2 + - Trivial/Internal Changes: + - :gh:`378`: Fix some typos in Towncrier configuration + ------------------------------------------------------------------- Mon Oct 10 08:26:16 UTC 2022 - Dirk Müller diff --git a/python-semver.spec b/python-semver.spec index 5b50d65..05c7670 100644 --- a/python-semver.spec +++ b/python-semver.spec @@ -1,7 +1,7 @@ # # spec file for package python-semver # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,21 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-semver -Version: 3.0.0~dev.3 +Version: 3.0.0~dev.4 Release: 0 Summary: Python helper for Semantic Versioning License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/python-semver/python-semver -Source: https://github.com/python-semver/python-semver/archive/refs/tags/3.0.0-dev.3.tar.gz#/%{name}-3.0.0-dev.3-gh.tar.gz +Source: https://github.com/python-semver/python-semver/archive/refs/tags/3.0.0-dev.4.tar.gz#/%{name}-3.0.0-dev.4-gh.tar.gz +# PATCH-FIX-UPSTREAM - setup-remove-asterisk.patch +Patch0: https://github.com/python-semver/python-semver/pull/398.patch#/setup-remove-asterisk.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives @@ -42,14 +45,15 @@ A Python module for semantic versioning. Simplifies comparing versions. See also http://semver.org/ %prep -%setup -q -n python-semver-3.0.0-dev.3 +%setup -q -n python-semver-3.0.0-dev.4 +%patch0 -p1 sed -i '/-cov/d' setup.cfg %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pysemver %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -66,7 +70,6 @@ sed -i '/-cov/d' setup.cfg %files %{python_files} %doc README.rst %{python_sitelib}/semver* -#%%pycache_only %%{python_sitelib}/__pycache__/semver* %python_alternative %{_bindir}/pysemver %changelog diff --git a/setup-remove-asterisk.patch b/setup-remove-asterisk.patch new file mode 100644 index 0000000..097a42d --- /dev/null +++ b/setup-remove-asterisk.patch @@ -0,0 +1,28 @@ +From 67464a70d0abb5c4a67c28369e49d112e364862b Mon Sep 17 00:00:00 2001 +From: Tom Schraitle +Date: Mon, 6 Mar 2023 11:42:34 +0100 +Subject: [PATCH] Fix #397: Remove asterisk in python_requires + +The asterisk in "python_requires = >= 3.7.*" make the +pyproject-build command fail with this exception: + + setuptools.extern.packaging.specifiers.InvalidSpecifier: Invalid specifier: '>=3.7.*' + +This fix removes the asterisk which leads to a successful build. +--- + setup.cfg | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.cfg b/setup.cfg +index 2673b0f..0ee8564 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -39,7 +39,7 @@ license = BSD + package_dir = + =src + packages = find: +-python_requires = >=3.7.* ++python_requires = >=3.7 + include_package_data = True + + [options.entry_points]