Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-humanize: update to 4.6.0.
@ 2023-03-16 19:47 icp1994
  2023-03-18  6:31 ` [PR PATCH] [Merged]: " paper42
  0 siblings, 1 reply; 2+ messages in thread
From: icp1994 @ 2023-03-16 19:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

There is a new pull request by icp1994 against master on the void-packages repository

https://github.com/icp1994/void-packages python3-humanize
https://github.com/void-linux/void-packages/pull/42813

python3-humanize: update to 4.6.0.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

A patch file from https://github.com/void-linux/void-packages/pull/42813.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-humanize-42813.patch --]
[-- Type: text/x-diff, Size: 1538 bytes --]

From 5de6eaa955ce78837f54e4823ef07155cc907171 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Wed, 15 Mar 2023 22:28:52 +0530
Subject: [PATCH] python3-humanize: update to 4.6.0.

---
 srcpkgs/python3-humanize/template | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-humanize/template b/srcpkgs/python3-humanize/template
index eeeb8a0e576a..277a7ddce8ba 100644
--- a/srcpkgs/python3-humanize/template
+++ b/srcpkgs/python3-humanize/template
@@ -1,17 +1,25 @@
 # Template file for 'python3-humanize'
 pkgname=python3-humanize
-version=4.3.0
-revision=2
+version=4.6.0
+revision=1
 build_style=python3-pep517
-hostmakedepends="python3-setuptools_scm python3-wheel"
+hostmakedepends="hatchling hatch-vcs"
 depends="python3"
 checkdepends="python3-pytest python3-freezegun"
 short_desc="Python humanize utilities"
 maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
 license="MIT"
 homepage="https://github.com/python-humanize/humanize"
+changelog="https://github.com/python-humanize/humanize/releases"
 distfiles="${PYPI_SITE}/h/humanize/humanize-${version}.tar.gz"
-checksum=0dfac79fe8c1c0c734c14177b07b857bad9ae30dd50daa0a14e2c3d8054ee0c4
+checksum=5f1f22bc65911eb1a6ffe7659bd6598e33dcfeeb904eb16ee1e705a09bf75916
+make_check_pre="env PYTHONPATH=src"
+
+post_patch() {
+	# allow running tests without installing
+	vsed -e "s/importlib_metadata\.version(__name__)/'${version}'/g" \
+		-i src/humanize/__init__.py
+}
 
 post_install() {
 	vlicense LICENCE

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-18  6:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16 19:47 [PR PATCH] python3-humanize: update to 4.6.0 icp1994
2023-03-18  6:31 ` [PR PATCH] [Merged]: " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).