|
|
162b0ca |
Name: pyproject-rpm-macros
|
|
|
fdf5116 |
Summary: RPM macros for PEP 517 Python packages
|
|
|
162b0ca |
License: MIT
|
|
|
fdf5116 |
|
|
|
aaac920 |
%bcond tests 1
|
|
|
b05b7f6 |
# pytest-xdist and tox are not desired in RHEL
|
|
|
aaac920 |
%bcond pytest_xdist %{undefined rhel}
|
|
|
b05b7f6 |
%bcond tox_tests %{undefined rhel}
|
|
|
204b801 |
|
|
|
94d7dd2 |
# The idea is to follow the spirit of semver
|
|
|
94d7dd2 |
# Given version X.Y.Z:
|
|
|
94d7dd2 |
# Increment X and reset Y.Z when there is a *major* incompatibility
|
|
|
94d7dd2 |
# Increment Y and reset Z when new macros or features are added
|
|
|
94d7dd2 |
# Increment Z when this is a bugfix or a cosmetic change
|
|
|
94d7dd2 |
# Dropping support for EOL Fedoras is *not* considered a breaking change
|
|
|
97a7574 |
Version: 1.10.0
|
|
|
97a7574 |
Release: 1%{?dist}
|
|
|
fdf5116 |
|
|
|
2800b49 |
# Macro files
|
|
|
2800b49 |
Source001: macros.pyproject
|
|
|
a4d05ba |
Source002: macros.aaa-pyproject-srpm
|
|
|
fdf5116 |
|
|
|
2800b49 |
# Implementation files
|
|
|
2800b49 |
Source101: pyproject_buildrequires.py
|
|
|
2800b49 |
Source102: pyproject_save_files.py
|
|
|
cb38f21 |
Source103: pyproject_convert.py
|
|
|
894e212 |
Source104: pyproject_preprocess_record.py
|
|
|
38ef5fb |
Source105: pyproject_construct_toxenv.py
|
|
|
aeb21f6 |
Source106: pyproject_requirements_txt.py
|
|
|
40f6765 |
Source107: pyproject_wheel.py
|
|
|
fdf5116 |
|
|
|
2800b49 |
# Tests
|
|
|
2800b49 |
Source201: test_pyproject_buildrequires.py
|
|
|
2800b49 |
Source202: test_pyproject_save_files.py
|
|
|
aeb21f6 |
Source203: test_pyproject_requirements_txt.py
|
|
|
c3a20e9 |
Source204: compare_mandata.py
|
|
|
2800b49 |
|
|
|
2800b49 |
# Test data
|
|
|
2800b49 |
Source301: pyproject_buildrequires_testcases.yaml
|
|
|
2800b49 |
Source302: pyproject_save_files_test_data.yaml
|
|
|
2800b49 |
Source303: test_RECORD
|
|
|
2800b49 |
|
|
|
2800b49 |
# Metadata
|
|
|
2800b49 |
Source901: README.md
|
|
|
2800b49 |
Source902: LICENSE
|
|
|
50645e1 |
|
|
|
a4df3c9 |
URL: https://src.fedoraproject.org/rpms/pyproject-rpm-macros
|
|
|
fdf5116 |
|
|
|
162b0ca |
BuildArch: noarch
|
|
|
162b0ca |
|
|
|
204b801 |
%if %{with tests}
|
|
|
f331bdb |
BuildRequires: python3dist(pytest)
|
|
|
aaac920 |
%if %{with pytest_xdist}
|
|
|
d53d20c |
BuildRequires: python3dist(pytest-xdist)
|
|
|
aaac920 |
%endif
|
|
|
f331bdb |
BuildRequires: python3dist(pyyaml)
|
|
|
f331bdb |
BuildRequires: python3dist(packaging)
|
|
|
f331bdb |
BuildRequires: python3dist(pip)
|
|
|
f331bdb |
BuildRequires: python3dist(setuptools)
|
|
|
b05b7f6 |
%if %{with tox_tests}
|
|
|
f331bdb |
BuildRequires: python3dist(tox-current-env) >= 0.0.6
|
|
|
b05b7f6 |
%endif
|
|
|
f331bdb |
BuildRequires: python3dist(wheel)
|
|
|
ca3771c |
BuildRequires: (python3dist(tomli) if python3 < 3.11)
|
|
|
204b801 |
%endif
|
|
|
50645e1 |
|
|
|
c3161ae |
# We build on top of those:
|
|
|
b02df7e |
BuildRequires: python-rpm-macros
|
|
|
b02df7e |
BuildRequires: python-srpm-macros
|
|
|
b02df7e |
BuildRequires: python3-rpm-macros
|
|
|
f331bdb |
Requires: python-rpm-macros
|
|
|
f331bdb |
Requires: python-srpm-macros
|
|
|
f331bdb |
Requires: python3-rpm-macros
|
|
|
a4d05ba |
Requires: (pyproject-srpm-macros = %{?epoch:%{epoch}:}%{version}-%{release} if pyproject-srpm-macros)
|
|
|
c3161ae |
|
|
|
c80fe03 |
# We use the following tools outside of coreutils
|
|
|
f331bdb |
Requires: /usr/bin/find
|
|
|
f331bdb |
Requires: /usr/bin/sed
|
|
|
50645e1 |
|
|
|
15acb6e |
# This package requires the %%generate_buildrequires functionality.
|
|
|
15acb6e |
# It has been introduced in RPM 4.15 (4.14.90 is the alpha of 4.15).
|
|
|
15acb6e |
# What we need is rpmlib(DynamicBuildRequires), but that is impossible to (Build)Require.
|
|
|
15acb6e |
Requires: (rpm-build >= 4.14.90 if rpm-build)
|
|
|
15acb6e |
BuildRequires: rpm-build >= 4.14.90
|
|
|
15acb6e |
|
|
|
162b0ca |
%description
|
|
|
7d98fee |
These macros allow projects that follow the Python packaging specifications
|
|
|
7d98fee |
to be packaged as RPMs.
|
|
|
7d98fee |
|
|
|
7d98fee |
They work for:
|
|
|
7d98fee |
|
|
|
7d98fee |
* traditional Setuptools-based projects that use the setup.py file,
|
|
|
7d98fee |
* newer Setuptools-based projects that have a setup.cfg file,
|
|
|
7d98fee |
* general Python projects that use the PEP 517 pyproject.toml file
|
|
|
7d98fee |
(which allows using any build system, such as setuptools, flit or poetry).
|
|
|
7d98fee |
|
|
|
7d98fee |
These macros replace %%py3_build and %%py3_install,
|
|
|
7d98fee |
which only work with setup.py.
|
|
|
162b0ca |
|
|
|
fdf5116 |
|
|
|
a4d05ba |
%package -n pyproject-srpm-macros
|
|
|
a4d05ba |
Summary: Minimal implementation of %%pyproject_buildrequires
|
|
|
a4d05ba |
Requires: (pyproject-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release} if pyproject-rpm-macros)
|
|
|
15acb6e |
Requires: (rpm-build >= 4.14.90 if rpm-build)
|
|
|
a4d05ba |
|
|
|
a4d05ba |
%description -n pyproject-srpm-macros
|
|
|
a4d05ba |
This package contains a minimal implementation of %%pyproject_buildrequires.
|
|
|
a4d05ba |
When used in %%generate_buildrequires, it will generate BuildRequires
|
|
|
a4d05ba |
for pyproject-rpm-macros. When both packages are installed, the full version
|
|
|
a4d05ba |
takes precedence.
|
|
|
a4d05ba |
|
|
|
a4d05ba |
|
|
|
162b0ca |
%prep
|
|
|
286c22f |
# Not strictly necessary but allows working on file names instead
|
|
|
286c22f |
# of source numbers in install section
|
|
|
286c22f |
%setup -c -T
|
|
|
286c22f |
cp -p %{sources} .
|
|
|
162b0ca |
|
|
|
15acb6e |
%generate_buildrequires
|
|
|
15acb6e |
# nothing to do, this is here just to assert we have that functionality
|
|
|
15acb6e |
|
|
|
162b0ca |
%build
|
|
|
162b0ca |
# nothing to do, sources are not buildable
|
|
|
162b0ca |
|
|
|
162b0ca |
%install
|
|
|
fdf5116 |
mkdir -p %{buildroot}%{_rpmmacrodir}
|
|
|
fdf5116 |
mkdir -p %{buildroot}%{_rpmconfigdir}/redhat
|
|
|
6cf05c0 |
install -pm 644 macros.pyproject %{buildroot}%{_rpmmacrodir}/
|
|
|
a4d05ba |
install -pm 644 macros.aaa-pyproject-srpm %{buildroot}%{_rpmmacrodir}/
|
|
|
6cf05c0 |
install -pm 644 pyproject_buildrequires.py %{buildroot}%{_rpmconfigdir}/redhat/
|
|
|
6cf05c0 |
install -pm 644 pyproject_convert.py %{buildroot}%{_rpmconfigdir}/redhat/
|
|
|
6cf05c0 |
install -pm 644 pyproject_save_files.py %{buildroot}%{_rpmconfigdir}/redhat/
|
|
|
6cf05c0 |
install -pm 644 pyproject_preprocess_record.py %{buildroot}%{_rpmconfigdir}/redhat/
|
|
|
6cf05c0 |
install -pm 644 pyproject_construct_toxenv.py %{buildroot}%{_rpmconfigdir}/redhat/
|
|
|
6cf05c0 |
install -pm 644 pyproject_requirements_txt.py %{buildroot}%{_rpmconfigdir}/redhat/
|
|
|
6cf05c0 |
install -pm 644 pyproject_wheel.py %{buildroot}%{_rpmconfigdir}/redhat/
|
|
|
162b0ca |
|
|
|
50645e1 |
%check
|
|
|
17dab00 |
# assert the two signatures of %%pyproject_buildrequires match exactly
|
|
|
17dab00 |
signature1="$(grep '^%%pyproject_buildrequires' macros.pyproject | cut -d' ' -f1)"
|
|
|
17dab00 |
signature2="$(grep '^%%pyproject_buildrequires' macros.aaa-pyproject-srpm | cut -d' ' -f1)"
|
|
|
17dab00 |
test "$signature1" == "$signature2"
|
|
|
17dab00 |
# but also assert we are not comparing empty strings
|
|
|
17dab00 |
test "$signature1" != ""
|
|
|
17dab00 |
|
|
|
17dab00 |
%if %{with tests}
|
|
|
37216e7 |
export HOSTNAME="rpmbuild" # to speedup tox in network-less mock, see rhbz#1856356
|
|
|
b05b7f6 |
%pytest -vv --doctest-modules %{?with_pytest_xdist:-n auto} %{!?with_tox_tests:-k "not tox"}
|
|
|
c3a20e9 |
|
|
|
c3a20e9 |
# brp-compress is provided as an argument to get the right directory macro expansion
|
|
|
c3a20e9 |
%{python3} compare_mandata.py -f %{_rpmconfigdir}/brp-compress
|
|
|
204b801 |
%endif
|
|
|
50645e1 |
|
|
|
50645e1 |
|
|
|
162b0ca |
%files
|
|
|
162b0ca |
%{_rpmmacrodir}/macros.pyproject
|
|
|
fdf5116 |
%{_rpmconfigdir}/redhat/pyproject_buildrequires.py
|
|
|
cb38f21 |
%{_rpmconfigdir}/redhat/pyproject_convert.py
|
|
|
2800b49 |
%{_rpmconfigdir}/redhat/pyproject_save_files.py
|
|
|
894e212 |
%{_rpmconfigdir}/redhat/pyproject_preprocess_record.py
|
|
|
38ef5fb |
%{_rpmconfigdir}/redhat/pyproject_construct_toxenv.py
|
|
|
aeb21f6 |
%{_rpmconfigdir}/redhat/pyproject_requirements_txt.py
|
|
|
40f6765 |
%{_rpmconfigdir}/redhat/pyproject_wheel.py
|
|
|
162b0ca |
|
|
|
162b0ca |
%doc README.md
|
|
|
162b0ca |
%license LICENSE
|
|
|
162b0ca |
|
|
|
a4d05ba |
%files -n pyproject-srpm-macros
|
|
|
a4d05ba |
%{_rpmmacrodir}/macros.aaa-pyproject-srpm
|
|
|
a4d05ba |
%license LICENSE
|
|
|
a4d05ba |
|
|
|
a4d05ba |
|
|
|
162b0ca |
%changelog
|
|
|
089e251 |
* Wed Sep 13 2023 Python Maint <python-maint@redhat.com> - 1.10.0-1
|
|
|
97a7574 |
- Add %%_pyproject_check_import_allow_no_modules for automated environments
|
|
|
089e251 |
- Fix handling of tox 4 provision without and explicit tox minversion
|
|
|
089e251 |
- Fixes: rhbz#2240590
|
|
|
97a7574 |
|
|
|
53c81f5 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
|
|
|
53c81f5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
53c81f5 |
|
|
|
156e2fc |
* Wed May 31 2023 Maxwell G <maxwell@gtmx.me> - 1.9.0-1
|
|
|
156e2fc |
- Allow passing config_settings to the build backend.
|
|
|
156e2fc |
- Resolves: rhbz#2192581
|
|
|
156e2fc |
|
|
|
5ab7319 |
* Wed May 31 2023 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-1
|
|
|
5ab7319 |
- On Python older than 3.11, use tomli instead of deprecated toml
|
|
|
638ba27 |
- Fix literal %% handling in %%{pyproject_files} on RPM 4.19
|
|
|
5ab7319 |
|
|
|
161c16b |
* Tue May 23 2023 Miro Hrončok <mhroncok@redhat.com> - 1.8.0-2
|
|
|
161c16b |
- Rebuilt for ELN dependency changes
|
|
|
161c16b |
|
|
|
bd78901 |
* Thu Apr 27 2023 Miro Hrončok <mhroncok@redhat.com> - 1.8.0-1
|
|
|
bd78901 |
- %%pyproject_buildrequires: Add support for self-referential extras requirements
|
|
|
bd78901 |
Fixes: rhbz#2171343
|
|
|
a5e7a3c |
- Deprecate the provisional %%{pyproject_build_lib} macro
|
|
|
bd78901 |
See https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/HMLOPAU3RZLXD4BOJHTIPKI3I4U6U7OE/
|
|
|
a5e7a3c |
|
|
|
4569036 |
* Fri Mar 31 2023 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-1
|
|
|
4569036 |
- %%pyproject_buildrequires: Redirect stdout to stderr via Shell
|
|
|
4569036 |
- Dependencies are recorded to a text file that is catted at the end
|
|
|
4569036 |
- Fixes: rhbz#2183519
|
|
|
4569036 |
|
|
|
1e37a4d |
* Mon Feb 13 2023 Lumír Balhar <lbalhar@redhat.com> - 1.6.3-1
|
|
|
1e37a4d |
- Remove .dist-info directory at the end of %%pyproject_buildrequires
|
|
|
1e37a4d |
- An incomplete .dist-info directory in $PWD can confuse tests in %%check
|
|
|
1e37a4d |
|
|
|
7ba21ea |
* Wed Feb 08 2023 Lumír Balhar <lbalhar@redhat.com> - 1.6.2-1
|
|
|
7ba21ea |
- Improve detection of lang files
|
|
|
7ba21ea |
- Fixes: rhbz#2166295
|
|
|
7ba21ea |
|
|
|
85fc411 |
* Fri Feb 03 2023 Miro Hrončok <mhroncok@redhat.com> - 1.6.1-1
|
|
|
85fc411 |
- %%pyproject_buildrequires: Avoid leaking stdout from subprocesses
|
|
|
85fc411 |
- Fixes: rhbz#2166888
|
|
|
85fc411 |
|
|
|
a4d05ba |
* Fri Jan 20 2023 Miro Hrončok <miro@hroncok.cz> - 1.6.0-1
|
|
|
a4d05ba |
- Add pyproject-srpm-macros with a minimal %%pyproject_buildrequires macro
|
|
|
a4d05ba |
|
|
|
05aaf06 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
|
|
05aaf06 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
05aaf06 |
|
|
|
d06c69a |
* Fri Jan 13 2023 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-1
|
|
|
d06c69a |
- Adjusts %%pyproject_buildrequires tests for tox 4
|
|
|
d06c69a |
- Fixes: rhbz#2160687
|
|
|
d06c69a |
|
|
|
f21e684 |
* Mon Nov 28 2022 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-1
|
|
|
f21e684 |
- Use %%py3_test_envvars in %%tox when available
|
|
|
f21e684 |
|
|
|
516e151 |
* Mon Sep 19 2022 Python Maint <python-maint@redhat.com> - 1.4.0-1
|
|
|
a39d658 |
- %%pyproject_save_files: Support License-Files installed into the *Root License Directory* from PEP 639
|
|
|
92ad52e |
- Fixes: rhbz#2127946
|
|
|
516e151 |
- %%pyproject_check_import: Import only the modules whose top-level names
|
|
|
516e151 |
match any of the globs provided to %%pyproject_save_files
|
|
|
516e151 |
- Fixes: rhbz#2127958
|
|
|
92ad52e |
|
|
|
dd0f198 |
* Tue Aug 30 2022 Otto Liljalaakso <otto.liljalaakso@iki.fi> - 1.3.4-1
|
|
|
dd0f198 |
- Fix typo in internal function name
|
|
|
dd0f198 |
|
|
|
fa49bf2 |
* Tue Aug 09 2022 Karolina Surma <ksurma@redhat.com> - 1.3.3-1
|
|
|
fa49bf2 |
- Don't fail %%pyproject_save_files '*' if no modules are detected
|
|
|
fa49bf2 |
|
|
|
799a0b2 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
|
|
|
799a0b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
799a0b2 |
|
|
|
1996e90 |
* Wed Jun 15 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 1.3.2-1
|
|
|
1996e90 |
- Update %%pyproject_build_lib to support setuptools 62.1.0 and later
|
|
|
1996e90 |
- Fixes: rhbz#2097158
|
|
|
5b7df3c |
- %%pyproject_buildrequires: When extension modules are built,
|
|
|
5b7df3c |
support https://fedoraproject.org/wiki/Changes/Package_information_on_ELF_objects
|
|
|
5b7df3c |
- Fixes: rhbz#2097535
|
|
|
1996e90 |
|
|
|
fcd4ecb |
* Fri May 27 2022 Owen Taylor <otaylor@redhat.com> - 1.3.1-1
|
|
Owen W. Taylor |
946c872 |
- %%pyproject_install: pass %%{_prefix} explicitly to pip install
|
|
Owen W. Taylor |
946c872 |
|
|
|
07577de |
* Thu May 12 2022 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-1
|
|
|
07577de |
- Use tomllib from the standard library on Python 3.11+
|
|
|
07577de |
|
|
|
40f6765 |
* Wed Apr 27 2022 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-1
|
|
|
40f6765 |
- %%pyproject_buildrequires: Add provisional -w flag for build backends without
|
|
|
40f6765 |
prepare_metadata_for_build_wheel hook
|
|
|
40f6765 |
When used, the wheel is built in %%pyproject_buildrequires
|
|
|
40f6765 |
and information about runtime requires and extras is read from that wheel.
|
|
|
40f6765 |
- Fixes: rhbz#2076994
|
|
|
40f6765 |
|
|
|
6d0900f |
* Tue Apr 12 2022 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-1
|
|
|
6d0900f |
- %%pyproject_save_files: Support nested directories in dist-info
|
|
|
6d0900f |
- Fixes: rhbz#1985340
|
|
|
6d0900f |
|
|
|
ae639fc |
* Tue Mar 22 2022 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-1
|
|
|
ae639fc |
- Prefix paths of intermediate files (such as %%{pyproject_files}) with NVRA
|
|
|
ae639fc |
|
|
|
60d3234 |
* Tue Mar 01 2022 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-1
|
|
|
60d3234 |
- Release final version 1.0.0
|
|
|
60d3234 |
|
|
|
3deb3f4 |
* Mon Feb 07 2022 Lumír Balhar <lbalhar@redhat.com> - 1.0.0~rc2-1
|
|
|
3deb3f4 |
- Updated compatibility with tox4
|
|
|
3deb3f4 |
|
|
|
94d7dd2 |
* Tue Jan 25 2022 Miro Hrončok <mhroncok@redhat.com> - 1.0.0~rc1-1
|
|
|
94d7dd2 |
- Release version 1.0.0, first release candidate
|
|
|
94d7dd2 |
|
|
|
f4bbff3 |
* Mon Jan 24 2022 Miro Hrončok <mhroncok@redhat.com> - 0-55
|
|
|
f4bbff3 |
- %%pyproject_buildrequires: Generate BuildRequires for this package
|
|
|
f4bbff3 |
This package is already installed, but this way, the resulting SRPM explicitly BuildRequires it
|
|
|
f4bbff3 |
|
|
|
c3a20e9 |
* Wed Jan 19 2022 Karolina Surma <ksurma@redhat.com> - 0-54
|
|
|
c3a20e9 |
- Include compressed manpages to the package if flag '+auto' is provided to %%pyproject_save_files
|
|
|
c3a20e9 |
- Fixes: rhbz#2033254
|
|
|
c3a20e9 |
|
|
|
8c8afba |
* Fri Jan 14 2022 Miro Hrončok <mhroncok@redhat.com> - 0-53
|
|
|
8c8afba |
- %%pyproject_buildrequires: Make -r (include runtime) the default, use -R to opt-out
|
|
|
8c8afba |
|
|
|
ec5fc7a |
* Sun Dec 19 2021 Gordon Messmer <gordon.messmer@gmail.com> - 0-52
|
|
|
ec5fc7a |
- Handle legacy version specifiers that would previously raise exceptions.
|
|
|
ec5fc7a |
|
|
|
55905e4 |
* Wed Dec 08 2021 Miro Hrončok <mhroncok@redhat.com> - 0-51
|
|
|
55905e4 |
- Define provisional %%pyproject_build_lib
|
|
|
55905e4 |
|
|
|
92802d7 |
* Mon Nov 1 2021 Gordon Messmer <gordon.messmer@gmail.com> - 0-50
|
|
|
92802d7 |
- Improve handling of > operator, preventing post-release from satisfying most rpm requirements
|
|
|
92802d7 |
- Improve handling of < operator, preventing pre-release from satisfying rpm requirement
|
|
|
92802d7 |
- Improve handling of != operator with prefix matching, preventing pre-release from satisfying rpm requirements
|
|
|
92802d7 |
|
|
|
c1baa53 |
* Tue Oct 19 2021 Karolina Surma <ksurma@redhat.com> - 0-49
|
|
|
c1baa53 |
- %%pyproject_save_files: Save %%_pyproject_modules file with importable module names
|
|
|
c1baa53 |
- Introduce %%pyproject_check_import which passes %%_pyproject_modules to %%py3_check_import
|
|
|
c1baa53 |
- Introduce -t, -e filtering options to %%pyproject_check_import
|
|
|
c1baa53 |
|
|
|
27e23c1 |
* Sat Oct 16 2021 Miro Hrončok <mhroncok@redhat.com> - 0-48
|
|
|
27e23c1 |
- %%pyproject_buildrequires: Accept installed pre-releases for all requirements
|
|
|
27e23c1 |
- Fixes: rhbz#2014639
|
|
|
27e23c1 |
|
|
|
27cff80 |
* Thu Sep 09 2021 Miro Hrončok <mhroncok@redhat.com> - 0-47
|
|
|
27cff80 |
- %%pyproject_save_files: Expand the namespace error message, also display it with /
|
|
|
5b8bb42 |
- %%pyproject_save_files: Add a workaround error for spaces and [brackets]
|
|
|
27cff80 |
|
|
|
f8a3343 |
* Fri Jul 23 2021 Miro Hrončok <miro@hroncok.cz> - 0-46
|
|
|
f8a3343 |
- %%pyproject_buildrequires now fails when it encounters an invalid requirement
|
|
|
f8a3343 |
- Fixes: rhbz#1983053
|
|
|
8588098 |
- Rename %%_pyproject_ghost_distinfo and %%_pyproject_record to indicate they are private
|
|
|
5169e0e |
- Automatically detect LICENSE files and mark them with %%license macro
|
|
|
f8a3343 |
|
|
|
3406e93 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-45
|
|
|
3406e93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
3406e93 |
|
|
|
5b1caad |
* Fri Jul 09 2021 Python Maint <python-maint@redhat.com> - 0-44
|
|
|
d204ac1 |
- Escape weird paths generated by %%pyproject_save_files
|
|
|
d204ac1 |
- Fixes rhbz#1976363
|
|
|
ddaf2e9 |
- Support x.* versions in %%pyproject_buildrequires
|
|
|
ddaf2e9 |
- Fixes rhbz#1981558
|
|
|
5b1caad |
- %%pyproject_buildrequires fallbacks to setuptools only if setup.py exists
|
|
|
5b1caad |
- Fixes: rhbz#1976459
|
|
|
c3161ae |
- Explicitly require the "basic" Python RPM macros
|
|
|
d204ac1 |
|
|
|
d6ad9a7 |
* Thu Jul 01 2021 Tomas Hrnciar <thrnciar@redhat.com> - 0-43
|
|
|
d6ad9a7 |
- Generate BuildRequires from file
|
|
|
d6ad9a7 |
- Fixes: rhbz#1936448
|
|
|
d6ad9a7 |
|
|
|
2abcad9 |
* Tue Jun 29 2021 Miro Hrončok <mhroncok@redhat.com> - 0-42
|
|
|
2abcad9 |
- Don't accidentally treat "~= X.0" requirement as "~= X"
|
|
|
299caac |
- Fixes rhbz#1977060
|
|
|
2abcad9 |
|
|
|
5470f56 |
* Mon Jun 28 2021 Miro Hrončok <mhroncok@redhat.com> - 0-41
|
|
|
5470f56 |
- Don't leak %%{_pyproject_builddir} to pytest collection
|
|
|
299caac |
- Fixes rhbz#1935212
|
|
|
5470f56 |
|
|
|
c952383 |
* Thu May 27 2021 Miro Hrončok <mhroncok@redhat.com> - 0-40
|
|
|
c952383 |
- Don't leak $TMPDIR outside of pyproject macros
|
|
|
29157c1 |
- Set %%_pyproject_wheeldir and %%_pyproject_builddir relative to the source tree, not $PWD
|
|
|
c952383 |
|
|
|
7e1a8fd |
* Mon Mar 29 2021 Miro Hrončok <mhroncok@redhat.com> - 0-39
|
|
|
7e1a8fd |
- Handle tox provision (tox.requires / tox.minversion)
|
|
|
7e1a8fd |
- Fixes: rhbz#1922495
|
|
|
99ed463 |
- Generate BuildRequires on extras in lower case
|
|
|
99ed463 |
- Fixes: rhbz#1937944
|
|
|
7e1a8fd |
|
|
|
cc5688e |
* Sun Feb 07 2021 Miro Hrončok <mhroncok@redhat.com> - 0-38
|
|
|
cc5688e |
- Include nested __pycache__ directories in %%pyproject_save_files
|
|
|
cc5688e |
- Fixes: rhbz#1925963
|
|
|
cc5688e |
|
|
|
390b971 |
* Tue Feb 02 2021 Miro Hrončok <mhroncok@redhat.com> - 0-37
|
|
|
390b971 |
- Remove support for Python 3.7 from %%pyproject_buildrequires
|
|
|
06b21e1 |
- Generate python3dist(toml) BR with pyproject.toml earlier to avoid extra install round
|
|
|
ff39661 |
- Generate python3dist(setutpools/wheel) BR without pyproject.toml earlier as well
|
|
|
390b971 |
|
|
|
59d092e |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-36
|
|
|
59d092e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
59d092e |
|
|
|
7d98fee |
* Fri Jan 15 2021 Miro Hrončok <mhroncok@redhat.com> - 0-35
|
|
|
7d98fee |
- Update the description of the package to match the new README content
|
|
|
7d98fee |
|
|
|
d8b6408 |
* Fri Dec 04 2020 Miro Hrončok <miro@hroncok.cz> - 0-34
|
|
|
d8b6408 |
- List all files in %%pyproject_files explicitly to avoid duplicate %%lang entries
|
|
|
d8b6408 |
- If you amend the installed files after %%pyproject_install, %%pyproject_files might break
|
|
|
d8b6408 |
|
|
|
32790ff |
* Fri Nov 27 2020 Miro Hrončok <mhroncok@redhat.com> - 0-33
|
|
|
32790ff |
- Pass PYTHONDONTWRITEBYTECODE=1 to %%tox to avoid packaged PYTEST bytecode
|
|
|
32790ff |
|
|
|
38ef5fb |
* Tue Nov 03 2020 Miro Hrončok <mhroncok@redhat.com> - 0-32
|
|
|
38ef5fb |
- Allow multiple -e in %%pyproject_buildrequires
|
|
|
38ef5fb |
- Fixes: rhbz#1886509
|
|
|
38ef5fb |
|
|
|
290941c |
* Mon Oct 05 2020 Miro Hrončok <mhroncok@redhat.com> - 0-31
|
|
|
290941c |
- Support PEP 517 list based backend-path
|
|
|
290941c |
|
|
|
faa42c8 |
* Tue Sep 29 2020 Lumír Balhar <lbalhar@redhat.com> - 0-30
|
|
|
faa42c8 |
- Process RECORD files in %%pyproject_install and remove them
|
|
|
9f3eea2 |
- Support the extras configuration option of tox in %%pyproject_buildrequires -t
|
|
|
2ecbed7 |
- Support multiple -x options for %%pyproject_buildrequires
|
|
|
9f3eea2 |
- Fixes: rhbz#1877977
|
|
|
2ecbed7 |
- Fixes: rhbz#1877978
|
|
|
faa42c8 |
|
|
|
3b95c7d |
* Wed Sep 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0-29
|
|
|
3b95c7d |
- Check the requirements after installing "requires_for_build_wheel"
|
|
|
3b95c7d |
- If not checked, installing runtime requirements might fail
|
|
|
3b95c7d |
|
|
|
c474301 |
* Tue Sep 08 2020 Gordon Messmer <gordon.messmer@gmail.com> - 0-28
|
|
|
cb38f21 |
- Support more Python version specifiers in generated BuildRequires
|
|
|
cb38f21 |
- This adds support for the '~=' operator and wildcards
|
|
|
cb38f21 |
|
|
|
c474301 |
* Fri Sep 04 2020 Miro Hrončok <miro@hroncok.cz> - 0-27
|
|
|
1e199ca |
- Make code in $PWD importable from %%pyproject_buildrequires
|
|
|
b4fd1c2 |
- Only require toml for projects with pyproject.toml
|
|
|
80a2764 |
- Remove a no longer useful warning for unrecognized files in %%pyproject_save_files
|
|
|
1e199ca |
|
|
|
da3d9bc |
* Mon Aug 24 2020 Tomas Hrnciar <thrnciar@redhat.com> - 0-26
|
|
|
da3d9bc |
- Implement automatic detection of %%lang files in %%pyproject_save_files
|
|
|
da3d9bc |
and mark them with %%lang in filelist
|
|
|
da3d9bc |
|
|
|
a613e17 |
* Fri Aug 14 2020 Miro Hrončok <mhroncok@redhat.com> - 0-25
|
|
|
a613e17 |
- Handle Python Extras in %%pyproject_buildrequires on Fedora 33+
|
|
|
a613e17 |
|
|
|
6a8d86e |
* Tue Aug 11 2020 Miro Hrončok <mhroncok@redhat.com> - 0-24
|
|
|
6a8d86e |
- Allow multiple, comma-separated extras in %%pyproject_buildrequires -x
|
|
|
6a8d86e |
|
|
|
59bc07b |
* Mon Aug 10 2020 Lumír Balhar <lbalhar@redhat.com> - 0-23
|
|
|
59bc07b |
- Make macros more universal for alternative Python stacks
|
|
|
59bc07b |
|
|
|
79678f7 |
* Thu Aug 06 2020 Tomas Hrnciar <thrnciar@redhat.com> - 0-22
|
|
|
79678f7 |
- Change %%pyproject_save_files +bindir argument to +auto
|
|
|
79678f7 |
to list all unclassified files in filelist
|
|
|
79678f7 |
|
|
|
7e5adc9 |
* Tue Aug 04 2020 Miro Hrončok <mhroncok@redhat.com> - 0-21
|
|
|
7e5adc9 |
- Actually implement %%pyproject_extras_subpkg
|
|
|
7e5adc9 |
|
|
|
cb4e43c |
* Wed Jul 29 2020 Miro Hrončok <mhroncok@redhat.com> - 0-20
|
|
|
cb4e43c |
- Implement %%pyproject_extras_subpkg
|
|
|
cb4e43c |
|
|
|
26607dc |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-19
|
|
|
26607dc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
26607dc |
|
|
|
262f6d3 |
* Thu Jul 16 2020 Miro Hrončok <mhroncok@redhat.com> - 0-18
|
|
|
262f6d3 |
- %%pyproject_buildrequires -x (extras requires for tests) now implies -r
|
|
|
262f6d3 |
(runtime requires) instead of erroring without it for better UX.
|
|
|
262f6d3 |
|
|
|
37216e7 |
* Wed Jul 15 2020 Miro Hrončok <mhroncok@redhat.com> - 0-17
|
|
|
37216e7 |
- Set HOSTNAME to prevent tox 3.17+ from a DNS query
|
|
|
37216e7 |
- Fixes rhbz#1856356
|
|
|
37216e7 |
|
|
|
ed5dd77 |
* Fri Jun 19 2020 Miro Hrončok <mhroncok@redhat.com> - 0-16
|
|
|
ed5dd77 |
- Switch from upstream deprecated pytoml to toml
|
|
|
ed5dd77 |
|
|
|
19f84b1 |
* Thu May 07 2020 Tomas Hrnciar <thrnciar@redhat.com> - 0-15
|
|
|
19f84b1 |
- Adapt %%pyproject_install not to create a PEP 610 direct_url.json file
|
|
|
19f84b1 |
|
|
|
2800b49 |
* Wed Apr 15 2020 Patrik Kopkan <pkopkan@redhat.com> - 0-14
|
|
|
2800b49 |
- Add %%pyproject_save_file macro for generating file section
|
|
|
95ba837 |
- Handle extracting debuginfo from extension modules (#1806625)
|
|
|
2800b49 |
|
|
|
99d952c |
* Mon Mar 02 2020 Miro Hrončok <mhroncok@redhat.com> - 0-13
|
|
|
99d952c |
- Tox dependency generator: Handle deps read in from a text file (#1808601)
|
|
|
99d952c |
|
|
|
6210f94 |
* Wed Feb 05 2020 Miro Hrončok <mhroncok@redhat.com> - 0-12
|
|
|
6210f94 |
- Fallback to setuptools.build_meta:__legacy__ backend instead of setuptools.build_meta
|
|
|
6210f94 |
- Properly handle backends with colon
|
|
|
dbb90f5 |
- Preserve existing flags in shebangs of Python files in /usr/bin
|
|
|
6210f94 |
|
|
|
52b92ea |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-11
|
|
|
52b92ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
52b92ea |
|
|
|
49a323e |
* Fri Nov 15 2019 Patrik Kopkan <pkopkan@redhat.com> - 0-10
|
|
|
49a323e |
- Install wheel in '$PWD/pyproject-macros-wheeldir' to have more explicit path from which we install.
|
|
|
49a323e |
- The path can be changed by redefining %%_pyproject_wheeldir.
|
|
|
49a323e |
|
|
|
8cce1fa |
* Wed Nov 13 2019 Anna Khaitovich <akhaitov@redhat.com> - 0-9
|
|
|
8cce1fa |
- Remove stray __pycache__ directory from /usr/bin when running %%pyproject_install
|
|
|
8cce1fa |
|
|
|
d5c3fb3 |
* Fri Oct 25 2019 Miro Hrončok <mhroncok@redhat.com> - 0-8
|
|
|
d5c3fb3 |
- When tox fails, print tox output before failing
|
|
|
d5c3fb3 |
|
|
|
1026263 |
* Tue Oct 08 2019 Miro Hrončok <mhroncok@redhat.com> - 0-7
|
|
|
1026263 |
- Move a verbose line of %%pyproject_buildrequires from stdout to stderr
|
|
|
1026263 |
|
|
|
137aa31 |
* Fri Jul 26 2019 Petr Viktorin <pviktori@redhat.com> - 0-6
|
|
|
137aa31 |
- Use importlib_metadata rather than pip freeze
|
|
|
137aa31 |
|
|
|
8a60635 |
* Fri Jul 26 2019 Miro Hrončok <mhroncok@redhat.com> - 0-5
|
|
|
8a60635 |
- Allow to fetch test dependencies from tox
|
|
|
ec07317 |
- Add %%tox macro to invoke tests
|
|
|
8a60635 |
|
|
|
6cfe9d4 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-4
|
|
|
6cfe9d4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6cfe9d4 |
|
|
|
fdf5116 |
* Tue Jul 02 2019 Miro Hrončok <mhroncok@redhat.com> - 0-3
|
|
|
fdf5116 |
- Add %%pyproject_buildrequires
|
|
|
fdf5116 |
|
|
|
48b7c9c |
* Tue Jul 02 2019 Miro Hrončok <mhroncok@redhat.com> - 0-2
|
|
|
48b7c9c |
- Fix shell syntax errors in %%pyproject_install
|
|
|
48b7c9c |
- Drop PATH warning in %%pyproject_install
|
|
|
162b0ca |
|
|
|
162b0ca |
* Fri Jun 28 2019 Patrik Kopkan <pkopkan@redhat.com> - 0-1
|
|
|
162b0ca |
- created package
|