Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-Babel: update to 2.12.1.
@ 2023-04-17 18:23 tornaria
  2023-04-24  0:32 ` tornaria
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tornaria @ 2023-04-17 18:23 UTC (permalink / raw)
  To: ml

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

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

https://github.com/tornaria/void-packages python3-Babel
https://github.com/void-linux/void-packages/pull/43497

python3-Babel: update to 2.12.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Using sphinx with current version of `python3-Babel` gives the following deprecation warning :
```
$ python -Wonce -c 'import sphinx.application'
/usr/lib/python3.11/site-packages/babel/messages/catalog.py:13: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  from cgi import parse_header
```

The update fixes this. I had to include https://github.com/python-babel/babel/pull/998 so tests pass, since it only touches test code I think its safe to include.

I found this while doctesting sagemath. A bunch of tests fail because of this deprecation warning, and after this update everything passes.

Cc: @sgn, since this affects `python3-Sphinx`.

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From c13114023863a1ab1803f5721820fdd4260fa8b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 17 Apr 2023 14:31:03 -0300
Subject: [PATCH] python3-Babel: update to 2.12.1.

---
 srcpkgs/python3-Babel/patches/998.patch | 43 +++++++++++++++++++++++++
 srcpkgs/python3-Babel/template          |  6 ++--
 2 files changed, 46 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/python3-Babel/patches/998.patch

diff --git a/srcpkgs/python3-Babel/patches/998.patch b/srcpkgs/python3-Babel/patches/998.patch
new file mode 100644
index 000000000000..4779f907a9dd
--- /dev/null
+++ b/srcpkgs/python3-Babel/patches/998.patch
@@ -0,0 +1,43 @@
+From 641f58c9951d9f5746cd63743dd337f1340d7bff Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Fri, 7 Apr 2023 14:51:10 +0000
+Subject: [PATCH] Freeze format_time() tests to a specific date to fix test
+ failures
+
+Freeze the date when performing the tests for format_time() with
+a timezone specified.  Since the time object does not specify a date,
+the formatter uses the format string specific to the current date.
+As a result, if the current DST state is different than when the test
+was last updated, it failed.
+
+This fix covers only regular tests.  I have no idea how to do the same
+for doctests.
+
+Issue #988
+---
+ tests/test_dates.py | 11 ++++++-----
+ 1 file changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/tests/test_dates.py b/tests/test_dates.py
+index b94c710f..3f1fc3fc 100644
+--- a/tests/test_dates.py
++++ b/tests/test_dates.py
+@@ -601,12 +601,13 @@ def test_format_time(timezone_getter):
+     custom = dates.format_time(t, "hh 'o''clock' a, zzzz", tzinfo=eastern, locale='en')
+     assert custom == "09 o'clock AM, Eastern Daylight Time"
+ 
+-    t = time(15, 30)
+-    paris = dates.format_time(t, format='full', tzinfo=paris, locale='fr_FR')
+-    assert paris == '15:30:00 heure normale d’Europe centrale'
++    with freezegun.freeze_time("2023-01-01"):
++        t = time(15, 30)
++        paris = dates.format_time(t, format='full', tzinfo=paris, locale='fr_FR')
++        assert paris == '15:30:00 heure normale d’Europe centrale'
+ 
+-    us_east = dates.format_time(t, format='full', tzinfo=eastern, locale='en_US')
+-    assert us_east == '3:30:00\u202fPM Eastern Standard Time'
++        us_east = dates.format_time(t, format='full', tzinfo=eastern, locale='en_US')
++        assert us_east == '3:30:00\u202fPM Eastern Standard Time'
+ 
+ 
+ def test_format_skeleton(timezone_getter):
diff --git a/srcpkgs/python3-Babel/template b/srcpkgs/python3-Babel/template
index 4f2dc8425795..46530ba596e3 100644
--- a/srcpkgs/python3-Babel/template
+++ b/srcpkgs/python3-Babel/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-Babel'
 pkgname=python3-Babel
-version=2.10.3
-revision=2
+version=2.12.1
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 depends="python3-pytz"
@@ -12,7 +12,7 @@ license="BSD-3-Clause"
 homepage="https://babel.pocoo.org"
 changelog="https://raw.githubusercontent.com/python-babel/babel/master/CHANGES.rst"
 distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
-checksum=7614553711ee97490f732126dc077f8d0ae084ebc6a96e23db1482afabdb2c51
+checksum=cc2d99999cd01d44420ae725a21c9e3711b3aadc7976d6147f622d8581963455
 
 post_install() {
 	vlicense LICENSE

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

* Re: python3-Babel: update to 2.12.1.
  2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
@ 2023-04-24  0:32 ` tornaria
  2023-04-25 13:13 ` tornaria
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tornaria @ 2023-04-24  0:32 UTC (permalink / raw)
  To: ml

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

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/43497#issuecomment-1519210730

Comment:
ping @sgn @ahesford 

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

* Re: python3-Babel: update to 2.12.1.
  2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
  2023-04-24  0:32 ` tornaria
