Lumir Balhar
0498ef29dd
Improve grep regex for RECORD and REQUESTED files
2020-10-01 09:28:21 +02:00
Lumir Balhar
052c239cab
Modify clikit to not use %pyproject_save_files and add check there
2020-10-01 09:28:21 +02:00
Lumir Balhar
595fc3b049
Add check for RECORD and REQUESTED files
2020-10-01 09:28:21 +02:00
Miro Hrončok
b1f03d7f51
Add integration test for package with setuptools setup_requires
2020-09-23 11:43:35 +02:00
Tomas Hrnciar
d754bc75b9
Test for package with lang files located outside of module
2020-09-04 10:39:52 +02:00
Tomas Hrnciar
da3d9bc23d
Automatically mark language files with %lang macro
2020-09-04 10:39:52 +02:00
Miro Hrončok
a613e176e3
Handle Python Extras in %pyproject_buildrequires on Fedora 33+
...
There is a slight problem when reporting that a dependency with extra is satisfied.
In fact, we only check the "base" dependency.
This can lead to a problem when a dependency is wrongly assumed as present
and the script proceeds to the "next stage" without restarting --
if the next stage tries to use (import) the missing dependency,
the script would crash.
However, that might be a very unlikely set of events and if such case ever happens,
we'll workaround it or fix it.
2020-08-20 15:30:49 +02:00
Miro Hrončok
6a8d86ed70
Allow multiple, comma-separated extras in %pyproject_buildrequires -x
2020-08-11 15:54:42 +02:00
Miro Hrončok
99d9596d7c
Make sure to put * in '' in %pyproject_save_files
...
Otherwise, it may be expanded by Shell in random cases.
2020-08-06 20:19:40 +02:00
Tomas Hrnciar
bd0f6049de
Update test yaml with newly added specs
2020-08-06 15:26:37 +02:00
Tomas Hrnciar
5809bbc77e
Replace +bindir with +auto in README and spec files
2020-08-06 15:26:37 +02:00
Tomas Hrnciar
d0d4060cec
Add test for +auto argument to include .pth files in other files
2020-08-06 15:26:37 +02:00
Tomas Hrnciar
0db4e67f03
Add test for +auto argument to include data files in other files
2020-08-06 15:26:37 +02:00
Miro Hrončok
cb4e43c670
Implement %pyproject_extras_subpkg
2020-07-29 17:40:37 +02:00
Miro Hrončok
a723865460
Remove Fedora 30 remnants
2020-06-23 11:09:03 +00:00
Petr Viktorin
9789724e07
Update python-ldap.spec to fix build failure
...
Use release 0 to not conflict with Fedora.
2020-06-23 11:04:38 +00:00
Tomas Hrnciar
19f84b1f4c
Adapt pyproject_install macro to PEP 610
...
With changes in PEP 610 there is new file direct_url.json created, since it is not useful
for us we prevent it's creation. This commit changes %pyproject_install macro to install wheel using
name instead of path.
This commit also includes new test to check if file direct_url.json wasn't created.
https://discuss.python.org/t/pep-610-usage-guidelines-for-linux-distributions/4012
2020-05-07 13:08:22 +02:00
Miro Hrončok
95ba8376f5
Handle extracting debuginfo from extension modules
...
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1806625
Upstream issue for a proper fix https://github.com/pypa/pip/issues/7555
Co-Authored-By: Petr Viktorin <pviktori@redhat.com>
2020-04-16 15:45:48 +02:00
Patrik Kopkan
2800b49530
Add %pyproject_save_files macro
...
This macro save generates file section to %pyproject_files. It should
simplify %files section and allow to build by some automatic machinery
Supposed use case in Fedora:
%install
%pyproject_install
%pyproject_save_files requests _requests
%files -n python3-requests -f %{pyproject_files}
%doc README.rst
%license LICENSE
Automatic build of arbitrary packages (e.g. in Copr):
%install
%pyproject_install
%pyproject_save_files * +bindir // save all modules with executables
%files -n python3-requests -f %{pyproject_files}
Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
2020-04-15 16:45:10 +02:00
Miro Hrončok
fe3aa8f6e9
Fedora CI: Add support for Zuul based CI
2020-03-06 15:05:24 +01:00
Miro Hrončok
430517ec46
Allow runnign the Fedora CI script from different packages
2020-03-06 12:43:09 +01:00
Miro Hrončok
99d952cd6c
Tox dependency generator: Handle deps read in from a text file
...
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1808601
tox docs: https://tox.readthedocs.io/en/latest/example/basic.html#depending-on-requirements-txt-or-defining-constraints
Relevant tox-current-env issue: https://github.com/fedora-python/tox-current-env/issues/22
2020-03-05 13:44:54 +01:00
Miro Hrončok
9bb7de7385
Fedora CI: Update the mock config to support mock 2.0
...
See https://github.com/rpm-software-management/mock/wiki/Release-Notes-2.0
2020-02-12 15:29:11 +01:00
Miro Hrončok
dbb90f5dc1
Preserve existing flags in shebangs of Python files in /usr/bin
...
Use pathfix.py with -k and -a flags
Solves problems like https://bugzilla.redhat.com/show_bug.cgi?id=1335203
2020-02-07 18:35:06 +01:00
Miro Hrončok
f50ab5f517
Tests: Simplify tldr.spec
...
- drop stuff that we don't need to test this
- use macros where possible
- use explicit test command when testing stuff
- make sure dist-info is a directory
2019-11-22 13:56:05 +01:00
Anna Khaitovich
f2dfb52b9f
Add tldr.spec to the tests
2019-11-14 19:27:36 +01:00
Miro Hrončok
2262ba2ff5
Fedra CI: Adapt to mock-core-configs >= 31.4
2019-10-08 13:40:26 +02:00
Miro Hrončok
2a3b101709
Fedora CI: Run mock on the current Fedora version (or 31 if less than 31)
2019-09-23 15:34:26 +02:00
Miro Hrončok
7e01f58f73
Fedora CI: Publish the mock logs even when it fails
2019-09-18 17:31:26 +02:00
Miro Hrončok
23901d999a
Fedora CI: Update pluggy to avoid a missing dependency on importlib_metadata
...
Unfortunately, it no longer has custom toxenv
2019-09-12 12:58:17 +02:00
Miro Hrončok
f3157b5237
Add test that uses poetry
2019-09-03 18:16:57 +02:00
Miro Hrončok
fda0a23075
-t means "use tox", -e means "use this toxenv", -e implies -t
...
Further fixes
2019-08-13 14:42:21 +02:00
Miro Hrončok
ec073171f3
Add %tox macro to invoke tests
2019-07-29 14:42:53 +02:00
Miro Hrončok
0124d2a76f
Define and save %toxenv for further use
2019-07-26 17:26:11 +02:00
Miro Hrončok
8a60635881
Allow to fetch test dependencies from tox
2019-07-26 15:07:11 +02:00
Petr Viktorin
a1bd01ac86
Clean up python-entrypoints.spec
2019-07-18 11:54:04 +02:00
Petr Viktorin
d6e6bb7dfb
Allow specifying extras for build dependencies
2019-07-18 10:50:13 +02:00
Petr Viktorin
bc156c4460
Generate run-time requirements for tests
2019-07-18 08:59:44 +02:00
Miro Hrončok
dd5ff52621
Build packages on Fedora CI
2019-07-17 12:17:47 +02:00
Miro Hrončok
fdf511644e
Add %pyproject_buildrequires
2019-07-05 11:28:55 +02:00
Miro Hrončok
d81f3dfe39
Add test spec file
2019-07-02 12:50:01 +00:00