From e4aa30c690e64d5117e2230e8a9028cad4b452d93a44c253a110c7999682f0c9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 7 Dec 2022 09:06:46 +0000 Subject: [PATCH] Accepting request 1040866 from home:ojkastl_buildservice:Branch_devel_languages_python update to 0.2.1 OBS-URL: https://build.opensuse.org/request/show/1040866 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch_vcs?expand=0&rev=7 --- _service | 4 ++++ fix-tests-setuptools-scm7.patch | 14 -------------- hatch_vcs-0.2.0.tar.gz | 3 --- hatch_vcs-0.2.1.tar.gz | 3 +++ python-hatch_vcs.changes | 8 ++++++++ python-hatch_vcs.spec | 6 ++---- 6 files changed, 17 insertions(+), 21 deletions(-) create mode 100644 _service delete mode 100644 fix-tests-setuptools-scm7.patch delete mode 100644 hatch_vcs-0.2.0.tar.gz create mode 100644 hatch_vcs-0.2.1.tar.gz diff --git a/_service b/_service new file mode 100644 index 0000000..1bd86b8 --- /dev/null +++ b/_service @@ -0,0 +1,4 @@ + + + + diff --git a/fix-tests-setuptools-scm7.patch b/fix-tests-setuptools-scm7.patch deleted file mode 100644 index fc52335..0000000 --- a/fix-tests-setuptools-scm7.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/tests/test_build.py b/tests/test_build.py -index 2d719a9..6b907ef 100644 ---- a/tests/test_build.py -+++ b/tests/test_build.py -@@ -75,7 +75,8 @@ def test_write(new_project_write): - assert os.path.isfile(version_file) - - lines = read_file(version_file).splitlines() -- assert lines[3] == "version = '1.2.3'" -+ assert lines[3].startswith(('version =', '__version__ =')) -+ assert lines[3].endswith("version = '1.2.3'") - - - @pytest.mark.skipif(sys.version_info[0] == 2, reason='Depends on fix in 6.4.0 which is Python 3-only') diff --git a/hatch_vcs-0.2.0.tar.gz b/hatch_vcs-0.2.0.tar.gz deleted file mode 100644 index aaa156a..0000000 --- a/hatch_vcs-0.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9913d733b34eec9bb0345d0626ca32165a4ad2de15d1ce643c36d09ca908abff -size 9321 diff --git a/hatch_vcs-0.2.1.tar.gz b/hatch_vcs-0.2.1.tar.gz new file mode 100644 index 0000000..8e695ea --- /dev/null +++ b/hatch_vcs-0.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:854e398586e7a0a9295c9d4365729d1ae6834ef39de33c88080f4eecc6fc5681 +size 9120 diff --git a/python-hatch_vcs.changes b/python-hatch_vcs.changes index d2a5701..ed28fde 100644 --- a/python-hatch_vcs.changes +++ b/python-hatch_vcs.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Dec 7 06:34:23 UTC 2022 - Johannes Kastl + +- update to 0.2.1: + * Fixed: + - Allow root in raw-options +- drop patch fix-tests-setuptools-scm7.patch + ------------------------------------------------------------------- Fri Nov 11 12:02:43 UTC 2022 - Daniel Garcia diff --git a/python-hatch_vcs.spec b/python-hatch_vcs.spec index a3fe30e..f81bb24 100644 --- a/python-hatch_vcs.spec +++ b/python-hatch_vcs.spec @@ -19,14 +19,12 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-hatch_vcs -Version: 0.2.0 +Version: 0.2.1 Release: 0 Summary: Hatch plugin for versioning with your preferred VCS License: MIT URL: https://github.com/ofek/hatch-vcs Source: https://files.pythonhosted.org/packages/source/h/hatch_vcs/hatch_vcs-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix-tests-setuptools-scm7.patch gh#ofek/hatch-vcs#9 -Patch0: fix-tests-setuptools-scm7.patch BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 Requires: python-hatchling >= 0.21.0 @@ -49,7 +47,7 @@ BuildRequires: git This provides a plugin for Hatch that uses your preferred version control system (like Git) to determine project versions. %prep -%autosetup -p1 -n hatch_vcs-%{version} +%autosetup -n hatch_vcs-%{version} %build %pyproject_wheel