@ 2023-04-25 13:13 ` tornaria
  2023-04-25 15:37 ` sgn
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tornaria @ 2023-04-25 13:13 UTC (permalink / raw)
  To: ml

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

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/43497#issuecomment-1521770428

Comment:
For the record: pytz is no longer a dependency, if not installed zoneinfo will be used. However, there is some subtle discrepancy in behaviour between the two which causes a couple of test failures (reported upstream: https://github.com/python-babel/babel/issues/988#issuecomment-1521765563).

Since this is not just test failures but an actual change of behaviour, I'd propose to keep `pytz` as a dependency for consistent behaviour while this is sorted out upstream.

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

* Re: python3-Babel: update to 2.12.1.
  2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
  2023-04-24  0:32 ` tornaria
  2023-04-25 13:13 ` tornaria
@ 2023-04-25 15:37 ` sgn
  2023-04-25 15:53 ` [PR PATCH] [Updated] " tornaria
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2023-04-25 15:37 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/43497#issuecomment-1522014357

Comment:
I would argue that the new behaviour is more correct :D 

Anyway, this could fix the test:
```diff
diff --git a/srcpkgs/python3-Babel/template b/srcpkgs/python3-Babel/template
index 46530ba596e..9255e8537f4 100644
--- a/srcpkgs/python3-Babel/template
+++ b/srcpkgs/python3-Babel/template
@@ -4,8 +4,7 @@ version=2.12.1
 revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-pytz"
-checkdepends="python3-pytest python3-pytz python3-freezegun"
+checkdepends="python3-pytest python3-freezegun faketime"
 short_desc="Tools for internationalizing Python applications (Python3)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
@@ -14,6 +13,14 @@ changelog="https://raw.githubusercontent.com/python-babel/babel/master/CHANGES.r
 distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
 checksum=cc2d99999cd01d44420ae725a21c9e3711b3aadc7976d6147f622d8581963455
 
+do_check() {
+	# If you see this is hanging, remove faketime
+	# it has problem with python's time.sleep
+	LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 \
+		FAKETIME="@2023-01-01 00:00:00" \
+		python3 -m pytest
+}
+
 post_install() {
 	vlicense LICENSE
 	# for compatibility
```

The 998 patch is no longer needed, too.
http://ix.io/4ugi

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

* Re: [PR PATCH] [Updated] python3-Babel: update to 2.12.1.
  2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
                   ` (2 preceding siblings ...)
  2023-04-25 15:37 ` sgn
@ 2023-04-25 15:53 ` tornaria
  2023-04-25 15:54 ` tornaria
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tornaria @ 2023-04-25 15:53 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages python3-Babel
https://github.com/void-linux/void-packages/pull/43497

python3-Babel: update to 2.12.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Using sphinx with current version of `python3-Babel` gives the following deprecation warning :
```
$ python -Wonce -c 'import sphinx.application'
/usr/lib/python3.11/site-packages/babel/messages/catalog.py:13: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  from cgi import parse_header
```

The update fixes this. I had to include https://github.com/python-babel/babel/pull/998 so tests pass, since it only touches test code I think its safe to include.

I found this while doctesting sagemath. A bunch of tests fail because of this deprecation warning, and after this update everything passes.

Cc: @sgn, since this affects `python3-Sphinx`.

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 75c1b65cab5e80d1af52b7df630333649aecaeaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 17 Apr 2023 14:31:03 -0300
Subject: [PATCH] python3-Babel: update to 2.12.1.

---
 srcpkgs/python3-Babel/template | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/python3-Babel/template b/srcpkgs/python3-Babel/template
index 4f2dc8425795..9255e8537f4e 100644
--- a/srcpkgs/python3-Babel/template
+++ b/srcpkgs/python3-Babel/template
@@ -1,18 +1,25 @@
 # Template file for 'python3-Babel'
 pkgname=python3-Babel
-version=2.10.3
-revision=2
+version=2.12.1
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-pytz"
-checkdepends="python3-pytest python3-pytz python3-freezegun"
+checkdepends="python3-pytest python3-freezegun faketime"
 short_desc="Tools for internationalizing Python applications (Python3)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
 homepage="https://babel.pocoo.org"
 changelog="https://raw.githubusercontent.com/python-babel/babel/master/CHANGES.rst"
 distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
-checksum=7614553711ee97490f732126dc077f8d0ae084ebc6a96e23db1482afabdb2c51
+checksum=cc2d99999cd01d44420ae725a21c9e3711b3aadc7976d6147f622d8581963455
+
+do_check() {
+	# If you see this is hanging, remove faketime
+	# it has problem with python's time.sleep
+	LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 \
+		FAKETIME="@2023-01-01 00:00:00" \
+		python3 -m pytest
+}
 
 post_install() {
 	vlicense LICENSE

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

* Re: python3-Babel: update to 2.12.1.
  2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
                   ` (3 preceding siblings ...)
  2023-04-25 15:53 ` [PR PATCH] [Updated] " tornaria
@ 2023-04-25 15:54 ` tornaria
  2023-04-25 21:23 ` [PR PATCH] [Updated] " tornaria
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tornaria @ 2023-04-25 15:54 UTC (permalink / raw)
  To: ml

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

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/43497#issuecomment-1522038634

Comment:
Done, thanks.

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

* Re: [PR PATCH] [Updated] python3-Babel: update to 2.12.1.
  2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
                   ` (4 preceding siblings ...)
  2023-04-25 15:54 ` tornaria
@ 2023-04-25 21:23 ` tornaria
  2023-04-27  2:37 ` tornaria
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tornaria @ 2023-04-25 21:23 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages python3-Babel
https://github.com/void-linux/void-packages/pull/43497

python3-Babel: update to 2.12.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Using sphinx with current version of `python3-Babel` gives the following deprecation warning :
```
$ python -Wonce -c 'import sphinx.application'
/usr/lib/python3.11/site-packages/babel/messages/catalog.py:13: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  from cgi import parse_header
```

The update fixes this. I had to include https://github.com/python-babel/babel/pull/998 so tests pass, since it only touches test code I think its safe to include.

I found this while doctesting sagemath. A bunch of tests fail because of this deprecation warning, and after this update everything passes.

Cc: @sgn, since this affects `python3-Sphinx`.

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 5e7293517dec0ba5e6ad09b3a771fd0c68847028 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 17 Apr 2023 14:31:03 -0300
Subject: [PATCH] python3-Babel: update to 2.12.1.

---
 srcpkgs/python3-Babel/template | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/python3-Babel/template b/srcpkgs/python3-Babel/template
index 4f2dc8425795..9255e8537f4e 100644
--- a/srcpkgs/python3-Babel/template
+++ b/srcpkgs/python3-Babel/template
@@ -1,18 +1,25 @@
 # Template file for 'python3-Babel'
 pkgname=python3-Babel
-version=2.10.3
-revision=2
+version=2.12.1
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-pytz"
-checkdepends="python3-pytest python3-pytz python3-freezegun"
+checkdepends="python3-pytest python3-freezegun faketime"
 short_desc="Tools for internationalizing Python applications (Python3)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
 homepage="https://babel.pocoo.org"
 changelog="https://raw.githubusercontent.com/python-babel/babel/master/CHANGES.rst"
 distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
-checksum=7614553711ee97490f732126dc077f8d0ae084ebc6a96e23db1482afabdb2c51
+checksum=cc2d99999cd01d44420ae725a21c9e3711b3aadc7976d6147f622d8581963455
+
+do_check() {
+	# If you see this is hanging, remove faketime
+	# it has problem with python's time.sleep
+	LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 \
+		FAKETIME="@2023-01-01 00:00:00" \
+		python3 -m pytest
+}
 
 post_install() {
 	vlicense LICENSE

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

* Re: [PR PATCH] [Updated] python3-Babel: update to 2.12.1.
  2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
                   ` (5 preceding siblings ...)
  2023-04-25 21:23 ` [PR PATCH] [Updated] " tornaria
@ 2023-04-27  2:37 ` tornaria
  2023-04-28 20:28 ` tornaria
  2023-04-28 21:39 ` [PR PATCH] [Merged]: " sgn
  8 siblings, 0 replies; 10+ messages in thread
From: tornaria @ 2023-04-27  2:37 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages python3-Babel
https://github.com/void-linux/void-packages/pull/43497

python3-Babel: update to 2.12.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Using sphinx with current version of `python3-Babel` gives the following deprecation warning :
```
$ python -Wonce -c 'import sphinx.application'
/usr/lib/python3.11/site-packages/babel/messages/catalog.py:13: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  from cgi import parse_header
```

The update fixes this. I had to include https://github.com/python-babel/babel/pull/998 so tests pass, since it only touches test code I think its safe to include.

I found this while doctesting sagemath. A bunch of tests fail because of this deprecation warning, and after this update everything passes.

Cc: @sgn, since this affects `python3-Sphinx`.

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 16de4e836ff508300b9c8172ec1a9a8a48a551bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 17 Apr 2023 14:31:03 -0300
Subject: [PATCH] python3-Babel: update to 2.12.1.

---
 srcpkgs/python3-Babel/template | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/python3-Babel/template b/srcpkgs/python3-Babel/template
index 4f2dc8425795..9255e8537f4e 100644
--- a/srcpkgs/python3-Babel/template
+++ b/srcpkgs/python3-Babel/template
@@ -1,18 +1,25 @@
 # Template file for 'python3-Babel'
 pkgname=python3-Babel
-version=2.10.3
-revision=2
+version=2.12.1
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-pytz"
-checkdepends="python3-pytest python3-pytz python3-freezegun"
+checkdepends="python3-pytest python3-freezegun faketime"
 short_desc="Tools for internationalizing Python applications (Python3)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
 homepage="https://babel.pocoo.org"
 changelog="https://raw.githubusercontent.com/python-babel/babel/master/CHANGES.rst"
 distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
-checksum=7614553711ee97490f732126dc077f8d0ae084ebc6a96e23db1482afabdb2c51
+checksum=cc2d99999cd01d44420ae725a21c9e3711b3aadc7976d6147f622d8581963455
+
+do_check() {
+	# If you see this is hanging, remove faketime
+	# it has problem with python's time.sleep
+	LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 \
+		FAKETIME="@2023-01-01 00:00:00" \
+		python3 -m pytest
+}
 
 post_install() {
 	vlicense LICENSE

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

* Re: python3-Babel: update to 2.12.1.
  2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
                   ` (6 preceding siblings ...)
  2023-04-27  2:37 ` tornaria
@ 2023-04-28 20:28 ` tornaria
  2023-04-28 21:39 ` [PR PATCH] [Merged]: " sgn
  8 siblings, 0 replies; 10+ messages in thread
From: tornaria @ 2023-04-28 20:28 UTC (permalink / raw)
  To: ml

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

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/43497#issuecomment-1528056753

Comment:
@sgn: anything in particular holding this back?

I would like to merge #43225 which needs (and includes) this PR.

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

* Re: [PR PATCH] [Merged]: python3-Babel: update to 2.12.1.
  2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
                   ` (7 preceding siblings ...)
  2023-04-28 20:28 ` tornaria
@ 2023-04-28 21:39 ` sgn
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2023-04-28 21:39 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

python3-Babel: update to 2.12.1.
https://github.com/void-linux/void-packages/pull/43497

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Using sphinx with current version of `python3-Babel` gives the following deprecation warning :
```
$ python -Wonce -c 'import sphinx.application'
/usr/lib/python3.11/site-packages/babel/messages/catalog.py:13: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  from cgi import parse_header
```

The update fixes this. I had to include https://github.com/python-babel/babel/pull/998 so tests pass, since it only touches test code I think its safe to include.

I found this while doctesting sagemath. A bunch of tests fail because of this deprecation warning, and after this update everything passes.

Cc: @sgn, since this affects `python3-Sphinx`.

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

end of thread, other threads:[~2023-04-28 21:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-17 18:23 [PR PATCH] python3-Babel: update to 2.12.1 tornaria
2023-04-24  0:32 ` tornaria
2023-04-25 13:13 ` tornaria
2023-04-25 15:37 ` sgn
2023-04-25 15:53 ` [PR PATCH] [Updated] " tornaria
2023-04-25 15:54 ` tornaria
2023-04-25 21:23 ` [PR PATCH] [Updated] " tornaria
2023-04-27  2:37 ` tornaria
2023-04-28 20:28 ` tornaria
2023-04-28 21:39 ` [PR PATCH] [Merged]: " sgn

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).