Sync from SUSE:ALP:Source:Standard:1.0 python-setuptools-git-versioning revision 836533596df98da6977e1229f230f060
This commit is contained in:
commit
7223fb5690
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
19
_service
Normal file
19
_service
Normal file
@ -0,0 +1,19 @@
|
||||
<services>
|
||||
<service mode="disabled" name="obs_scm">
|
||||
<param name="url">https://github.com/dolfinus/setuptools-git-versioning.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">@PARENT_TAG@</param>
|
||||
<param name="package-meta">yes</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
</service>
|
||||
<service mode="disabled" name="tar">
|
||||
<param name="package-meta">yes</param>
|
||||
</service>
|
||||
<service mode="disabled" name="recompress">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service mode="disabled" name="set_version"/>
|
||||
</services>
|
55
python-setuptools-git-versioning.changes
Normal file
55
python-setuptools-git-versioning.changes
Normal file
@ -0,0 +1,55 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 25 11:20:47 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 1.13.5
|
||||
* [bugfix] Import setuptools before importing distutils. Thanks
|
||||
to @tjni
|
||||
* [bugfix] Move zip-safe option to tool.setuptools section of
|
||||
pyproject.toml. Thanks to @cclecle
|
||||
- Accomodate upstream's usage of reruns: some tag
|
||||
tests fail with commit hashes starting with 0.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 9 09:22:01 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Add %{?sle15_python_module_pythons}
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 21 13:30:49 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Run tests in parallel.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 3 04:03:58 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 1.13.2:
|
||||
* Documentation changes only.
|
||||
- Skip broken test.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 20 11:10:37 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Updater to 1.13.1
|
||||
* Build and publish sdist package again
|
||||
* Allow to install package from .tar.gz without --no-build-isolation flag
|
||||
* Get rid of deprecated package dependency
|
||||
* Publish development releases to Test PyPI
|
||||
* Use pypa/gh-action-pypi-publish Github action to publish releases to PyPI
|
||||
* Remove local part of version because it is not allowed in PyPI
|
||||
- Update to 1.13.0
|
||||
* Make all internal functions private
|
||||
* Add tag_filter option. Special thanks to @vortechs2000
|
||||
* For Python 3.11 use built-in tomllib instead of toml package
|
||||
* Add documentation about fetching package version in runtime
|
||||
* Add description for some functions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Initial specfile for v 1.21.1
|
||||
- Required to build bokeh 3
|
100
python-setuptools-git-versioning.spec
Normal file
100
python-setuptools-git-versioning.spec
Normal file
@ -0,0 +1,100 @@
|
||||
#
|
||||
# spec file for package python-setuptools-git-versioning
|
||||
#
|
||||
# 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-setuptools-git-versioning
|
||||
Version: 1.13.5
|
||||
Release: 0
|
||||
Summary: Use git repo data for building a version number according PEP-440
|
||||
License: MIT
|
||||
URL: https://setuptools-git-versioning.readthedocs.io
|
||||
# SourceDist: https://github.com/dolfinus/setuptools-git-versioning
|
||||
# the sdist on PyPI does not have the tests, we needs full git metadata for bootstrap, run osc service runall to update
|
||||
Source: setuptools-git-versioning-%{version}.tar.xz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: git-core
|
||||
Requires: python-packaging
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Provides: python-setuptools_git_versioning = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%if 0%{python_version_nodots} < 311
|
||||
Requires: python-toml >= 0.10.2
|
||||
%endif
|
||||
# SECTION test
|
||||
BuildRequires: %{python_module build}
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module packaging}
|
||||
BuildRequires: %{python_module pytest-rerunfailures}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module toml}
|
||||
BuildRequires: git-core
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Use git repo data (latest tag, current commit hash, etc) for building a
|
||||
version number according PEP440.
|
||||
|
||||
- Can be installed & configured through both `setup.py` and :PEP518's `pyproject.toml`
|
||||
- Does not require to change source code of the project
|
||||
- Tag-, file-, and callback-based versioning schemas are supported
|
||||
- Templates for *tag*, *dev* and *dirty* versions are separated
|
||||
- Templates support a lot of substitutions including git and environment information
|
||||
|
||||
%prep
|
||||
%setup -q -n setuptools-git-versioning-%{version}
|
||||
# avoid dirty version
|
||||
echo '_build*' >> .git/info/exclude
|
||||
echo _current_flavor >> .git/info/exclude
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/setuptools-git-versioning
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# cannot test isolated: no wheels for setuptools, wheel, coverage. Modify after wheel build
|
||||
sed -i '/assert get_version(repo, isolated=True)/d' tests/test_integration/test_config.py
|
||||
# test tries to get a wheel wheel in isolated build env
|
||||
donttest="test_substitution_env"
|
||||
%pytest -k "not ($donttest)" -n auto
|
||||
|
||||
%post
|
||||
%python_install_alternative setuptools-git-versioning
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative setuptools-git-versioning
|
||||
|
||||
%files %{python_files}
|
||||
%python_alternative %{_bindir}/setuptools-git-versioning
|
||||
%{python_sitelib}/setuptools_git_versioning.py*
|
||||
%{python_sitelib}/setuptools_git_versioning-%{version}*-info
|
||||
%pycache_only %{python_sitelib}/__pycache__/setuptools_git_versioning*.pyc
|
||||
|
||||
%changelog
|
BIN
setuptools-git-versioning-1.13.5.tar.xz
(Stored with Git LFS)
Normal file
BIN
setuptools-git-versioning-1.13.5.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
4
setuptools-git-versioning.obsinfo
Normal file
4
setuptools-git-versioning.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
name: setuptools-git-versioning
|
||||
version: 1.13.5
|
||||
mtime: 1691491394
|
||||
commit: 3cd11bcd38f15e2e9b25bee7485e81840f3e16dd
|
Loading…
Reference in New Issue
Block a user