6 Commits
Author SHA1 Message Date
Karolina SurmaandKarolina Surma dce4344006 Convert Python license classifiers to SPDX expressions
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.
2023-04-25 10:17:47 +02:00
Miro HrončokandKarolina Surma 737036a322 Use tomllib from the standard library on Python 3.11+ 2022-10-20 14:06:37 +02:00
Karolina Surma 7d7af97946 Convert PEP 440 package version to RPM scheme (Fixes #20)
- Include converter based on pyreq2rpm to create valid RPM versions
- For non-compatible versions no transformation is done, such string may
  or may not work with RPM
2022-02-11 15:47:36 +01:00
Karolina Surma 069b0b980a Get basic package info from PyPI 2021-09-13 09:30:24 +02:00
Karolina Surma 0dfa2440f7 Save empty config file 2021-09-13 08:42:53 +02:00
Karolina Surma 65bb4bee40 Initial commit 2021-08-16 12:41:58 +02:00