diff options
| author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-05-09 11:55:26 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-11 17:08:29 +0100 |
| commit | 1f6815e2109841861454ea0fe9d9c13033ce950c (patch) | |
| tree | 3cff6051010befad48ecdd3613e0a79356c9acdc /meta/recipes-devtools/python/python3-calver | |
| parent | a54cb25905a4b1447517da30cf456c50c916e14b (diff) | |
| download | poky-1f6815e2109841861454ea0fe9d9c13033ce950c.tar.gz | |
python3-calver: Add recipe
calver is "a setuptools extension for automatically defining your Python
package version as a calendar version." It is required for
python3-trove-classifiers (another new recipe), which in turn is
required for the upgrade of python3-hatchling from 1.13.0 to work.
(From OE-Core rev: 79ed4fcad6bd49c269ada3ab99ca4548aaf34e99)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-calver')
| -rw-r--r-- | meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch | 32 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-calver/run-ptest | 3 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch b/meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch new file mode 100644 index 0000000000..43f8a78ef0 --- /dev/null +++ b/meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 390a233ed969f82b2ef209b23bfb523e785603f9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Trevor Gamblin <tgamblin@baylibre.com> | ||
| 3 | Date: Tue, 9 May 2023 10:19:41 -0400 | ||
| 4 | Subject: [PATCH] setup.py: hard-code version | ||
| 5 | |||
| 6 | setup.py is pulling the build version from the current date rather than | ||
| 7 | a release tag or other predictable method, causing reproducibility | ||
| 8 | issues in builds. Patch this to make reproducible builds work while | ||
| 9 | discussing this with upstream maintainer (or developing a patch that can | ||
| 10 | make calver rely on a more standard pyproject.toml solution). | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate (configuration) | ||
| 13 | |||
| 14 | Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> | ||
| 15 | --- | ||
| 16 | setup.py | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/setup.py b/setup.py | ||
| 20 | index 73f6b10..2e27cf1 100644 | ||
| 21 | --- a/setup.py | ||
| 22 | +++ b/setup.py | ||
| 23 | @@ -42,5 +42,5 @@ setup( | ||
| 24 | "use_calver = calver.integration:version", | ||
| 25 | ], | ||
| 26 | }, | ||
| 27 | - version=calver_version(True), | ||
| 28 | + version=calver_version("2022.6.26"), | ||
| 29 | ) | ||
| 30 | -- | ||
| 31 | 2.40.0 | ||
| 32 | |||
diff --git a/meta/recipes-devtools/python/python3-calver/run-ptest b/meta/recipes-devtools/python/python3-calver/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta/recipes-devtools/python/python3-calver/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
