217 Commits
Author SHA1 Message Date
Karolina Surma 83a3568192 Bump version 0.6.0 -> 0.6.1 2022-08-01 14:14:57 +02:00
Karolina Surma dd292eb93c Include LICENSE-MIT-0 in the sdist and fix license metadata 2022-08-01 14:14:44 +02:00
Karolina Surma d9705f8536 Bump version 0.5.0 -> 0.6.0 2022-08-01 13:20:42 +02:00
Karolina Surma e580d544ae Add instructions how to record cassettes when needed 2022-08-01 12:59:24 +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 a28d3a218e Update license in package metadata 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
Maxwell GandKarolina Surma e2a4d88420 Change default changelog message
At least when packaging for Fedora, the fact that the specfile is
generated by pyp2spec is irrelevant as far as the changelog is
concerned. Generally, the initial changelog
entry is "Initial package" or something similar.

Signed-off-by: Maxwell G <gotmax@e.email>
2022-07-18 13:17:16 +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
Miro HrončokandKarolina Surma c93caf9a6a rpmversion uses packaging 2022-05-23 14:11:00 +02:00
Karolina SurmaandGitHub 499a4b14ed Merge pull request #22 from hroncok/source_number
Drop redundant source numbers
2022-03-30 15:25:17 +02:00
Karolina Surma 76667d0f53 There's no URL in source anymore 2022-03-30 15:18:41 +02:00
Karolina Surma dda1c5873b Improve working with RPM/PyPI versions
- If the RPM and PyPI version strings differ, they both need to be acquired to
  generate a valid spec file: PyPI string is needed for autosetup in %prep and
  %pypi_source macro.
- Improve generating %{pypi_source} macro to incorporate the different
  version strings if they differ. It not, there's no need to include it.
2022-03-30 15:18:41 +02:00
Karolina Surma 57c5799587 archive_name is now obtained in a better fashion
Instead of error-prone splitting the strings on hyphens, strip the
archive filename from the suffixes and versions, which shall result in
getting the pure archive name.
Refactor obtaining archive filename to traverse the json data just once.
2022-03-30 15:18:41 +02:00
Miro Hrončok 01e61f2f52 Drop redundant source numbers
Relevant change in Fedora's packaging guidelines:
https://pagure.io/packaging-committee/pull-request/1157

Done by:

    sed -i 's/Source0:/Source: /' $(rg -l Source0)
2022-03-18 17:08:46 +01: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 818b04fba9 Remove CLI duplicate short option 2022-02-10 10:31:49 +01:00
Karolina Surma bf54f2bd9d Rename CI job to 'test' - it doesn't build anything 2022-02-09 10:51:38 +01:00
Karolina Surma a441b9ab66 Set betamax recording to 'none' - only reply existing cassettes 2022-02-09 10:51:38 +01:00
Karolina Surma 8d473ab526 Refactor tests significantly (#14)
- Test two spec files as generated files (one default, one custom).
This means any change to a template will require just one or two changes
in the files.
- Test each custom field separately, before they're saved to file.
- Remove configs/spec files which only duplicate what was already
  tested.
2022-02-09 10:51:38 +01:00
Karolina Surma 53900db265 Fix some pylint suggestions 2022-02-09 10:51:38 +01:00
Karolina Surma df32fc8113 Quit the scripts with sys.exit(), not exit() 2022-02-09 10:51:38 +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 7c215b1f0f Get those quotation marks right 2022-02-04 13:15:09 +01:00
Karolina Surma 4544400ee5 Fix: actually assert the expression in tests 2022-01-12 09:41:56 +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 707cb079fb Refactor obtaining License (#19)
- Sometimes the License keyword contains the full license text instead of
a keyword (indicated by multiline string value).
In this case it's impossible to reliably derive the keyword,
hence such value is discarded.
- Added verbose docstring with License quirks' explanation
2022-01-10 11:18:50 +01:00
Karolina Surma f79496ca20 Discard multiline Summary, use generated string instead (#19) 2022-01-10 11:18:50 +01:00
Karolina Surma 51c9b2d165 Generate Summary if not provided (Fixes: #18)
Summary can be gotten from upstream metadata or provided via CLI.
If upstream metadata is empty and no argument was provided,
generate an empty summary string to fill in the spec file.
2022-01-10 11:18:50 +01:00
Karolina Surma 74ec6c0b49 Make it visible that description must be updated by the packager 2022-01-10 11:08:28 +01:00
Karolina Surma ffdf3f8dd6 Fix: spec files should end with a newline 2022-01-10 10:53:57 +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 c28b7c7b18 Recognize and declare zip sdist in Source macro (fixes: #12) 2021-12-08 17:04:46 +01:00
Karolina Surma bebafff5d8 Ignore 'OSI Approved' in License classifiers (Fixes: #13) 2021-12-08 17:04:46 +01:00
Karolina Surma 164f97c871 Wrap description line on 79 characters (Fixes: #11) 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 429632d8ff Bump version -> 0.2.0 2021-11-29 16:27:16 +01:00
Karolina Surma fd2872be49 Start Changelog.md + update for 0.2.0 2021-11-29 16:24:45 +01:00
Karolina Surma 2e57d67542 Add the possibility to test only top-level modules in %%check 2021-11-26 17:45:50 +01:00
Miro HrončokandKarolina Surma 7a7ecdb608 Warn about %pyproject_save_files '*' +auto
Closes: #9
2021-11-26 17:45:50 +01:00