mirror of
https://github.com/danieldemus/pyp2spec.git
synced 2026-07-27 21:00:37 +02:00
Alongside with the license-related code the tests were significantly refactored to run offline. The changes are intertwined and so shipped in a single commit. The licensing changes: - updated Trove-Fedora mappings (removed Callaway expressions, added SPDX) - delegated the compliance check of Fedora licenses to a source maintained by the Fedora Legal team - the logic of license processing was moved to a dedicated module: license_processor The testing changes: - moved betamax configuration to conftest.py to achieve a reliable global setting - mocked fedora licensing data and PyPI package data to stop making unnecessary requests - most of the betamax cassettes were deleted - several tests rewritten, many added - regenerated remaining betamax cassettes This is a best-effort solution which can't (nor aims to) cover all edge-cases. Unless Python adopts SPDX standard, this will always be an approximation.
51 lines
1.2 KiB
INI
51 lines
1.2 KiB
INI
[metadata]
|
|
name = pyp2spec
|
|
version = 0.6.1
|
|
author = Karolina Surma
|
|
author_email = ksurma@redhat.com
|
|
description = Generate a valid Fedora specfile from Python package from PyPI
|
|
long_description = file: README.md
|
|
long_description_content_type = text/markdown
|
|
license = MIT, MIT-0
|
|
license_files =
|
|
LICENSE-MIT
|
|
LICENSE-MIT-0
|
|
url = https://github.com/befeleme/pyp2spec/
|
|
classifiers =
|
|
Programming Language :: Python :: 3
|
|
Programming Language :: Python :: 3.8
|
|
Operating System :: POSIX :: Linux
|
|
License :: OSI Approved :: MIT License
|
|
License :: OSI Approved :: MIT No Attribution License (MIT-0)
|
|
Development Status :: 3 - Alpha
|
|
|
|
[options]
|
|
packages = find:
|
|
python_requires = >=3.8
|
|
install_requires =
|
|
click
|
|
jinja2
|
|
license-expression
|
|
packaging
|
|
requests
|
|
tomli;python_version<"3.11"
|
|
tomli-w
|
|
include_package_data = True
|
|
|
|
[options.package_data]
|
|
pyp2spec =
|
|
template.spec
|
|
classifiers_to_fedora.json
|
|
|
|
[options.extras_require]
|
|
test =
|
|
pytest
|
|
pytest-regressions
|
|
betamax
|
|
|
|
[options.entry_points]
|
|
console_scripts =
|
|
pyp2spec = pyp2spec.pyp2spec:main
|
|
conf2spec = pyp2spec.conf2spec:main
|
|
pyp2conf = pyp2spec.pyp2conf:main
|