Accepting request 1034576 from home:Andreas_Schwab:Factory
- Simplify dirty version workaround to avoid modifying repo history OBS-URL: https://build.opensuse.org/request/show/1034576 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools-git-versioning?expand=0&rev=3
This commit is contained in:
parent
9c64046f49
commit
ead26b1466
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 8 13:52:04 UTC 2022 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Simplify dirty version workaround to avoid modifying repo history
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 31 12:22:11 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -24,8 +24,8 @@ License: MIT
|
||||
URL: https://setuptools-git-versioning.readthedocs.io
|
||||
# no sdist on PyPI, needs full git metadata for bootstrap, run osc service runall to update
|
||||
Source: setuptools-git-versioning-%{version}.tar.xz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@ -65,13 +65,8 @@ version number according PEP440.
|
||||
%prep
|
||||
%setup -q -n setuptools-git-versioning-%{version}
|
||||
# avoid dirty version
|
||||
echo _build* >> .gitignore
|
||||
echo _current_flavor >> .gitignore
|
||||
git add .gitignore
|
||||
git config user.email "abuild@obs.local"
|
||||
git config user.name "abuild on obs"
|
||||
git commit -m "stay clean"
|
||||
git tag --force v%{version}
|
||||
echo '_build*' >> .git/info/exclude
|
||||
echo _current_flavor >> .git/info/exclude
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
Loading…
Reference in New Issue
Block a user