forked from pool/python-Deprecated
Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 0992568d9b | |||
| 8143745a4a | |||
| 245201087e | |||
| ecdbf7dd2f | |||
| c628f43637 | |||
| cab3a39530 | |||
| dcd619f592 | |||
| de6543b1b4 |
@@ -1,8 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu Jun 5 06:01:36 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Switch to pyproject macros.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 3 13:19:39 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
Mon Feb 3 13:19:39 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-Deprecated
|
Name: python-Deprecated
|
||||||
Version: 1.2.18
|
Version: 1.2.18
|
||||||
@@ -25,10 +26,8 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/tantale/deprecated
|
URL: https://github.com/tantale/deprecated
|
||||||
Source: https://files.pythonhosted.org/packages/source/d/deprecated/deprecated-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/d/deprecated/deprecated-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pip}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
|
||||||
BuildRequires: %{python_module wrapt >= 1.10}
|
BuildRequires: %{python_module wrapt >= 1.10}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -45,10 +44,15 @@ you can use the ``@deprecated`` decorator.
|
|||||||
%setup -q -n deprecated-%{version}
|
%setup -q -n deprecated-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%python_install
|
||||||
|
# Fix python-bytecode-inconsistent-mtime
|
||||||
|
pushd %{buildroot}%{python_sitelib}
|
||||||
|
find . -name '*.pyc' -exec rm -f '{}' ';'
|
||||||
|
python%python_bin_suffix -m compileall *.py ';'
|
||||||
|
popd
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -58,6 +62,6 @@ you can use the ``@deprecated`` decorator.
|
|||||||
%doc CHANGELOG.rst README.md
|
%doc CHANGELOG.rst README.md
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%{python_sitelib}/deprecated
|
%{python_sitelib}/deprecated
|
||||||
%{python_sitelib}/[Dd]eprecated-%{version}.dist-info
|
%{python_sitelib}/Deprecated-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user