Commit Graph
24 Commits
Author SHA1 Message Date
Karolina SurmaandKarolina Surma ebd1b81075 Move to rpmautospec macros for changelog and release
rpmautospec has been present in Fedora since F35 and it's currently
a recommended way of handling the changelog and release specfile
entries: https://fedoraproject.org/wiki/Changes/rpmautospec
2023-04-25 16:24:37 +02:00
Karolina SurmaandKarolina Surma 238faa40d6 Exit script correctly on a non-existing package (fixes #30) 2023-04-25 16:24:37 +02:00
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
Karolina Surma 83a3568192 Bump version 0.6.0 -> 0.6.1 2022-08-01 14:14:57 +02:00
Karolina Surma d9705f8536 Bump version 0.5.0 -> 0.6.0 2022-08-01 13:20:42 +02:00
Karolina Surma 1ace5ce889 Normalize PyPI projects' name
- Replace underscores and dots  with dashes in projects' names
Projects like sphinx_design result in python-sphinx-design.spec
and python3-sphinx-design built RPM name.
- Convert uppercase characters to lowercase
Projects like Pello result in python-pello.spec and python3-pello
built RPM name.
This conforms better with package naming guidelines:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_naming
2022-08-01 12:59:24 +02:00
Karolina Surma 7b6b657f77 Relicense template.spec and derived files as MIT-0 (No attribution)
Fedora Legal plans to classify CC0 as content-only license, the
recommended equivalent for code being MIT-0:
https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/RRYM3CLYJYW64VSQIXY6IF3TCDZGS6LM/
With the agreement of all contributors to the template.spec (#25), this file and
any files produced by pyp2spec are now licensed as MIT-0.
Fixes: #25
2022-07-26 16:06:10 +02:00
Karolina Surma ea39b14723 Clearly state the project's maturity as alpha 2022-06-20 13:00:13 +02:00
Karolina Surma d574544cfc Bump version 0.3.3 -> 0.4.0 2022-05-23 14:14:08 +02:00
Karolina Surma 38638cc2a0 Update documentation to reflect latest changes 2022-02-11 15:47:36 +01: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 c78ed80705 It's possible to declare --archful package via CLI (#10) 2022-02-11 14:15:33 +01:00
Karolina Surma 4ecfc8af80 Remove generating the runtime requirements from spec file
pyproject-rpm-macros 0.53 made `-r` the default option.
2022-02-09 10:51:38 +01:00
Karolina Surma 8c2e7d3909 Bump version 0.3.2 -> 0.3.3 2022-01-12 09:19:16 +01:00
Karolina Surma 897dba3961 Update changelog 2022-01-12 09:17:36 +01:00
Karolina Surma 11cbe83cd1 Bump version 0.3.1 -> 0.3.2 2021-12-10 11:48:10 +01:00
Karolina Surma 67266a4679 Use package_url if no project_urls are listed (Fixes: #17) 2021-12-10 10:26:53 +01:00
Karolina Surma e09cf1b5ae Bump release 0.3.0 -> 0.3.1 2021-12-09 08:24:55 +01:00
Karolina Surma 653450748d Fix %pypi_source macro when sdist is zipped 2021-12-09 08:23:33 +01:00
Karolina Surma 862dfe892d Bump version 0.2.0 -> 0.3.0 2021-12-08 17:35:49 +01:00
Karolina Surma 1296900be1 Add MANIFEST.in so that tests make it to sdist 2021-12-08 17:34:37 +01:00
Karolina Surma a45a3e0cf7 Add changelog entries 2021-12-08 17:04:46 +01:00
Karolina Surma 2515603a18 Update cassettes so tests don't send real requests 2021-12-08 17:04:46 +01:00
Karolina Surma fd2872be49 Start Changelog.md + update for 0.2.0 2021-11-29 16:24:45 +01:00