mirror of
https://github.com/danieldemus/pyp2spec.git
synced 2026-07-29 13:44:21 +02:00
Runtime BR's are implicitly required
This commit is contained in:
+5
-6
@@ -10,19 +10,18 @@ TEMPLATE_PATH = Path().resolve(__file__) / 'template.spec'
|
|||||||
|
|
||||||
def generate_extra_build_requires(config):
|
def generate_extra_build_requires(config):
|
||||||
"""If defined in config file, return extra build requires.
|
"""If defined in config file, return extra build requires.
|
||||||
If none were defined, return an empty string."""
|
If none were defined, return `-r` - runtime extra BRs`."""
|
||||||
|
|
||||||
# TODO: This doesn't handle doubles like -xr
|
# TODO: custom tox env (-e)
|
||||||
options = {
|
options = {
|
||||||
"test": "-t",
|
"tox": "-t",
|
||||||
"runtime": "-r",
|
|
||||||
"extra": "-x",
|
"extra": "-x",
|
||||||
}
|
}
|
||||||
extra_brs = config.get_list("extra_build_requires")
|
extra_brs = config.get_list("extra_build_requires")
|
||||||
|
|
||||||
# No extra BuildRequires were defined - return empty string
|
# No extra BuildRequires were defined - return `-r` = runtime
|
||||||
if not extra_brs:
|
if not extra_brs:
|
||||||
return ""
|
return "-r"
|
||||||
|
|
||||||
generated_brs = []
|
generated_brs = []
|
||||||
add = generated_brs.append
|
add = generated_brs.append
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ Summary: %{summary}
|
|||||||
|
|
||||||
|
|
||||||
%files -n python3-aionotion -f %{pyproject_files}
|
%files -n python3-aionotion -f %{pyproject_files}
|
||||||
%doc README.md
|
|
||||||
%license LICENSE
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ Summary: %{summary}
|
|||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires -r -x test
|
%pyproject_buildrequires -x test
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Summary: %{summary}
|
|||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires
|
%pyproject_buildrequires -r
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ manual_build_requires = [
|
|||||||
"python3dist(pytest-cov)",
|
"python3dist(pytest-cov)",
|
||||||
]
|
]
|
||||||
|
|
||||||
extra_build_requires = ["runtime"]
|
|
||||||
test_method = "pytest"
|
test_method = "pytest"
|
||||||
license_files = ["LICENSE"]
|
license_files = ["LICENSE"]
|
||||||
doc_files = ["AUTHORS.md", "README.md"]
|
doc_files = ["AUTHORS.md", "README.md"]
|
||||||
|
|||||||
@@ -11,11 +11,5 @@ archive_name = "aionotion"
|
|||||||
description = '''
|
description = '''
|
||||||
A asyncio-friendly library for Notion Home Monitoring devices.
|
A asyncio-friendly library for Notion Home Monitoring devices.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
extra_build_requires = ["runtime"]
|
|
||||||
|
|
||||||
license_files = ["LICENSE"]
|
|
||||||
doc_files = ["README.md"]
|
|
||||||
|
|
||||||
changelog_head = "Fri Jun 04 2021 Package Manager <package@manager.com>"
|
changelog_head = "Fri Jun 04 2021 Package Manager <package@manager.com>"
|
||||||
changelog_msg = "Rebuilt for Python 3.10"
|
changelog_msg = "Rebuilt for Python 3.10"
|
||||||
@@ -18,8 +18,6 @@ manual_build_requires = [
|
|||||||
"python3dist(pytest)",
|
"python3dist(pytest)",
|
||||||
]
|
]
|
||||||
|
|
||||||
extra_build_requires = ["runtime"]
|
|
||||||
|
|
||||||
test_method = "pytest"
|
test_method = "pytest"
|
||||||
license_files = ["LICENSE"]
|
license_files = ["LICENSE"]
|
||||||
doc_files = ["README.md"]
|
doc_files = ["README.md"]
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ It's the "Command Line Interface Creation Kit". It's highly configurable but\
|
|||||||
comes with good defaults out of the box.
|
comes with good defaults out of the box.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
extra_build_requires = ["test"]
|
extra_build_requires = ["tox"]
|
||||||
test_method = "tox"
|
test_method = "tox"
|
||||||
|
|
||||||
license_files = ["LICENSE.rst"]
|
license_files = ["LICENSE.rst"]
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ This package contains utilities for making Python packages with and without
|
|||||||
accompanying JavaScript packages.
|
accompanying JavaScript packages.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
extra_build_requires = ["runtime", "extra"]
|
extra_build_requires = ["extra"]
|
||||||
extra_test_env = ["test"]
|
extra_test_env = ["test"]
|
||||||
|
|
||||||
test_method = "pytest"
|
test_method = "pytest"
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ manual_build_requires = [
|
|||||||
"python3-dateutil",
|
"python3-dateutil",
|
||||||
]
|
]
|
||||||
|
|
||||||
extra_build_requires = ["runtime"]
|
|
||||||
test_method = "pytest"
|
test_method = "pytest"
|
||||||
|
|
||||||
license_files = ["LICENSE"]
|
license_files = ["LICENSE"]
|
||||||
|
|||||||
Reference in New Issue
Block a user