mirror of
https://github.com/danieldemus/pyp2spec.git
synced 2026-07-27 21:00:37 +02:00
Remove the license-related config options
The main Python build backends can discover the license files automatically. We don't need bits to manually add them.
This commit is contained in:
@@ -104,7 +104,6 @@ Configuration data is stored in a TOML file.
|
||||
| -------- | -------- | -------- |
|
||||
| test_top_level | filter and test only top-level modules in %check | bool |
|
||||
| binary_files | list binary files from the package | list |
|
||||
| license_files | list license files from the package | list |
|
||||
| doc_files | list doc files from the package | list |
|
||||
|
||||
|
||||
|
||||
@@ -70,9 +70,6 @@ Summary: %{summary}
|
||||
{% if doc_files -%}
|
||||
%doc {{doc_files}}
|
||||
{% endif -%}
|
||||
{% if license_files -%}
|
||||
%license {{license_files}}
|
||||
{% endif -%}
|
||||
{% if binary_files -%}
|
||||
{% for bf in binary_files -%}
|
||||
%{_bindir}/{{bf}}
|
||||
|
||||
@@ -54,7 +54,6 @@ Summary: %{summary}
|
||||
|
||||
%files -n python3-markdown-it-py -f %{pyproject_files}
|
||||
%doc README.md
|
||||
%license LICENSE LICENSE.markdown-it
|
||||
%{_bindir}/markdown-it
|
||||
|
||||
|
||||
|
||||
@@ -34,19 +34,6 @@ def test_top_level_flag_is_loaded(config_dir, conf, expected):
|
||||
assert config.get_bool("test_top_level") == expected
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("conf", "expected"), [
|
||||
("customized_boutdata.conf", ["LICENSE"]),
|
||||
("customized_markdown-it-py.conf", ["LICENSE", "LICENSE.markdown-it"]),
|
||||
("customized_aionotion.conf", []),
|
||||
]
|
||||
)
|
||||
def test_license_files_are_loaded(config_dir, conf, expected):
|
||||
config_path = config_dir + conf
|
||||
config = conf2spec.ConfigFile(config_path)
|
||||
assert config.get_list("license_files") == expected
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("conf", "expected"), [
|
||||
("customized_click.conf", ["README.rst", "CHANGES.rst"]),
|
||||
|
||||
@@ -12,5 +12,4 @@ Python interface for reading bout++ data files.
|
||||
'''
|
||||
|
||||
test_top_level = true
|
||||
license_files = ["LICENSE"]
|
||||
doc_files = ["README.md"]
|
||||
|
||||
@@ -14,5 +14,4 @@ It's the "Command Line Interface Creation Kit". It's highly configurable but
|
||||
comes with good defaults out of the box.
|
||||
'''
|
||||
|
||||
license_files = ["LICENSE.rst"]
|
||||
doc_files = ["README.rst", "CHANGES.rst"]
|
||||
|
||||
@@ -9,5 +9,4 @@ source = "%{pypi_source jupyter_packaging}"
|
||||
archive_name = "jupyter_packaging"
|
||||
description = "This package contains utilities for making Python packages with and without accompanying JavaScript packages."
|
||||
|
||||
license_files = ["LICENSE"]
|
||||
doc_files = ["README.md"]
|
||||
|
||||
@@ -15,6 +15,5 @@ Pluggable: Adds syntax extensions to extend the parser.
|
||||
High speed & safe by default
|
||||
'''
|
||||
|
||||
license_files = ["LICENSE", "LICENSE.markdown-it"]
|
||||
doc_files = ["README.md"]
|
||||
binary_files = ["markdown-it"]
|
||||
|
||||
Reference in New Issue
Block a user