Miro Hrončok
655f6dda0e
%pyproject_buildrequires: Accept installed pre-releases for all requirements
...
Related: rhbz#1950291
2022-01-26 11:27:08 +01:00
Miro Hrončok
0d8d5ecd2e
%pyproject_save_files: Add a workaround error for spaces and [brackets]
...
See the added links for details.
We cannot fix this for now,
so we error out early instead of producing a broken filelist.
Related: rhbz#1950291
2022-01-26 11:18:45 +01:00
Miro Hrončok
41fc715cc4
%pyproject_save_files: Expand the namespace error message, also display it with /
...
Related: rhbz#1950291
2022-01-26 11:11:52 +01:00
Tomas Hrnciar
bc3b3a778a
Automatically detect LICENSE files and mark them with %license macro
...
Related: rhbz#1950291
2021-08-10 10:52:23 +02:00
Miro Hrončok
309172f9a8
Rename %_pyproject_ghost_distinfo and %_pyproject_record to indicate they are private
...
Related: rhbz#1950291
2021-08-10 10:52:23 +02:00
Petr Viktorin
a3a1caf32a
Split requirements.txt parsing to its own module; test & improve it
...
Related: rhbz#1950291
2021-08-10 10:52:23 +02:00
Miro Hrončok
f190b5b225
%pyproject_buildrequires now fails when it encounters an invalid requirement
...
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1983053
Related: rhbz#1950291
2021-08-10 10:52:23 +02:00
Fedora Release Engineering
9fb8a6bd2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
...
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
Related: rhbz#1950291
2021-08-10 10:52:23 +02:00
Miro Hrončok
cbbb515b42
Explicitly require the "basic" Python RPM macros
...
Related: rhbz#1950291
2021-08-10 10:52:21 +02:00
Tomas Hrnciar
d74e61b485
%pyproject_buildrequires: Fallback to setuptools.build_meta:__legacy__ only if setup.py exists
...
Fixes: rhbz#1976459
Related: rhbz#1950291
2021-08-10 10:52:05 +02:00
Miro Hrončok
7602b9a77a
%pyproject_buildrequires: Support x.* versions
...
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1981558
Related: rhbz#1950291
2021-08-10 10:51:46 +02:00
Miro Hrončok
be3e9d3b71
Escape weird paths generated by %pyproject_save_files
...
Related: rhbz#1950291
2021-08-10 10:51:23 +02:00
Mohan Boddu
8365fb6c2c
Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
...
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-10 00:06:40 +00:00
Tomas Hrnciar
aac0af8401
Generate BuildRequires from file
...
%pyproject_buildrequires macro now accepts multiple file names to load
additional dependencies from them.
New option -N was added to disable automatical generation of requirements
in case package does not use build system. Option -N cannot be used in
combination with options -r, -e, -t, -x.
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Related: rhbz#1950291
2021-07-09 17:30:46 +02:00
Miro Hrončok
dd25ce59a6
Don't accidentally treat "~= X.0" requirement as "~= X"
...
Don't canonicalize the version twice.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1977060
Related: rhbz#1950291
2021-06-30 13:08:48 +02:00
Miro Hrončok
9c60342738
Avoid leaking %{_pyproject_builddir} to pytest collection
...
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1935212
Requires a %pytest change: https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/102
Related: rhbz#1950291
2021-06-30 13:08:48 +02:00
Miro Hrončok
71f414ef2c
Set %_pyproject_wheeldir and %_pyproject_builddir relative to the source tree, not $PWD
...
This allows users to do:
%build
cd somewhere
%pyproject_wheel
cd -
cd somewhere_else
%pyproject_wheel
cd -
%install
%pyproject_install
Without a need to copy paste the wheels to a common location.
This is in fact a breaking change, I'll make sure to adapt the affected packages in Fedora.
Related: rhbz#1950291
2021-06-10 13:49:49 +02:00
Miro Hrončok
1cacdb2b62
Don't leak $TMPDIR outside of pyproject macros
...
During %install, the BRB scripts might be affected by it
Related: rhbz#1950291
2021-05-28 15:23:31 +02:00
Miro Hrončok
2c0257dc43
Generate BuildRequires on extras in lower case
...
Fixes: rhbz#1947074
Related: rhbz#1950291
2021-04-22 18:16:02 +02:00
Miro Hrončok
cd82d51b8a
Handle tox provision (tox.requires / tox.minversion)
...
Related: rhbz#1950291
2021-04-22 18:15:57 +02:00
Miro Hrončok
a9e414dafd
Fix the bad %changelog release
...
Related: rhbz#1950291
2021-04-22 18:15:51 +02:00
Mohan Boddu
40d9278e33
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
...
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-16 04:10:31 +00:00
Charalampos Stratakis
b9211529e0
Disable tests on RHEL9 to avoid pulling in the test dependencies
2021-03-09 16:13:43 +01:00
DistroBaker
cf79782115
Merged update from upstream sources
...
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.
Source: https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git#11021cf250d41ab7d50ed11bbb4f4a0acd77f2f2
2021-02-11 16:56:05 +00:00
DistroBaker
795a9b3332
Merged update from upstream sources
...
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.
Source: https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git#26bb3cb4d123a7f57df5ec56b17ccbf3d415c505
2021-02-04 13:32:12 +00:00
Petr Šabata
ab4eb9e25e
Downstream workaround for the %fedora macro
...
Signed-off-by: Petr Šabata <contyk@redhat.com>
2020-12-09 19:42:29 +01:00
DistroBaker
5919cec39c
Merged update from upstream sources
...
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.
Source: https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git#6a8d86ed709871dc99fda2a02fb9e21d362c637e
2020-12-04 19:01:54 +01:00
Troy Dawson
bdcdcffab9
RHEL 9.0.0 Alpha bootstrap
...
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/pyproject-rpm-macros#38ef5fb85baa8d9529853c325ddd5e3fb2ec08a7
2020-11-16 15:10:26 -08:00
DistroBaker
a2bd1e357d
Merged update from upstream sources
...
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.
Source: https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git#6a8d86ed709871dc99fda2a02fb9e21d362c637e
2020-11-04 23:27:14 +01:00
Troy Dawson
89b6866906
RHEL 9.0.0 Alpha bootstrap
...
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/pyproject-rpm-macros#6a44fe2d7a819cdcb55159d19c6878419871b41f
2020-10-14 16:43:13 -07:00