| |
@@ -545,6 +545,7 @@
|
| |
%package -n python3-setuptools_scm+toml
|
| |
Summary: Metapackage for python3-setuptools_scm: toml extras
|
| |
Requires: python3-setuptools_scm = 6-7
|
| |
+
|
| |
%description -n python3-setuptools_scm+toml
|
| |
This is a metapackage bringing in toml extras requires for
|
| |
python3-setuptools_scm.
|
| |
@@ -556,6 +557,7 @@
|
| |
%package -n python3-setuptools_scm+yaml
|
| |
Summary: Metapackage for python3-setuptools_scm: yaml extras
|
| |
Requires: python3-setuptools_scm = 6-7
|
| |
+
|
| |
%description -n python3-setuptools_scm+yaml
|
| |
This is a metapackage bringing in yaml extras requires for
|
| |
python3-setuptools_scm.
|
| |
@@ -574,6 +576,7 @@
|
| |
%package -n python3-setuptools_scm+toml
|
| |
Summary: Metapackage for python3-setuptools_scm: toml extras
|
| |
Requires: python3-setuptools_scm = 6-7
|
| |
+
|
| |
%description -n python3-setuptools_scm+toml
|
| |
This is a metapackage bringing in toml extras requires for
|
| |
python3-setuptools_scm.
|
| |
@@ -584,6 +587,7 @@
|
| |
%package -n python3-setuptools_scm+yaml
|
| |
Summary: Metapackage for python3-setuptools_scm: yaml extras
|
| |
Requires: python3-setuptools_scm = 6-7
|
| |
+
|
| |
%description -n python3-setuptools_scm+yaml
|
| |
This is a metapackage bringing in yaml extras requires for
|
| |
python3-setuptools_scm.
|
| |
@@ -601,6 +605,7 @@
|
| |
%package -n python3-setuptools_scm+toml
|
| |
Summary: Metapackage for python3-setuptools_scm: toml extras
|
| |
Requires: python3-setuptools_scm = 6-7
|
| |
+
|
| |
%description -n python3-setuptools_scm+toml
|
| |
This is a metapackage bringing in toml extras requires for
|
| |
python3-setuptools_scm.
|
| |
@@ -611,6 +616,7 @@
|
| |
%package -n python3-setuptools_scm+yaml
|
| |
Summary: Metapackage for python3-setuptools_scm: yaml extras
|
| |
Requires: python3-setuptools_scm = 6-7
|
| |
+
|
| |
%description -n python3-setuptools_scm+yaml
|
| |
This is a metapackage bringing in yaml extras requires for
|
| |
python3-setuptools_scm.
|
| |
@@ -619,6 +625,22 @@
|
| |
assert lines == expected
|
| |
|
| |
|
| |
+ def test_python_extras_subpkg_a():
|
| |
+ lines = rpm_eval('%python_extras_subpkg -n python3-setuptools_scm -a -F toml',
|
| |
+ version='6', release='7')
|
| |
+ expected = textwrap.dedent(f"""
|
| |
+ %package -n python3-setuptools_scm+toml
|
| |
+ Summary: Metapackage for python3-setuptools_scm: toml extras
|
| |
+ Requires: python3-setuptools_scm = 6-7
|
| |
+ BuildArch: noarch
|
| |
+ %description -n python3-setuptools_scm+toml
|
| |
+ This is a metapackage bringing in toml extras requires for
|
| |
+ python3-setuptools_scm.
|
| |
+ It makes sure the dependencies are installed.
|
| |
+ """).lstrip().splitlines()
|
| |
+ assert lines == expected
|
| |
+
|
| |
+
|
| |
def test_python_extras_subpkg_underscores():
|
| |
lines = rpm_eval('%python_extras_subpkg -n python3-webscrapbook -F adhoc_ssl',
|
| |
version='0.33.3', release='1.fc33')
|
| |
@@ -626,6 +648,7 @@
|
| |
%package -n python3-webscrapbook+adhoc_ssl
|
| |
Summary: Metapackage for python3-webscrapbook: adhoc_ssl extras
|
| |
Requires: python3-webscrapbook = 0.33.3-1.fc33
|
| |
+
|
| |
%description -n python3-webscrapbook+adhoc_ssl
|
| |
This is a metapackage bringing in adhoc_ssl extras requires for
|
| |
python3-webscrapbook.
|
| |
@@ -649,6 +672,7 @@
|
| |
%package -n python3-hypothesis+cli
|
| |
Summary: Metapackage for python3-hypothesis: cli extras
|
| |
Requires: python3-hypothesis = 6.6.0-1.fc35
|
| |
+
|
| |
%description -n python3-hypothesis+cli
|
| |
This is a metapackage bringing in cli extras requires for python3-hypothesis.
|
| |
It makes sure the dependencies are installed.
|
| |
@@ -658,6 +682,7 @@
|
| |
%package -n python3-hypothesis+ghostwriter
|
| |
Summary: Metapackage for python3-hypothesis: ghostwriter extras
|
| |
Requires: python3-hypothesis = 6.6.0-1.fc35
|
| |
+
|
| |
%description -n python3-hypothesis+ghostwriter
|
| |
This is a metapackage bringing in ghostwriter extras requires for
|
| |
python3-hypothesis.
|
| |
@@ -668,6 +693,7 @@
|
| |
%package -n python3-hypothesis+pytz
|
| |
Summary: Metapackage for python3-hypothesis: pytz extras
|
| |
Requires: python3-hypothesis = 6.6.0-1.fc35
|
| |
+
|
| |
%description -n python3-hypothesis+pytz
|
| |
This is a metapackage bringing in pytz extras requires for python3-hypothesis.
|
| |
It makes sure the dependencies are installed.
|
| |
Based on some discussions on matrix chatroom, I've tried the approach of making the base package archful and the actual distributed pacakges
noarch
, but I have encountered rpmlint issues when using%pyproject_extras_subpkg
due to the lack ofBuildArch: noarch
This PR adds the
BuildArch: noarch
by default andoption_A
(as in archful, not good with names) to override the behaviorNot sure why
value_F
was used there, I've opted foropt.A
@music @decathorpe thoughts on the implementation?