From 94d7dd2955e4f739717d3ee4549585afb77650df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 25 Jan 2022 16:57:17 +0100 Subject: [PATCH] Release version 1.0.0, first release candidate --- README.md | 7 ++----- pyproject-rpm-macros.spec | 18 +++++++++++------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index c922f6c..888c144 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,6 @@ pyproject RPM macros These macros allow projects that follow the Python [packaging specifications] to be packaged as RPMs. -They are still *provisional*: we can make non-backwards-compatible changes to -the API. -Please subscribe to Fedora's [python-devel list] if you use the macros. - They work for: * traditional Setuptools-based projects that use the `setup.py` file, @@ -17,7 +13,6 @@ They work for: These macros replace `%py3_build` and `%py3_install`, which only work with `setup.py`. [packaging specifications]: https://packaging.python.org/specifications/ -[python-devel list]: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/ Usage @@ -332,11 +327,13 @@ Hence, the macro `%{pyproject_build_lib}` exists to be used like this: PYTHONPATH=%{pyproject_build_lib} ... build the docs here ... This macro is currently **provisional** and the behavior might change. +Please subscribe to Fedora's [python-devel list] if you use the macro. The `%{pyproject_build_lib}` macro expands to an Shell `$(...)` expression and does not work when put into single quotes (`'`). Depending on the pip version, the expanded value will differ: +[python-devel list]: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/ ### New pip 21.3+ with in-tree-build (Fedora 36+) diff --git a/pyproject-rpm-macros.spec b/pyproject-rpm-macros.spec index e3f9666..3e9d751 100644 --- a/pyproject-rpm-macros.spec +++ b/pyproject-rpm-macros.spec @@ -4,9 +4,14 @@ License: MIT %bcond_without tests -# Keep the version at zero and increment only release -Version: 0 -Release: 55%{?dist} +# The idea is to follow the spirit of semver +# Given version X.Y.Z: +# Increment X and reset Y.Z when there is a *major* incompatibility +# Increment Y and reset Z when new macros or features are added +# Increment Z when this is a bugfix or a cosmetic change +# Dropping support for EOL Fedoras is *not* considered a breaking change +Version: 1.0.0~rc1 +Release: 1%{?dist} # Macro files Source001: macros.pyproject @@ -62,10 +67,6 @@ Requires: /usr/bin/sed These macros allow projects that follow the Python packaging specifications to be packaged as RPMs. -They are still provisional: we can make non-backwards-compatible changes to -the API. -Please subscribe to Fedora's python-devel list if you use the macros. - They work for: * traditional Setuptools-based projects that use the setup.py file, @@ -120,6 +121,9 @@ export HOSTNAME="rpmbuild" # to speedup tox in network-less mock, see rhbz#1856 %license LICENSE %changelog +* Tue Jan 25 2022 Miro Hrončok - 1.0.0~rc1-1 +- Release version 1.0.0, first release candidate + * Mon Jan 24 2022 Miro Hrončok - 0-55 - %%pyproject_buildrequires: Generate BuildRequires for this package This package is already installed, but this way, the resulting SRPM explicitly BuildRequires it