Skip to content

Commit d80b19b

Browse files
authored
Upgrade: python-semantic_version to version 2.10.0 (#12476)
1 parent adce8d7 commit d80b19b

3 files changed

Lines changed: 41 additions & 35 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"semantic_version-2.8.4.tar.gz": "352459f640f3db86551d8054d1288608b29a96e880c7746f0a59c92879d412a3"
3+
"python-semanticversion-2.10.0.tar.gz": "e234480908f633d2d80fdd97e87699135b2ed2fc9876b7f41d1d4a2d3262a0c4"
44
}
55
}

SPECS-EXTENDED/python-semantic_version/python-semantic_version.spec

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,81 @@
11
Vendor: Microsoft Corporation
22
Distribution: Azure Linux
33
%global pypi_name semantic_version
4+
%global srcname python-semanticversion
45

56
Name: python-%{pypi_name}
6-
Version: 2.8.4
7-
Release: 4%{?dist}
7+
Version: 2.10.0
8+
Release: 1%{?dist}
89
Summary: Library implementing the 'SemVer' scheme
910

1011
License: BSD
1112
URL: https://github.com/rbarrois/python-semanticversion
12-
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
13+
Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
14+
1315
BuildArch: noarch
16+
BuildRequires: make
17+
BuildRequires: python3-devel
18+
BuildRequires: python3-pytest
19+
BuildRequires: python3dist(wheel)
20+
BuildRequires: python3dist(pytest-mock)
21+
BuildRequires: python3-pip
22+
BuildRequires: python3-sphinx
23+
BuildRequires: python3dist(sphinx-rtd-theme)
24+
BuildRequires: python3-sphinxcontrib-jquery
25+
BuildRequires: sed
1426

15-
%global _description \
16-
This small python library provides a few tools to handle semantic versioning\
17-
in Python.
27+
%global _description %{expand:
28+
This small python library provides a few tools to handle semantic versioning in
29+
Python.}
1830

1931
%description %{_description}
2032

2133
%package -n python3-%{pypi_name}
2234
Summary: %{summary}
23-
BuildRequires: python3-devel
24-
BuildRequires: python3-setuptools
25-
#BuildRequires: python3-django
26-
%{?python_provide:%python_provide python3-%{pypi_name}}
2735

2836
%description -n python3-%{pypi_name} %{_description}
2937

30-
Python 3 version
31-
3238
%package doc
3339
Summary: Documentation for python-%{pypi_name}
34-
BuildRequires: python3-sphinx
35-
BuildRequires: python3-sphinx_rtd_theme
3640

3741
%description doc
3842
%{summary}.
3943

4044
%prep
41-
%autosetup -n semantic_version-%{version}
42-
# Remove bundled egg-info
43-
rm -rf %{pypi_name}.egg-info
44-
# documentation builds due to broken symlink
45-
# https://github.com/rbarrois/python-semanticversion/issues/20
46-
rm docs/credits.rst
45+
%autosetup -p1 -n %{srcname}-%{version}
46+
47+
# Drop unnecessary dependency
48+
sed -i '/zest\.releaser\[recommended\]/d' setup.cfg
49+
50+
%generate_buildrequires
51+
%pyproject_buildrequires -x doc
4752

4853
%build
49-
%py3_build
54+
%pyproject_wheel
5055
# generate html docs
51-
sphinx-build-%{python3_version} docs html
56+
make -C docs html
5257
# remove the sphinx-build leftovers
53-
rm -rf html/.{doctrees,buildinfo}
58+
rm -rf docs/_build/html/.{doctrees,buildinfo}
5459

5560
%install
56-
%py3_install
61+
%pyproject_install
62+
%pyproject_save_files %{pypi_name}
5763

5864
%check
59-
# Seems like it's just stuck in koji
60-
#{__python3} setup.py test
61-
62-
%files -n python3-%{pypi_name}
65+
%pytest
66+
%files -n python3-%{pypi_name} -f %{pyproject_files}
6367
%license LICENSE
64-
%doc README.rst ChangeLog
65-
%{python3_sitelib}/%{pypi_name}/
66-
%{python3_sitelib}/%{pypi_name}-*.egg-info/
68+
%doc README.rst ChangeLog CREDITS
6769

6870
%files doc
6971
%license LICENSE
70-
%doc html
72+
%doc docs/_build/html
7173

7274
%changelog
75+
* Mon Feb 17 2025 Sumit Jena <v-sumitjena@microsoft.com> - 2.10.0-1
76+
- Update to version 2.10.0
77+
- License verified
78+
7379
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.8.4-4
7480
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
7581

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24573,8 +24573,8 @@
2457324573
"type": "other",
2457424574
"other": {
2457524575
"name": "python-semantic_version",
24576-
"version": "2.8.4",
24577-
"downloadUrl": "https://github.com/rbarrois/python-semanticversion/archive/v2.8.4/semantic_version-2.8.4.tar.gz"
24576+
"version": "2.10.0",
24577+
"downloadUrl": "https://github.com/rbarrois/python-semanticversion/archive/2.10.0/python-semanticversion-2.10.0.tar.gz"
2457824578
}
2457924579
}
2458024580
},

0 commit comments

Comments
 (0)