Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Drop python3.8 backported package
@ 2019-12-24 16:50 voidlinux-github
  2019-12-24 16:51 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: voidlinux-github @ 2019-12-24 16:50 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages drop-python3.8-backport
https://github.com/void-linux/void-packages/pull/17755

Drop python3.8 backported package
- zipp, importlib_metadata, mock are back-ported package.

- Drop them since we're in Python 3.8 now.

- ./xbps-src check passed

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

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

From 61ca7ac6ec4c93480c978b79954f10a075beca48 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:37:56 +0700
Subject: [PATCH 1/3] python3-importlib_metadata: drop package

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python-importlib_metadata              |  1 -
 .../template                                   | 18 +++++-------------
 srcpkgs/python3-astroid/template               |  4 ++--
 srcpkgs/python3-pluggy/template                |  4 ++--
 srcpkgs/python3-pytest/template                |  6 +++---
 srcpkgs/tox/template                           |  4 ++--
 6 files changed, 14 insertions(+), 23 deletions(-)
 delete mode 120000 srcpkgs/python-importlib_metadata
 rename srcpkgs/{python3-importlib_metadata => python-importlib_metadata}/template (62%)

diff --git a/srcpkgs/python-importlib_metadata b/srcpkgs/python-importlib_metadata
deleted file mode 120000
index 211acaa67bf..00000000000
--- a/srcpkgs/python-importlib_metadata
+++ /dev/null
@@ -1 +0,0 @@
-python3-importlib_metadata
\ No newline at end of file
diff --git a/srcpkgs/python3-importlib_metadata/template b/srcpkgs/python-importlib_metadata/template
similarity index 62%
rename from srcpkgs/python3-importlib_metadata/template
rename to srcpkgs/python-importlib_metadata/template
index fa80b295033..2724967c6bd 100644
--- a/srcpkgs/python3-importlib_metadata/template
+++ b/srcpkgs/python-importlib_metadata/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-importlib_metadata'
-pkgname=python3-importlib_metadata
+# Template file for 'python-importlib_metadata'
+pkgname=python-importlib_metadata
 version=1.2.0
 revision=2
 archs=noarch
 wrksrc="importlib_metadata-${version}"
-build_style=python-module
+build_style=python2-module
 pycompile_module=importlib_metadata
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3-zipp"
+hostmakedepends="python-setuptools"
+depends="python-zipp"
 checkdepends="${depends}"
 short_desc="Read metadata from Python packages"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
@@ -16,11 +16,3 @@ homepage="https://importlib-metadata.readthedocs.io/en/latest/"
 changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(links).html"
 distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz"
 checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278
-
-python-importlib_metadata_package() {
-	depends=python-zipp
-	short_desc="${short_desc/Python/Python 2/}"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 7e85b0d4949..3abf82e0b6a 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-astroid'
 pkgname=python3-astroid
 version=2.3.3
-revision=2
+revision=3
 archs=noarch
 wrksrc="astroid-${version}"
 build_style=python3-module
@@ -10,7 +10,7 @@ hostmakedepends="python3-setuptools"
 depends="python3-six python3-lazy-object-proxy python3-wrapt
  python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools python3-importlib_metadata
+ python3-py python3-pluggy python3-more-itertools
  python3-parsing python3-zipp"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
diff --git a/srcpkgs/python3-pluggy/template b/srcpkgs/python3-pluggy/template
index b0dadf4585f..2e53ee5317c 100644
--- a/srcpkgs/python3-pluggy/template
+++ b/srcpkgs/python3-pluggy/template
@@ -1,13 +1,13 @@
 # Template file for 'python3-pluggy'
 pkgname=python3-pluggy
 version=0.13.1
-revision=2
+revision=3
 archs=noarch
 wrksrc="pluggy-${version}"
 build_style=python3-module
 pycompile_module="pluggy"
 hostmakedepends="python3-setuptools"
-depends="python3-importlib_metadata"
+depends="python3"
 checkdepends="python3-pytest ${depends}"
 short_desc="Minimalist production ready plugin system (Python3)"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 5c6ebe98970..1e6d57abd24 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,14 +1,14 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
 version=5.3.2
-revision=2
+revision=3
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
 pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
- python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth"
+ python3-atomicwrites python3-pluggy python3-wcwidth"
 checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
@@ -29,7 +29,7 @@ post_patch() {
 }
 
 do_check() {
-	tox -e py36
+	tox -e py38
 }
 
 post_install() {
diff --git a/srcpkgs/tox/template b/srcpkgs/tox/template
index 1dbab31033c..bc4a80de76d 100644
--- a/srcpkgs/tox/template
+++ b/srcpkgs/tox/template
@@ -1,10 +1,10 @@
 # Template file for 'tox'
 pkgname=tox
 version=3.14.2
-revision=2
+revision=3
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-filelock python3-importlib_metadata python3-packaging
+depends="python3-filelock python3-packaging
  python3-pluggy python3-pytest python3-toml python3-virtualenv"
 checkdepends="${depends} python3-flaky python3-pathlib2"
 short_desc="Generic virtualenv management and test command line tool"

From 3acd8400e8184bb393cd4e32a0cd3a133ef66af3 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:48:44 +0700
Subject: [PATCH 2/3] python3-zipp: drop package

zipp is a backport of Path object.
See: https://pypi.org/project/zipp/
---
 srcpkgs/python-zipp                           |  1 -
 .../{python3-zipp => python-zipp}/template    | 19 +++++--------------
 srcpkgs/python3-astroid/template              |  6 ++----
 3 files changed, 7 insertions(+), 19 deletions(-)
 delete mode 120000 srcpkgs/python-zipp
 rename srcpkgs/{python3-zipp => python-zipp}/template (62%)

diff --git a/srcpkgs/python-zipp b/srcpkgs/python-zipp
deleted file mode 120000
index 98b04d0e844..00000000000
--- a/srcpkgs/python-zipp
+++ /dev/null
@@ -1 +0,0 @@
-python3-zipp
\ No newline at end of file
diff --git a/srcpkgs/python3-zipp/template b/srcpkgs/python-zipp/template
similarity index 62%
rename from srcpkgs/python3-zipp/template
rename to srcpkgs/python-zipp/template
index c1eecbb47e3..410e7a49076 100644
--- a/srcpkgs/python3-zipp/template
+++ b/srcpkgs/python-zipp/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-zipp'
-pkgname=python3-zipp
+# Template file for 'python-zipp'
+pkgname=python-zipp
 version=0.6.0
 revision=2
 archs=noarch
 wrksrc="zipp-${version}"
-build_style=python-module
+build_style=python2-module
 pycompile_module="zipp.py"
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3"
+hostmakedepends="python-setuptools"
+depends="python"
 short_desc="Pathlib-compatible Zipfile object wrapper"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="MIT"
@@ -19,12 +19,3 @@ checksum=3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e
 post_install() {
 	vlicense LICENSE
 }
-
-python-zipp_package() {
-	depends=python
-	short_desc+=" - Python 2"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-		vlicense LICENSE
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 3abf82e0b6a..bb0c4690839 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -7,11 +7,9 @@ wrksrc="astroid-${version}"
 build_style=python3-module
 pycompile_module="astroid"
 hostmakedepends="python3-setuptools"
-depends="python3-six python3-lazy-object-proxy python3-wrapt
- python3-typed-ast"
+depends="python3-lazy-object-proxy python3-wrapt python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools
- python3-parsing python3-zipp"
+ python3-py python3-pluggy python3-more-itertools python3-parsing"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"

From ef92c2126057666c2da6f5e07af9cf24effa18d0 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 23:38:25 +0700
Subject: [PATCH 3/3] python3-mock: drop package

See: https://mock.readthedocs.io/en/latest/
---
 .../patches/remove-unecessary.patch            |  7 +++++++
 srcpkgs/backblaze-b2/template                  |  5 ++---
 srcpkgs/certbot/patches/remove-mock.patch      | 10 ++++++++++
 srcpkgs/certbot/template                       |  7 ++++---
 srcpkgs/python-b2sdk/template                  |  5 ++---
 srcpkgs/python3-mock/template                  | 18 ------------------
 srcpkgs/python3-pytest/template                |  2 +-
 7 files changed, 26 insertions(+), 28 deletions(-)
 create mode 100644 srcpkgs/backblaze-b2/patches/remove-unecessary.patch
 create mode 100644 srcpkgs/certbot/patches/remove-mock.patch
 delete mode 100644 srcpkgs/python3-mock/template

diff --git a/srcpkgs/backblaze-b2/patches/remove-unecessary.patch b/srcpkgs/backblaze-b2/patches/remove-unecessary.patch
new file mode 100644
index 00000000000..8b8322953f7
--- /dev/null
+++ b/srcpkgs/backblaze-b2/patches/remove-unecessary.patch
@@ -0,0 +1,7 @@
+--- requirements-test.txt.orig	2019-12-24 22:38:37.224988498 +0700
++++ requirements-test.txt	2019-12-24 22:38:42.742010931 +0700
+@@ -1,4 +1,3 @@
+-mock
+ pyflakes; python_version >= '2.7'
+ importlib; python_version == '2.6'
+ yapf
diff --git a/srcpkgs/backblaze-b2/template b/srcpkgs/backblaze-b2/template
index ef7fbca68b6..16e520836c3 100644
--- a/srcpkgs/backblaze-b2/template
+++ b/srcpkgs/backblaze-b2/template
@@ -1,7 +1,7 @@
 # Template file for 'backblaze-b2'
 pkgname=backblaze-b2
 version=1.4.2
-revision=3
+revision=4
 archs=noarch
 wrksrc="b2-${version}"
 build_style=python3-module
@@ -9,8 +9,7 @@ pycompile_module="b2"
 hostmakedepends="python3-setuptools"
 depends="python3-logfury python3-Arrow python3-requests python3-six
  python3-tqdm python-b2sdk"
-checkdepends="python3-pytest $depends python3-pyflakes python3-mock
- python3-dateutil python3-nose"
+checkdepends="$depends python3-pyflakes python3-dateutil python3-nose"
 short_desc="Command Line Interface for Backblaze's B2 storage service"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="MIT"
diff --git a/srcpkgs/certbot/patches/remove-mock.patch b/srcpkgs/certbot/patches/remove-mock.patch
new file mode 100644
index 00000000000..d693cf9e1c3
--- /dev/null
+++ b/srcpkgs/certbot/patches/remove-mock.patch
@@ -0,0 +1,10 @@
+--- setup.py.orig	2019-12-24 23:33:49.732657030 +0700
++++ setup.py	2019-12-24 23:33:56.257683943 +0700
+@@ -45,7 +45,6 @@
+     # 1.1.0+ is required to avoid the warnings described at
+     # https://github.com/certbot/josepy/issues/13.
+     'josepy>=1.1.0',
+-    'mock',
+     'parsedatetime>=1.3',  # Calendar.parseDT
+     'pyrfc3339',
+     'pytz',
diff --git a/srcpkgs/certbot/template b/srcpkgs/certbot/template
index 008d7610767..4ec2f4f7c90 100644
--- a/srcpkgs/certbot/template
+++ b/srcpkgs/certbot/template
@@ -1,15 +1,16 @@
 # Template file for 'certbot'
 pkgname=certbot
 version=1.0.0
-revision=2
+revision=3
 archs=noarch
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 depends="python3 python3-acme python3-ConfigArgParse python3-configobj
  python3-cryptography python3-josepy python3-pyrfc3339 python3-pytz
  python3-zope.component python3-zope.interface python3-parsedatetime
- python3-zope.hookable python3-mock python3-zope.deferredimport
- python3-zope.deprecation"
+ python3-zope.hookable python3-zope.deferredimport python3-zope.deprecation"
+checkdepends="$depends python3-py python3-pluggy python3-wcwidth
+ python3-more-itertools python3-pytest python3-distro"
 short_desc="Let's Encrypt certificate renewal automation utility"
 maintainer="Alex Childs <misuchiru03+void@gmail.com>"
 license="Apache-2.0"
diff --git a/srcpkgs/python-b2sdk/template b/srcpkgs/python-b2sdk/template
index 06cbde21a69..0e7d3764a83 100644
--- a/srcpkgs/python-b2sdk/template
+++ b/srcpkgs/python-b2sdk/template
@@ -3,15 +3,14 @@
 pkgname=python-b2sdk
 reverts="1.0.0_1 1.0.2_1"
 version=0.1.8
-revision=3
+revision=4
 archs=noarch
 wrksrc="b2sdk-${version}"
 build_style=python3-module
 pycompile_module="b2sdk"
 hostmakedepends="python3-setuptools"
 depends="python3-logfury python3-Arrow python3-requests python3-six"
-checkdepends="python3-pytest $depends python3-dateutil python3-nose
- python3-mock python3-tqdm python3-pyflakes"
+checkdepends="$depends python3-dateutil python3-nose python3-tqdm python3-pyflakes"
 short_desc="Backblaze's B2 Python SDK"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="MIT"
diff --git a/srcpkgs/python3-mock/template b/srcpkgs/python3-mock/template
deleted file mode 100644
index ca698f51980..00000000000
--- a/srcpkgs/python3-mock/template
+++ /dev/null
@@ -1,18 +0,0 @@
-# Template file for 'python3-mock'
-pkgname=python3-mock
-version=3.0.5
-revision=2
-archs=noarch
-wrksrc="mock-${version}"
-build_style=python3-module
-hostmakedepends="python3-setuptools"
-short_desc="Python3 mock library"
-maintainer="Alex Childs <misuchiru03+void@gmail.com>"
-license="BSD-2-Clause"
-homepage="http://mock.readthedocs.org/en/latest/"
-distfiles="${PYPI_SITE}/m/mock/mock-${version}.tar.gz"
-checksum=83657d894c90d5681d62155c82bda9c1187827525880eda8ff5df4ec813437c3
-
-post_install() {
-	vlicense LICENSE.txt
-}
diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 1e6d57abd24..f7317ef7fd1 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -9,7 +9,7 @@ pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
  python3-atomicwrites python3-pluggy python3-wcwidth"
-checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
+checkdepends="$depends python3-argcomplete python3-hypothesis
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
 maintainer="Orphaned <orphan@voidlinux.org>"

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

* Re: [PR PATCH] [Updated] Drop python3.8 backported package
  2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
@ 2019-12-24 16:51 ` voidlinux-github
  2019-12-26 13:30 ` voidlinux-github
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-12-24 16:51 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages drop-python3.8-backport
https://github.com/void-linux/void-packages/pull/17755

Drop python3.8 backported package
- zipp, importlib_metadata, mock are back-ported package.

- Drop them since we're in Python 3.8 now.

- ./xbps-src check passed

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

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

From 61ca7ac6ec4c93480c978b79954f10a075beca48 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:37:56 +0700
Subject: [PATCH 1/3] python3-importlib_metadata: drop package

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python-importlib_metadata              |  1 -
 .../template                                   | 18 +++++-------------
 srcpkgs/python3-astroid/template               |  4 ++--
 srcpkgs/python3-pluggy/template                |  4 ++--
 srcpkgs/python3-pytest/template                |  6 +++---
 srcpkgs/tox/template                           |  4 ++--
 6 files changed, 14 insertions(+), 23 deletions(-)
 delete mode 120000 srcpkgs/python-importlib_metadata
 rename srcpkgs/{python3-importlib_metadata => python-importlib_metadata}/template (62%)

diff --git a/srcpkgs/python-importlib_metadata b/srcpkgs/python-importlib_metadata
deleted file mode 120000
index 211acaa67bf..00000000000
--- a/srcpkgs/python-importlib_metadata
+++ /dev/null
@@ -1 +0,0 @@
-python3-importlib_metadata
\ No newline at end of file
diff --git a/srcpkgs/python3-importlib_metadata/template b/srcpkgs/python-importlib_metadata/template
similarity index 62%
rename from srcpkgs/python3-importlib_metadata/template
rename to srcpkgs/python-importlib_metadata/template
index fa80b295033..2724967c6bd 100644
--- a/srcpkgs/python3-importlib_metadata/template
+++ b/srcpkgs/python-importlib_metadata/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-importlib_metadata'
-pkgname=python3-importlib_metadata
+# Template file for 'python-importlib_metadata'
+pkgname=python-importlib_metadata
 version=1.2.0
 revision=2
 archs=noarch
 wrksrc="importlib_metadata-${version}"
-build_style=python-module
+build_style=python2-module
 pycompile_module=importlib_metadata
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3-zipp"
+hostmakedepends="python-setuptools"
+depends="python-zipp"
 checkdepends="${depends}"
 short_desc="Read metadata from Python packages"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
@@ -16,11 +16,3 @@ homepage="https://importlib-metadata.readthedocs.io/en/latest/"
 changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(links).html"
 distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz"
 checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278
-
-python-importlib_metadata_package() {
-	depends=python-zipp
-	short_desc="${short_desc/Python/Python 2/}"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 7e85b0d4949..3abf82e0b6a 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-astroid'
 pkgname=python3-astroid
 version=2.3.3
-revision=2
+revision=3
 archs=noarch
 wrksrc="astroid-${version}"
 build_style=python3-module
@@ -10,7 +10,7 @@ hostmakedepends="python3-setuptools"
 depends="python3-six python3-lazy-object-proxy python3-wrapt
  python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools python3-importlib_metadata
+ python3-py python3-pluggy python3-more-itertools
  python3-parsing python3-zipp"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
diff --git a/srcpkgs/python3-pluggy/template b/srcpkgs/python3-pluggy/template
index b0dadf4585f..2e53ee5317c 100644
--- a/srcpkgs/python3-pluggy/template
+++ b/srcpkgs/python3-pluggy/template
@@ -1,13 +1,13 @@
 # Template file for 'python3-pluggy'
 pkgname=python3-pluggy
 version=0.13.1
-revision=2
+revision=3
 archs=noarch
 wrksrc="pluggy-${version}"
 build_style=python3-module
 pycompile_module="pluggy"
 hostmakedepends="python3-setuptools"
-depends="python3-importlib_metadata"
+depends="python3"
 checkdepends="python3-pytest ${depends}"
 short_desc="Minimalist production ready plugin system (Python3)"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 5c6ebe98970..1e6d57abd24 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,14 +1,14 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
 version=5.3.2
-revision=2
+revision=3
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
 pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
- python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth"
+ python3-atomicwrites python3-pluggy python3-wcwidth"
 checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
@@ -29,7 +29,7 @@ post_patch() {
 }
 
 do_check() {
-	tox -e py36
+	tox -e py38
 }
 
 post_install() {
diff --git a/srcpkgs/tox/template b/srcpkgs/tox/template
index 1dbab31033c..bc4a80de76d 100644
--- a/srcpkgs/tox/template
+++ b/srcpkgs/tox/template
@@ -1,10 +1,10 @@
 # Template file for 'tox'
 pkgname=tox
 version=3.14.2
-revision=2
+revision=3
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-filelock python3-importlib_metadata python3-packaging
+depends="python3-filelock python3-packaging
  python3-pluggy python3-pytest python3-toml python3-virtualenv"
 checkdepends="${depends} python3-flaky python3-pathlib2"
 short_desc="Generic virtualenv management and test command line tool"

From 3acd8400e8184bb393cd4e32a0cd3a133ef66af3 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:48:44 +0700
Subject: [PATCH 2/3] python3-zipp: drop package

zipp is a backport of Path object.
See: https://pypi.org/project/zipp/
---
 srcpkgs/python-zipp                           |  1 -
 .../{python3-zipp => python-zipp}/template    | 19 +++++--------------
 srcpkgs/python3-astroid/template              |  6 ++----
 3 files changed, 7 insertions(+), 19 deletions(-)
 delete mode 120000 srcpkgs/python-zipp
 rename srcpkgs/{python3-zipp => python-zipp}/template (62%)

diff --git a/srcpkgs/python-zipp b/srcpkgs/python-zipp
deleted file mode 120000
index 98b04d0e844..00000000000
--- a/srcpkgs/python-zipp
+++ /dev/null
@@ -1 +0,0 @@
-python3-zipp
\ No newline at end of file
diff --git a/srcpkgs/python3-zipp/template b/srcpkgs/python-zipp/template
similarity index 62%
rename from srcpkgs/python3-zipp/template
rename to srcpkgs/python-zipp/template
index c1eecbb47e3..410e7a49076 100644
--- a/srcpkgs/python3-zipp/template
+++ b/srcpkgs/python-zipp/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-zipp'
-pkgname=python3-zipp
+# Template file for 'python-zipp'
+pkgname=python-zipp
 version=0.6.0
 revision=2
 archs=noarch
 wrksrc="zipp-${version}"
-build_style=python-module
+build_style=python2-module
 pycompile_module="zipp.py"
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3"
+hostmakedepends="python-setuptools"
+depends="python"
 short_desc="Pathlib-compatible Zipfile object wrapper"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="MIT"
@@ -19,12 +19,3 @@ checksum=3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e
 post_install() {
 	vlicense LICENSE
 }
-
-python-zipp_package() {
-	depends=python
-	short_desc+=" - Python 2"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-		vlicense LICENSE
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 3abf82e0b6a..bb0c4690839 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -7,11 +7,9 @@ wrksrc="astroid-${version}"
 build_style=python3-module
 pycompile_module="astroid"
 hostmakedepends="python3-setuptools"
-depends="python3-six python3-lazy-object-proxy python3-wrapt
- python3-typed-ast"
+depends="python3-lazy-object-proxy python3-wrapt python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools
- python3-parsing python3-zipp"
+ python3-py python3-pluggy python3-more-itertools python3-parsing"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"

From bcbd1183fd442419589d10adc5bb21f5b22e85bb Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 23:38:25 +0700
Subject: [PATCH 3/3] python3-mock: drop package

[skip ci]
See: https://mock.readthedocs.io/en/latest/
---
 .../patches/remove-unecessary.patch            |  7 +++++++
 srcpkgs/backblaze-b2/template                  |  5 ++---
 srcpkgs/certbot/patches/remove-mock.patch      | 10 ++++++++++
 srcpkgs/certbot/template                       |  7 ++++---
 srcpkgs/python-b2sdk/template                  |  5 ++---
 srcpkgs/python3-mock/template                  | 18 ------------------
 srcpkgs/python3-pytest/template                |  2 +-
 7 files changed, 26 insertions(+), 28 deletions(-)
 create mode 100644 srcpkgs/backblaze-b2/patches/remove-unecessary.patch
 create mode 100644 srcpkgs/certbot/patches/remove-mock.patch
 delete mode 100644 srcpkgs/python3-mock/template

diff --git a/srcpkgs/backblaze-b2/patches/remove-unecessary.patch b/srcpkgs/backblaze-b2/patches/remove-unecessary.patch
new file mode 100644
index 00000000000..8b8322953f7
--- /dev/null
+++ b/srcpkgs/backblaze-b2/patches/remove-unecessary.patch
@@ -0,0 +1,7 @@
+--- requirements-test.txt.orig	2019-12-24 22:38:37.224988498 +0700
++++ requirements-test.txt	2019-12-24 22:38:42.742010931 +0700
+@@ -1,4 +1,3 @@
+-mock
+ pyflakes; python_version >= '2.7'
+ importlib; python_version == '2.6'
+ yapf
diff --git a/srcpkgs/backblaze-b2/template b/srcpkgs/backblaze-b2/template
index ef7fbca68b6..16e520836c3 100644
--- a/srcpkgs/backblaze-b2/template
+++ b/srcpkgs/backblaze-b2/template
@@ -1,7 +1,7 @@
 # Template file for 'backblaze-b2'
 pkgname=backblaze-b2
 version=1.4.2
-revision=3
+revision=4
 archs=noarch
 wrksrc="b2-${version}"
 build_style=python3-module
@@ -9,8 +9,7 @@ pycompile_module="b2"
 hostmakedepends="python3-setuptools"
 depends="python3-logfury python3-Arrow python3-requests python3-six
  python3-tqdm python-b2sdk"
-checkdepends="python3-pytest $depends python3-pyflakes python3-mock
- python3-dateutil python3-nose"
+checkdepends="$depends python3-pyflakes python3-dateutil python3-nose"
 short_desc="Command Line Interface for Backblaze's B2 storage service"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="MIT"
diff --git a/srcpkgs/certbot/patches/remove-mock.patch b/srcpkgs/certbot/patches/remove-mock.patch
new file mode 100644
index 00000000000..d693cf9e1c3
--- /dev/null
+++ b/srcpkgs/certbot/patches/remove-mock.patch
@@ -0,0 +1,10 @@
+--- setup.py.orig	2019-12-24 23:33:49.732657030 +0700
++++ setup.py	2019-12-24 23:33:56.257683943 +0700
+@@ -45,7 +45,6 @@
+     # 1.1.0+ is required to avoid the warnings described at
+     # https://github.com/certbot/josepy/issues/13.
+     'josepy>=1.1.0',
+-    'mock',
+     'parsedatetime>=1.3',  # Calendar.parseDT
+     'pyrfc3339',
+     'pytz',
diff --git a/srcpkgs/certbot/template b/srcpkgs/certbot/template
index 008d7610767..4ec2f4f7c90 100644
--- a/srcpkgs/certbot/template
+++ b/srcpkgs/certbot/template
@@ -1,15 +1,16 @@
 # Template file for 'certbot'
 pkgname=certbot
 version=1.0.0
-revision=2
+revision=3
 archs=noarch
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 depends="python3 python3-acme python3-ConfigArgParse python3-configobj
  python3-cryptography python3-josepy python3-pyrfc3339 python3-pytz
  python3-zope.component python3-zope.interface python3-parsedatetime
- python3-zope.hookable python3-mock python3-zope.deferredimport
- python3-zope.deprecation"
+ python3-zope.hookable python3-zope.deferredimport python3-zope.deprecation"
+checkdepends="$depends python3-py python3-pluggy python3-wcwidth
+ python3-more-itertools python3-pytest python3-distro"
 short_desc="Let's Encrypt certificate renewal automation utility"
 maintainer="Alex Childs <misuchiru03+void@gmail.com>"
 license="Apache-2.0"
diff --git a/srcpkgs/python-b2sdk/template b/srcpkgs/python-b2sdk/template
index 06cbde21a69..0e7d3764a83 100644
--- a/srcpkgs/python-b2sdk/template
+++ b/srcpkgs/python-b2sdk/template
@@ -3,15 +3,14 @@
 pkgname=python-b2sdk
 reverts="1.0.0_1 1.0.2_1"
 version=0.1.8
-revision=3
+revision=4
 archs=noarch
 wrksrc="b2sdk-${version}"
 build_style=python3-module
 pycompile_module="b2sdk"
 hostmakedepends="python3-setuptools"
 depends="python3-logfury python3-Arrow python3-requests python3-six"
-checkdepends="python3-pytest $depends python3-dateutil python3-nose
- python3-mock python3-tqdm python3-pyflakes"
+checkdepends="$depends python3-dateutil python3-nose python3-tqdm python3-pyflakes"
 short_desc="Backblaze's B2 Python SDK"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="MIT"
diff --git a/srcpkgs/python3-mock/template b/srcpkgs/python3-mock/template
deleted file mode 100644
index ca698f51980..00000000000
--- a/srcpkgs/python3-mock/template
+++ /dev/null
@@ -1,18 +0,0 @@
-# Template file for 'python3-mock'
-pkgname=python3-mock
-version=3.0.5
-revision=2
-archs=noarch
-wrksrc="mock-${version}"
-build_style=python3-module
-hostmakedepends="python3-setuptools"
-short_desc="Python3 mock library"
-maintainer="Alex Childs <misuchiru03+void@gmail.com>"
-license="BSD-2-Clause"
-homepage="http://mock.readthedocs.org/en/latest/"
-distfiles="${PYPI_SITE}/m/mock/mock-${version}.tar.gz"
-checksum=83657d894c90d5681d62155c82bda9c1187827525880eda8ff5df4ec813437c3
-
-post_install() {
-	vlicense LICENSE.txt
-}
diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 1e6d57abd24..f7317ef7fd1 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -9,7 +9,7 @@ pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
  python3-atomicwrites python3-pluggy python3-wcwidth"
-checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
+checkdepends="$depends python3-argcomplete python3-hypothesis
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
 maintainer="Orphaned <orphan@voidlinux.org>"

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

* Re: [PR PATCH] [Updated] Drop python3.8 backported package
  2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
  2019-12-24 16:51 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-12-26 13:30 ` voidlinux-github
  2020-01-11  2:27 ` [PR PATCH] [Updated] [wip] " voidlinux-github
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-12-26 13:30 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages drop-python3.8-backport
https://github.com/void-linux/void-packages/pull/17755

Drop python3.8 backported package
- zipp, importlib_metadata, mock are back-ported package.

- Drop them since we're in Python 3.8 now.

- ./xbps-src check passed

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

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

From 981ab841adbda83e7bd7fc1ab75a8db7ac5b914b Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:37:56 +0700
Subject: [PATCH 1/2] python3-importlib_metadata: drop package

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python-importlib_metadata              |  1 -
 .../template                                   | 18 +++++-------------
 srcpkgs/python3-astroid/template               |  4 ++--
 srcpkgs/python3-pluggy/template                |  4 ++--
 srcpkgs/python3-pytest/template                |  6 +++---
 srcpkgs/tox/template                           |  4 ++--
 6 files changed, 14 insertions(+), 23 deletions(-)
 delete mode 120000 srcpkgs/python-importlib_metadata
 rename srcpkgs/{python3-importlib_metadata => python-importlib_metadata}/template (62%)

diff --git a/srcpkgs/python-importlib_metadata b/srcpkgs/python-importlib_metadata
deleted file mode 120000
index 211acaa67bf..00000000000
--- a/srcpkgs/python-importlib_metadata
+++ /dev/null
@@ -1 +0,0 @@
-python3-importlib_metadata
\ No newline at end of file
diff --git a/srcpkgs/python3-importlib_metadata/template b/srcpkgs/python-importlib_metadata/template
similarity index 62%
rename from srcpkgs/python3-importlib_metadata/template
rename to srcpkgs/python-importlib_metadata/template
index fa80b295033..2724967c6bd 100644
--- a/srcpkgs/python3-importlib_metadata/template
+++ b/srcpkgs/python-importlib_metadata/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-importlib_metadata'
-pkgname=python3-importlib_metadata
+# Template file for 'python-importlib_metadata'
+pkgname=python-importlib_metadata
 version=1.2.0
 revision=2
 archs=noarch
 wrksrc="importlib_metadata-${version}"
-build_style=python-module
+build_style=python2-module
 pycompile_module=importlib_metadata
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3-zipp"
+hostmakedepends="python-setuptools"
+depends="python-zipp"
 checkdepends="${depends}"
 short_desc="Read metadata from Python packages"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
@@ -16,11 +16,3 @@ homepage="https://importlib-metadata.readthedocs.io/en/latest/"
 changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(links).html"
 distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz"
 checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278
-
-python-importlib_metadata_package() {
-	depends=python-zipp
-	short_desc="${short_desc/Python/Python 2/}"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 7e85b0d4949..3abf82e0b6a 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-astroid'
 pkgname=python3-astroid
 version=2.3.3
-revision=2
+revision=3
 archs=noarch
 wrksrc="astroid-${version}"
 build_style=python3-module
@@ -10,7 +10,7 @@ hostmakedepends="python3-setuptools"
 depends="python3-six python3-lazy-object-proxy python3-wrapt
  python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools python3-importlib_metadata
+ python3-py python3-pluggy python3-more-itertools
  python3-parsing python3-zipp"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
diff --git a/srcpkgs/python3-pluggy/template b/srcpkgs/python3-pluggy/template
index b0dadf4585f..2e53ee5317c 100644
--- a/srcpkgs/python3-pluggy/template
+++ b/srcpkgs/python3-pluggy/template
@@ -1,13 +1,13 @@
 # Template file for 'python3-pluggy'
 pkgname=python3-pluggy
 version=0.13.1
-revision=2
+revision=3
 archs=noarch
 wrksrc="pluggy-${version}"
 build_style=python3-module
 pycompile_module="pluggy"
 hostmakedepends="python3-setuptools"
-depends="python3-importlib_metadata"
+depends="python3"
 checkdepends="python3-pytest ${depends}"
 short_desc="Minimalist production ready plugin system (Python3)"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 5c6ebe98970..1e6d57abd24 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,14 +1,14 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
 version=5.3.2
-revision=2
+revision=3
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
 pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
- python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth"
+ python3-atomicwrites python3-pluggy python3-wcwidth"
 checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
@@ -29,7 +29,7 @@ post_patch() {
 }
 
 do_check() {
-	tox -e py36
+	tox -e py38
 }
 
 post_install() {
diff --git a/srcpkgs/tox/template b/srcpkgs/tox/template
index 1dbab31033c..bc4a80de76d 100644
--- a/srcpkgs/tox/template
+++ b/srcpkgs/tox/template
@@ -1,10 +1,10 @@
 # Template file for 'tox'
 pkgname=tox
 version=3.14.2
-revision=2
+revision=3
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-filelock python3-importlib_metadata python3-packaging
+depends="python3-filelock python3-packaging
  python3-pluggy python3-pytest python3-toml python3-virtualenv"
 checkdepends="${depends} python3-flaky python3-pathlib2"
 short_desc="Generic virtualenv management and test command line tool"

From 0d0980f00d2e3eeccf31087409ab4247d31d5023 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:48:44 +0700
Subject: [PATCH 2/2] python3-zipp: drop package

zipp is a backport of Path object.
See: https://pypi.org/project/zipp/
---
 srcpkgs/python-zipp                           |  1 -
 .../{python3-zipp => python-zipp}/template    | 19 +++++--------------
 srcpkgs/python3-astroid/template              |  6 ++----
 3 files changed, 7 insertions(+), 19 deletions(-)
 delete mode 120000 srcpkgs/python-zipp
 rename srcpkgs/{python3-zipp => python-zipp}/template (62%)

diff --git a/srcpkgs/python-zipp b/srcpkgs/python-zipp
deleted file mode 120000
index 98b04d0e844..00000000000
--- a/srcpkgs/python-zipp
+++ /dev/null
@@ -1 +0,0 @@
-python3-zipp
\ No newline at end of file
diff --git a/srcpkgs/python3-zipp/template b/srcpkgs/python-zipp/template
similarity index 62%
rename from srcpkgs/python3-zipp/template
rename to srcpkgs/python-zipp/template
index c1eecbb47e3..410e7a49076 100644
--- a/srcpkgs/python3-zipp/template
+++ b/srcpkgs/python-zipp/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-zipp'
-pkgname=python3-zipp
+# Template file for 'python-zipp'
+pkgname=python-zipp
 version=0.6.0
 revision=2
 archs=noarch
 wrksrc="zipp-${version}"
-build_style=python-module
+build_style=python2-module
 pycompile_module="zipp.py"
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3"
+hostmakedepends="python-setuptools"
+depends="python"
 short_desc="Pathlib-compatible Zipfile object wrapper"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="MIT"
@@ -19,12 +19,3 @@ checksum=3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e
 post_install() {
 	vlicense LICENSE
 }
-
-python-zipp_package() {
-	depends=python
-	short_desc+=" - Python 2"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-		vlicense LICENSE
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 3abf82e0b6a..bb0c4690839 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -7,11 +7,9 @@ wrksrc="astroid-${version}"
 build_style=python3-module
 pycompile_module="astroid"
 hostmakedepends="python3-setuptools"
-depends="python3-six python3-lazy-object-proxy python3-wrapt
- python3-typed-ast"
+depends="python3-lazy-object-proxy python3-wrapt python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools
- python3-parsing python3-zipp"
+ python3-py python3-pluggy python3-more-itertools python3-parsing"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"

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

* Re: [PR PATCH] [Updated] [wip] Drop python3.8 backported package
  2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
  2019-12-24 16:51 ` [PR PATCH] [Updated] " voidlinux-github
  2019-12-26 13:30 ` voidlinux-github
@ 2020-01-11  2:27 ` voidlinux-github
  2020-01-11  2:38 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-11  2:27 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages drop-python3.8-backport
https://github.com/void-linux/void-packages/pull/17755

[wip] Drop python3.8 backported package
- zipp, importlib_metadata, mock are back-ported package.

- Drop them since we're in Python 3.8 now.

- ./xbps-src check passed

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

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

From a1c5607766ea9fa149f6df31e214d720153008fd Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:37:56 +0700
Subject: [PATCH 1/2] python3-importlib_metadata: drop package

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python-importlib_metadata             |  1 -
 .../template                                  | 25 ++++++-------------
 srcpkgs/python3-astroid/template              |  4 +--
 srcpkgs/python3-pluggy/template               |  4 +--
 srcpkgs/python3-pytest/template               |  6 ++---
 srcpkgs/tox/template                          |  4 +--
 6 files changed, 16 insertions(+), 28 deletions(-)
 delete mode 120000 srcpkgs/python-importlib_metadata
 rename srcpkgs/{python3-importlib_metadata => python-importlib_metadata}/template (51%)

diff --git a/srcpkgs/python-importlib_metadata b/srcpkgs/python-importlib_metadata
deleted file mode 120000
index 211acaa67bf..00000000000
--- a/srcpkgs/python-importlib_metadata
+++ /dev/null
@@ -1 +0,0 @@
-python3-importlib_metadata
\ No newline at end of file
diff --git a/srcpkgs/python3-importlib_metadata/template b/srcpkgs/python-importlib_metadata/template
similarity index 51%
rename from srcpkgs/python3-importlib_metadata/template
rename to srcpkgs/python-importlib_metadata/template
index bd1aa83266f..f0ef8e817ce 100644
--- a/srcpkgs/python3-importlib_metadata/template
+++ b/srcpkgs/python-importlib_metadata/template
@@ -1,13 +1,14 @@
-# Template file for 'python3-importlib_metadata'
-pkgname=python3-importlib_metadata
+# Template file for 'python-importlib_metadata'
+pkgname=python-importlib_metadata
 version=1.2.0
 revision=3
 archs=noarch
 wrksrc="importlib_metadata-${version}"
-build_style=python-module
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3-zipp"
-checkdepends="${depends} python3-packaging"
+build_style=python2-module
+pycompile_module=importlib_metadata
+hostmakedepends="python-setuptools"
+depends="python-zipp"
+checkdepends="${depends} python-packaging"
 short_desc="Read metadata from Python packages"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="Apache-2.0"
@@ -15,15 +16,3 @@ homepage="https://importlib-metadata.readthedocs.io/en/latest/"
 changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(links).html"
 distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz"
 checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278
-
-do_check() {
-	python3 setup.py test
-}
-
-python-importlib_metadata_package() {
-	depends="python-zipp python-backports.configparser python-contextlib2"
-	short_desc="${short_desc/Python/Python 2/}"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 7e85b0d4949..3abf82e0b6a 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-astroid'
 pkgname=python3-astroid
 version=2.3.3
-revision=2
+revision=3
 archs=noarch
 wrksrc="astroid-${version}"
 build_style=python3-module
@@ -10,7 +10,7 @@ hostmakedepends="python3-setuptools"
 depends="python3-six python3-lazy-object-proxy python3-wrapt
  python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools python3-importlib_metadata
+ python3-py python3-pluggy python3-more-itertools
  python3-parsing python3-zipp"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
diff --git a/srcpkgs/python3-pluggy/template b/srcpkgs/python3-pluggy/template
index b0dadf4585f..2e53ee5317c 100644
--- a/srcpkgs/python3-pluggy/template
+++ b/srcpkgs/python3-pluggy/template
@@ -1,13 +1,13 @@
 # Template file for 'python3-pluggy'
 pkgname=python3-pluggy
 version=0.13.1
-revision=2
+revision=3
 archs=noarch
 wrksrc="pluggy-${version}"
 build_style=python3-module
 pycompile_module="pluggy"
 hostmakedepends="python3-setuptools"
-depends="python3-importlib_metadata"
+depends="python3"
 checkdepends="python3-pytest ${depends}"
 short_desc="Minimalist production ready plugin system (Python3)"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 5c6ebe98970..1e6d57abd24 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,14 +1,14 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
 version=5.3.2
-revision=2
+revision=3
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
 pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
- python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth"
+ python3-atomicwrites python3-pluggy python3-wcwidth"
 checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
@@ -29,7 +29,7 @@ post_patch() {
 }
 
 do_check() {
-	tox -e py36
+	tox -e py38
 }
 
 post_install() {
diff --git a/srcpkgs/tox/template b/srcpkgs/tox/template
index d372885e460..2f413712328 100644
--- a/srcpkgs/tox/template
+++ b/srcpkgs/tox/template
@@ -1,10 +1,10 @@
 # Template file for 'tox'
 pkgname=tox
 version=3.14.3
-revision=1
+revision=2
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-filelock python3-importlib_metadata python3-packaging
+depends="python3-filelock python3-packaging
  python3-pluggy python3-pytest python3-toml python3-virtualenv"
 checkdepends="${depends} python3-flaky python3-pathlib2"
 short_desc="Generic virtualenv management and test command line tool"

From 383f1d5e6230e0d70f19771d2bbe458efbe47162 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:48:44 +0700
Subject: [PATCH 2/2] python3-zipp: drop package

zipp is a backport of Path object.
See: https://pypi.org/project/zipp/
---
 srcpkgs/python-zipp                           |  1 -
 .../{python3-zipp => python-zipp}/template    | 19 +++++--------------
 srcpkgs/python3-astroid/template              |  6 ++----
 3 files changed, 7 insertions(+), 19 deletions(-)
 delete mode 120000 srcpkgs/python-zipp
 rename srcpkgs/{python3-zipp => python-zipp}/template (62%)

diff --git a/srcpkgs/python-zipp b/srcpkgs/python-zipp
deleted file mode 120000
index 98b04d0e844..00000000000
--- a/srcpkgs/python-zipp
+++ /dev/null
@@ -1 +0,0 @@
-python3-zipp
\ No newline at end of file
diff --git a/srcpkgs/python3-zipp/template b/srcpkgs/python-zipp/template
similarity index 62%
rename from srcpkgs/python3-zipp/template
rename to srcpkgs/python-zipp/template
index c1eecbb47e3..410e7a49076 100644
--- a/srcpkgs/python3-zipp/template
+++ b/srcpkgs/python-zipp/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-zipp'
-pkgname=python3-zipp
+# Template file for 'python-zipp'
+pkgname=python-zipp
 version=0.6.0
 revision=2
 archs=noarch
 wrksrc="zipp-${version}"
-build_style=python-module
+build_style=python2-module
 pycompile_module="zipp.py"
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3"
+hostmakedepends="python-setuptools"
+depends="python"
 short_desc="Pathlib-compatible Zipfile object wrapper"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="MIT"
@@ -19,12 +19,3 @@ checksum=3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e
 post_install() {
 	vlicense LICENSE
 }
-
-python-zipp_package() {
-	depends=python
-	short_desc+=" - Python 2"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-		vlicense LICENSE
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 3abf82e0b6a..bb0c4690839 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -7,11 +7,9 @@ wrksrc="astroid-${version}"
 build_style=python3-module
 pycompile_module="astroid"
 hostmakedepends="python3-setuptools"
-depends="python3-six python3-lazy-object-proxy python3-wrapt
- python3-typed-ast"
+depends="python3-lazy-object-proxy python3-wrapt python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools
- python3-parsing python3-zipp"
+ python3-py python3-pluggy python3-more-itertools python3-parsing"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"

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

* Re: [PR PATCH] [Updated] Drop python3.8 backported package
  2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
                   ` (2 preceding siblings ...)
  2020-01-11  2:27 ` [PR PATCH] [Updated] [wip] " voidlinux-github
@ 2020-01-11  2:38 ` voidlinux-github
  2020-01-27 19:52 ` voidlinux-github
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-11  2:38 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages drop-python3.8-backport
https://github.com/void-linux/void-packages/pull/17755

Drop python3.8 backported package
- zipp, importlib_metadata, mock are back-ported package.

- Drop them since we're in Python 3.8 now.

- ./xbps-src check passed

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

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

From 14c187262d80b27eeac5edc92bd00e8db0303708 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:37:56 +0700
Subject: [PATCH 1/2] python3-importlib_metadata: drop package

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python-importlib_metadata             |  1 -
 .../template                                  | 24 +++++--------------
 srcpkgs/python3-astroid/template              |  5 ++--
 srcpkgs/python3-pluggy/template               |  5 ++--
 srcpkgs/python3-pytest/template               |  7 +++---
 srcpkgs/tox/template                          |  4 ++--
 6 files changed, 15 insertions(+), 31 deletions(-)
 delete mode 120000 srcpkgs/python-importlib_metadata
 rename srcpkgs/{python3-importlib_metadata => python-importlib_metadata}/template (51%)

diff --git a/srcpkgs/python-importlib_metadata b/srcpkgs/python-importlib_metadata
deleted file mode 120000
index 211acaa67bf..00000000000
--- a/srcpkgs/python-importlib_metadata
+++ /dev/null
@@ -1 +0,0 @@
-python3-importlib_metadata
\ No newline at end of file
diff --git a/srcpkgs/python3-importlib_metadata/template b/srcpkgs/python-importlib_metadata/template
similarity index 51%
rename from srcpkgs/python3-importlib_metadata/template
rename to srcpkgs/python-importlib_metadata/template
index bd1aa83266f..5f91f63c225 100644
--- a/srcpkgs/python3-importlib_metadata/template
+++ b/srcpkgs/python-importlib_metadata/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-importlib_metadata'
-pkgname=python3-importlib_metadata
+# Template file for 'python-importlib_metadata'
+pkgname=python-importlib_metadata
 version=1.2.0
 revision=3
 archs=noarch
 wrksrc="importlib_metadata-${version}"
-build_style=python-module
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3-zipp"
-checkdepends="${depends} python3-packaging"
+build_style=python2-module
+hostmakedepends="python-setuptools"
+depends="python-zipp"
+checkdepends="${depends} python-packaging"
 short_desc="Read metadata from Python packages"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="Apache-2.0"
@@ -15,15 +15,3 @@ homepage="https://importlib-metadata.readthedocs.io/en/latest/"
 changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(links).html"
 distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz"
 checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278
-
-do_check() {
-	python3 setup.py test
-}
-
-python-importlib_metadata_package() {
-	depends="python-zipp python-backports.configparser python-contextlib2"
-	short_desc="${short_desc/Python/Python 2/}"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 7e85b0d4949..03ba5ed2515 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -1,16 +1,15 @@
 # Template file for 'python3-astroid'
 pkgname=python3-astroid
 version=2.3.3
-revision=2
+revision=3
 archs=noarch
 wrksrc="astroid-${version}"
 build_style=python3-module
-pycompile_module="astroid"
 hostmakedepends="python3-setuptools"
 depends="python3-six python3-lazy-object-proxy python3-wrapt
  python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools python3-importlib_metadata
+ python3-py python3-pluggy python3-more-itertools
  python3-parsing python3-zipp"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
diff --git a/srcpkgs/python3-pluggy/template b/srcpkgs/python3-pluggy/template
index b0dadf4585f..d5baa4e7406 100644
--- a/srcpkgs/python3-pluggy/template
+++ b/srcpkgs/python3-pluggy/template
@@ -1,13 +1,12 @@
 # Template file for 'python3-pluggy'
 pkgname=python3-pluggy
 version=0.13.1
-revision=2
+revision=3
 archs=noarch
 wrksrc="pluggy-${version}"
 build_style=python3-module
-pycompile_module="pluggy"
 hostmakedepends="python3-setuptools"
-depends="python3-importlib_metadata"
+depends="python3"
 checkdepends="python3-pytest ${depends}"
 short_desc="Minimalist production ready plugin system (Python3)"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 5c6ebe98970..022914f5f1f 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,14 +1,13 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
 version=5.3.2
-revision=2
+revision=3
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
-pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
- python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth"
+ python3-atomicwrites python3-pluggy python3-wcwidth"
 checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
@@ -29,7 +28,7 @@ post_patch() {
 }
 
 do_check() {
-	tox -e py36
+	tox -e py38
 }
 
 post_install() {
diff --git a/srcpkgs/tox/template b/srcpkgs/tox/template
index d372885e460..2f413712328 100644
--- a/srcpkgs/tox/template
+++ b/srcpkgs/tox/template
@@ -1,10 +1,10 @@
 # Template file for 'tox'
 pkgname=tox
 version=3.14.3
-revision=1
+revision=2
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-filelock python3-importlib_metadata python3-packaging
+depends="python3-filelock python3-packaging
  python3-pluggy python3-pytest python3-toml python3-virtualenv"
 checkdepends="${depends} python3-flaky python3-pathlib2"
 short_desc="Generic virtualenv management and test command line tool"

From 686043d6656ed0ceeee6274601da9a37dae04f5f Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Tue, 24 Dec 2019 20:48:44 +0700
Subject: [PATCH 2/2] python3-zipp: drop package

zipp is a backport of Path object.
See: https://pypi.org/project/zipp/
---
 srcpkgs/python-zipp                           |  1 -
 .../{python3-zipp => python-zipp}/template    | 19 +++++--------------
 srcpkgs/python3-astroid/template              |  6 ++----
 3 files changed, 7 insertions(+), 19 deletions(-)
 delete mode 120000 srcpkgs/python-zipp
 rename srcpkgs/{python3-zipp => python-zipp}/template (62%)

diff --git a/srcpkgs/python-zipp b/srcpkgs/python-zipp
deleted file mode 120000
index 98b04d0e844..00000000000
--- a/srcpkgs/python-zipp
+++ /dev/null
@@ -1 +0,0 @@
-python3-zipp
\ No newline at end of file
diff --git a/srcpkgs/python3-zipp/template b/srcpkgs/python-zipp/template
similarity index 62%
rename from srcpkgs/python3-zipp/template
rename to srcpkgs/python-zipp/template
index c1eecbb47e3..410e7a49076 100644
--- a/srcpkgs/python3-zipp/template
+++ b/srcpkgs/python-zipp/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-zipp'
-pkgname=python3-zipp
+# Template file for 'python-zipp'
+pkgname=python-zipp
 version=0.6.0
 revision=2
 archs=noarch
 wrksrc="zipp-${version}"
-build_style=python-module
+build_style=python2-module
 pycompile_module="zipp.py"
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3"
+hostmakedepends="python-setuptools"
+depends="python"
 short_desc="Pathlib-compatible Zipfile object wrapper"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="MIT"
@@ -19,12 +19,3 @@ checksum=3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e
 post_install() {
 	vlicense LICENSE
 }
-
-python-zipp_package() {
-	depends=python
-	short_desc+=" - Python 2"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-		vlicense LICENSE
-	}
-}
diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 03ba5ed2515..e06d54f1d84 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -6,11 +6,9 @@ archs=noarch
 wrksrc="astroid-${version}"
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-six python3-lazy-object-proxy python3-wrapt
- python3-typed-ast"
+depends="python3-lazy-object-proxy python3-wrapt python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools
- python3-parsing python3-zipp"
+ python3-py python3-pluggy python3-more-itertools python3-parsing"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"

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

* Re: Drop python3.8 backported package
  2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
                   ` (3 preceding siblings ...)
  2020-01-11  2:38 ` [PR PATCH] [Updated] " voidlinux-github
@ 2020-01-27 19:52 ` voidlinux-github
  2020-01-28  3:47 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-27 19:52 UTC (permalink / raw)
  To: ml

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

New comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/17755#issuecomment-578921991

Comment:
Thanks for cleaning that. Could you make separate commit per every package that depended on backports - best if they go before removing commits, delete left pycompile_module and rebase?

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

* Re: [PR PATCH] [Updated] Drop python3.8 backported package
  2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
                   ` (4 preceding siblings ...)
  2020-01-27 19:52 ` voidlinux-github
@ 2020-01-28  3:47 ` voidlinux-github
  2020-01-28  4:00 ` voidlinux-github
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-28  3:47 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages drop-python3.8-backport
https://github.com/void-linux/void-packages/pull/17755

Drop python3.8 backported package
- zipp, importlib_metadata, mock are back-ported package.

- Drop them since we're in Python 3.8 now.

- ./xbps-src check passed

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

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

From fc18251ba0cf651f2a8ea2ba554c6b01ed8a99e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:22:14 +0700
Subject: [PATCH 1/6] tox: drop python3.8 backported deps

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/tox/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/tox/template b/srcpkgs/tox/template
index d372885e460..2f413712328 100644
--- a/srcpkgs/tox/template
+++ b/srcpkgs/tox/template
@@ -1,10 +1,10 @@
 # Template file for 'tox'
 pkgname=tox
 version=3.14.3
-revision=1
+revision=2
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-filelock python3-importlib_metadata python3-packaging
+depends="python3-filelock python3-packaging
  python3-pluggy python3-pytest python3-toml python3-virtualenv"
 checkdepends="${depends} python3-flaky python3-pathlib2"
 short_desc="Generic virtualenv management and test command line tool"

From 08fc71c58caf51117f7c8d4ec9df9fcc027b2c31 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:23:41 +0700
Subject: [PATCH 2/6] pytest3: drop python3.8 backported deps

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python3-pytest/template | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 5c6ebe98970..022914f5f1f 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,14 +1,13 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
 version=5.3.2
-revision=2
+revision=3
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
-pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
- python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth"
+ python3-atomicwrites python3-pluggy python3-wcwidth"
 checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
@@ -29,7 +28,7 @@ post_patch() {
 }
 
 do_check() {
-	tox -e py36
+	tox -e py38
 }
 
 post_install() {

From c07885865d3ce66b67cee059f599d2ac6be4758b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:26:36 +0700
Subject: [PATCH 3/6] python3-pluggy: drop python3.8 backported deps

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python3-pluggy/template | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/python3-pluggy/template b/srcpkgs/python3-pluggy/template
index b0dadf4585f..d5baa4e7406 100644
--- a/srcpkgs/python3-pluggy/template
+++ b/srcpkgs/python3-pluggy/template
@@ -1,13 +1,12 @@
 # Template file for 'python3-pluggy'
 pkgname=python3-pluggy
 version=0.13.1
-revision=2
+revision=3
 archs=noarch
 wrksrc="pluggy-${version}"
 build_style=python3-module
-pycompile_module="pluggy"
 hostmakedepends="python3-setuptools"
-depends="python3-importlib_metadata"
+depends="python3"
 checkdepends="python3-pytest ${depends}"
 short_desc="Minimalist production ready plugin system (Python3)"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"

From a1d2872f059f6bbd41eeaf9a6a83d2440924ac49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:37:40 +0700
Subject: [PATCH 4/6] python3-astroid: drop python3.8 backported checkdepends

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/

python3-astroid doesn't need zipp for testing, and zipp is a backported
package itself. Drop that check-deps, too.
---
 srcpkgs/python3-astroid/template | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 7e85b0d4949..261dfacd70c 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -1,17 +1,15 @@
 # Template file for 'python3-astroid'
 pkgname=python3-astroid
 version=2.3.3
-revision=2
+revision=3
 archs=noarch
 wrksrc="astroid-${version}"
 build_style=python3-module
-pycompile_module="astroid"
 hostmakedepends="python3-setuptools"
 depends="python3-six python3-lazy-object-proxy python3-wrapt
  python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools python3-importlib_metadata
- python3-parsing python3-zipp"
+ python3-py python3-pluggy python3-more-itertools python3-parsing"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"

From 8b59e48fdfe0e43c05955082144007d5a4a4a1b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:44:34 +0700
Subject: [PATCH 5/6] python-zipp: drop package

zipp is a backport of Path object.
See: https://pypi.org/project/zipp/

We don't need python3-zipp anymore, now.
And no-packages depends on python2 version, remove them all together.
---
 srcpkgs/python-zipp           |  1 -
 srcpkgs/python3-zipp/template | 30 ------------------------------
 2 files changed, 31 deletions(-)
 delete mode 120000 srcpkgs/python-zipp
 delete mode 100644 srcpkgs/python3-zipp/template

diff --git a/srcpkgs/python-zipp b/srcpkgs/python-zipp
deleted file mode 120000
index 98b04d0e844..00000000000
--- a/srcpkgs/python-zipp
+++ /dev/null
@@ -1 +0,0 @@
-python3-zipp
\ No newline at end of file
diff --git a/srcpkgs/python3-zipp/template b/srcpkgs/python3-zipp/template
deleted file mode 100644
index c1eecbb47e3..00000000000
--- a/srcpkgs/python3-zipp/template
+++ /dev/null
@@ -1,30 +0,0 @@
-# Template file for 'python3-zipp'
-pkgname=python3-zipp
-version=0.6.0
-revision=2
-archs=noarch
-wrksrc="zipp-${version}"
-build_style=python-module
-pycompile_module="zipp.py"
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3"
-short_desc="Pathlib-compatible Zipfile object wrapper"
-maintainer="Piotr Wójcik <chocimier@tlen.pl>"
-license="MIT"
-homepage="https://github.com/jaraco/zipp"
-changelog="https://raw.githubusercontent.com/jaraco/zipp/master/CHANGES.rst"
-distfiles="${PYPI_SITE}/z/zipp/zipp-${version}.tar.gz"
-checksum=3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e
-
-post_install() {
-	vlicense LICENSE
-}
-
-python-zipp_package() {
-	depends=python
-	short_desc+=" - Python 2"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-		vlicense LICENSE
-	}
-}

From f6ae9a273eab9a1f94bb4459bcf8d0ec5ca93399 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:47:31 +0700
Subject: [PATCH 6/6] python3-importlib_metadata: drop package

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python-importlib_metadata             |  1 -
 .../template                                  | 24 +++++--------------
 2 files changed, 6 insertions(+), 19 deletions(-)
 delete mode 120000 srcpkgs/python-importlib_metadata
 rename srcpkgs/{python3-importlib_metadata => python-importlib_metadata}/template (51%)

diff --git a/srcpkgs/python-importlib_metadata b/srcpkgs/python-importlib_metadata
deleted file mode 120000
index 211acaa67bf..00000000000
--- a/srcpkgs/python-importlib_metadata
+++ /dev/null
@@ -1 +0,0 @@
-python3-importlib_metadata
\ No newline at end of file
diff --git a/srcpkgs/python3-importlib_metadata/template b/srcpkgs/python-importlib_metadata/template
similarity index 51%
rename from srcpkgs/python3-importlib_metadata/template
rename to srcpkgs/python-importlib_metadata/template
index bd1aa83266f..ee0b9e949e0 100644
--- a/srcpkgs/python3-importlib_metadata/template
+++ b/srcpkgs/python-importlib_metadata/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-importlib_metadata'
-pkgname=python3-importlib_metadata
+# Template file for 'python-importlib_metadata'
+pkgname=python-importlib_metadata
 version=1.2.0
 revision=3
 archs=noarch
 wrksrc="importlib_metadata-${version}"
-build_style=python-module
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3-zipp"
-checkdepends="${depends} python3-packaging"
+build_style=python2-module
+hostmakedepends="python-setuptools"
+depends="python-zipp"
+checkdepends="${depends}"
 short_desc="Read metadata from Python packages"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="Apache-2.0"
@@ -15,15 +15,3 @@ homepage="https://importlib-metadata.readthedocs.io/en/latest/"
 changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(links).html"
 distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz"
 checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278
-
-do_check() {
-	python3 setup.py test
-}
-
-python-importlib_metadata_package() {
-	depends="python-zipp python-backports.configparser python-contextlib2"
-	short_desc="${short_desc/Python/Python 2/}"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-	}
-}

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

* Re: [PR PATCH] [Updated] Drop python3.8 backported package
  2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
                   ` (5 preceding siblings ...)
  2020-01-28  3:47 ` [PR PATCH] [Updated] " voidlinux-github
@ 2020-01-28  4:00 ` voidlinux-github
  2020-01-29  2:54 ` voidlinux-github
  2020-01-29 18:19 ` [PR PATCH] [Merged]: " voidlinux-github
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-28  4:00 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages drop-python3.8-backport
https://github.com/void-linux/void-packages/pull/17755

Drop python3.8 backported package
- zipp, importlib_metadata, mock are back-ported package.

- Drop them since we're in Python 3.8 now.

- ./xbps-src check passed

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

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

From fc18251ba0cf651f2a8ea2ba554c6b01ed8a99e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:22:14 +0700
Subject: [PATCH 1/7] tox: drop python3.8 backported deps

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/tox/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/tox/template b/srcpkgs/tox/template
index d372885e460..2f413712328 100644
--- a/srcpkgs/tox/template
+++ b/srcpkgs/tox/template
@@ -1,10 +1,10 @@
 # Template file for 'tox'
 pkgname=tox
 version=3.14.3
-revision=1
+revision=2
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-filelock python3-importlib_metadata python3-packaging
+depends="python3-filelock python3-packaging
  python3-pluggy python3-pytest python3-toml python3-virtualenv"
 checkdepends="${depends} python3-flaky python3-pathlib2"
 short_desc="Generic virtualenv management and test command line tool"

From 08fc71c58caf51117f7c8d4ec9df9fcc027b2c31 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:23:41 +0700
Subject: [PATCH 2/7] pytest3: drop python3.8 backported deps

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python3-pytest/template | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 5c6ebe98970..022914f5f1f 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,14 +1,13 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
 version=5.3.2
-revision=2
+revision=3
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
-pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
- python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth"
+ python3-atomicwrites python3-pluggy python3-wcwidth"
 checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
@@ -29,7 +28,7 @@ post_patch() {
 }
 
 do_check() {
-	tox -e py36
+	tox -e py38
 }
 
 post_install() {

From c07885865d3ce66b67cee059f599d2ac6be4758b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:26:36 +0700
Subject: [PATCH 3/7] python3-pluggy: drop python3.8 backported deps

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python3-pluggy/template | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/python3-pluggy/template b/srcpkgs/python3-pluggy/template
index b0dadf4585f..d5baa4e7406 100644
--- a/srcpkgs/python3-pluggy/template
+++ b/srcpkgs/python3-pluggy/template
@@ -1,13 +1,12 @@
 # Template file for 'python3-pluggy'
 pkgname=python3-pluggy
 version=0.13.1
-revision=2
+revision=3
 archs=noarch
 wrksrc="pluggy-${version}"
 build_style=python3-module
-pycompile_module="pluggy"
 hostmakedepends="python3-setuptools"
-depends="python3-importlib_metadata"
+depends="python3"
 checkdepends="python3-pytest ${depends}"
 short_desc="Minimalist production ready plugin system (Python3)"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"

From a1d2872f059f6bbd41eeaf9a6a83d2440924ac49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:37:40 +0700
Subject: [PATCH 4/7] python3-astroid: drop python3.8 backported checkdepends

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/

python3-astroid doesn't need zipp for testing, and zipp is a backported
package itself. Drop that check-deps, too.
---
 srcpkgs/python3-astroid/template | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 7e85b0d4949..261dfacd70c 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -1,17 +1,15 @@
 # Template file for 'python3-astroid'
 pkgname=python3-astroid
 version=2.3.3
-revision=2
+revision=3
 archs=noarch
 wrksrc="astroid-${version}"
 build_style=python3-module
-pycompile_module="astroid"
 hostmakedepends="python3-setuptools"
 depends="python3-six python3-lazy-object-proxy python3-wrapt
  python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools python3-importlib_metadata
- python3-parsing python3-zipp"
+ python3-py python3-pluggy python3-more-itertools python3-parsing"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"

From 8b59e48fdfe0e43c05955082144007d5a4a4a1b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:44:34 +0700
Subject: [PATCH 5/7] python-zipp: drop package

zipp is a backport of Path object.
See: https://pypi.org/project/zipp/

We don't need python3-zipp anymore, now.
And no-packages depends on python2 version, remove them all together.
---
 srcpkgs/python-zipp           |  1 -
 srcpkgs/python3-zipp/template | 30 ------------------------------
 2 files changed, 31 deletions(-)
 delete mode 120000 srcpkgs/python-zipp
 delete mode 100644 srcpkgs/python3-zipp/template

diff --git a/srcpkgs/python-zipp b/srcpkgs/python-zipp
deleted file mode 120000
index 98b04d0e844..00000000000
--- a/srcpkgs/python-zipp
+++ /dev/null
@@ -1 +0,0 @@
-python3-zipp
\ No newline at end of file
diff --git a/srcpkgs/python3-zipp/template b/srcpkgs/python3-zipp/template
deleted file mode 100644
index c1eecbb47e3..00000000000
--- a/srcpkgs/python3-zipp/template
+++ /dev/null
@@ -1,30 +0,0 @@
-# Template file for 'python3-zipp'
-pkgname=python3-zipp
-version=0.6.0
-revision=2
-archs=noarch
-wrksrc="zipp-${version}"
-build_style=python-module
-pycompile_module="zipp.py"
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3"
-short_desc="Pathlib-compatible Zipfile object wrapper"
-maintainer="Piotr Wójcik <chocimier@tlen.pl>"
-license="MIT"
-homepage="https://github.com/jaraco/zipp"
-changelog="https://raw.githubusercontent.com/jaraco/zipp/master/CHANGES.rst"
-distfiles="${PYPI_SITE}/z/zipp/zipp-${version}.tar.gz"
-checksum=3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e
-
-post_install() {
-	vlicense LICENSE
-}
-
-python-zipp_package() {
-	depends=python
-	short_desc+=" - Python 2"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-		vlicense LICENSE
-	}
-}

From f6ae9a273eab9a1f94bb4459bcf8d0ec5ca93399 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:47:31 +0700
Subject: [PATCH 6/7] python3-importlib_metadata: drop package

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python-importlib_metadata             |  1 -
 .../template                                  | 24 +++++--------------
 2 files changed, 6 insertions(+), 19 deletions(-)
 delete mode 120000 srcpkgs/python-importlib_metadata
 rename srcpkgs/{python3-importlib_metadata => python-importlib_metadata}/template (51%)

diff --git a/srcpkgs/python-importlib_metadata b/srcpkgs/python-importlib_metadata
deleted file mode 120000
index 211acaa67bf..00000000000
--- a/srcpkgs/python-importlib_metadata
+++ /dev/null
@@ -1 +0,0 @@
-python3-importlib_metadata
\ No newline at end of file
diff --git a/srcpkgs/python3-importlib_metadata/template b/srcpkgs/python-importlib_metadata/template
similarity index 51%
rename from srcpkgs/python3-importlib_metadata/template
rename to srcpkgs/python-importlib_metadata/template
index bd1aa83266f..ee0b9e949e0 100644
--- a/srcpkgs/python3-importlib_metadata/template
+++ b/srcpkgs/python-importlib_metadata/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-importlib_metadata'
-pkgname=python3-importlib_metadata
+# Template file for 'python-importlib_metadata'
+pkgname=python-importlib_metadata
 version=1.2.0
 revision=3
 archs=noarch
 wrksrc="importlib_metadata-${version}"
-build_style=python-module
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3-zipp"
-checkdepends="${depends} python3-packaging"
+build_style=python2-module
+hostmakedepends="python-setuptools"
+depends="python-zipp"
+checkdepends="${depends}"
 short_desc="Read metadata from Python packages"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="Apache-2.0"
@@ -15,15 +15,3 @@ homepage="https://importlib-metadata.readthedocs.io/en/latest/"
 changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(links).html"
 distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz"
 checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278
-
-do_check() {
-	python3 setup.py test
-}
-
-python-importlib_metadata_package() {
-	depends="python-zipp python-backports.configparser python-contextlib2"
-	short_desc="${short_desc/Python/Python 2/}"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-	}
-}

From da39f5155c523c25c3ae961765c643ffc58791e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:59:03 +0700
Subject: [PATCH 7/7] python3-pytest: update to 5.3.4.

---
 srcpkgs/python3-pytest/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 022914f5f1f..6cdd3ea0094 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
-version=5.3.2
-revision=3
+version=5.3.4
+revision=1
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
@@ -16,7 +16,7 @@ license="MIT"
 homepage="https://docs.pytest.org/en/latest/"
 changelog="https://docs.pytest.org/en/latest/changelog.html"
 distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz"
-checksum=6b571215b5a790f9b41f19f3531c53a45cf6bb8ef2988bc1ff9afb38270b25fa
+checksum=1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600
 alternatives="
  pytest:pytest:/usr/bin/pytest3
  pytest:py.test:/usr/bin/py.test3"

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

* Re: [PR PATCH] [Updated] Drop python3.8 backported package
  2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
                   ` (6 preceding siblings ...)
  2020-01-28  4:00 ` voidlinux-github
@ 2020-01-29  2:54 ` voidlinux-github
  2020-01-29 18:19 ` [PR PATCH] [Merged]: " voidlinux-github
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-29  2:54 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages drop-python3.8-backport
https://github.com/void-linux/void-packages/pull/17755

Drop python3.8 backported package
- zipp, importlib_metadata, mock are back-ported package.

- Drop them since we're in Python 3.8 now.

- ./xbps-src check passed

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

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

From 05b4a03d23fc0b7455be9444d2c6200a33b43bae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:22:14 +0700
Subject: [PATCH 1/7] tox: drop python3.8 backported deps

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/tox/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/tox/template b/srcpkgs/tox/template
index d372885e460..2f413712328 100644
--- a/srcpkgs/tox/template
+++ b/srcpkgs/tox/template
@@ -1,10 +1,10 @@
 # Template file for 'tox'
 pkgname=tox
 version=3.14.3
-revision=1
+revision=2
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3-filelock python3-importlib_metadata python3-packaging
+depends="python3-filelock python3-packaging
  python3-pluggy python3-pytest python3-toml python3-virtualenv"
 checkdepends="${depends} python3-flaky python3-pathlib2"
 short_desc="Generic virtualenv management and test command line tool"

From c1fecaf64125ff52663cb8e1e975644ea7e88707 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:23:41 +0700
Subject: [PATCH 2/7] pytest3: drop python3.8 backported deps

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python3-pytest/template | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 5c6ebe98970..71ccb76537f 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,14 +1,13 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
 version=5.3.2
-revision=2
+revision=3
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
-pycompile_module="_pytest pytest.py"
 hostmakedepends="python3-setuptools"
 depends="python3-py python3-packaging python3-attrs python3-more-itertools
- python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth"
+ python3-atomicwrites python3-pluggy python3-wcwidth"
 checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
  python3-nose python3-requests python3-parsing tox"
 short_desc="Simple powerful testing with Python 3"
@@ -29,7 +28,7 @@ post_patch() {
 }
 
 do_check() {
-	tox -e py36
+	tox -e "py${py3_ver/./}"
 }
 
 post_install() {

From cc618def183fceb3170e2c3a076e9a8853d42838 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:26:36 +0700
Subject: [PATCH 3/7] python3-pluggy: drop python3.8 backported deps

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python3-pluggy/template | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/python3-pluggy/template b/srcpkgs/python3-pluggy/template
index b0dadf4585f..d5baa4e7406 100644
--- a/srcpkgs/python3-pluggy/template
+++ b/srcpkgs/python3-pluggy/template
@@ -1,13 +1,12 @@
 # Template file for 'python3-pluggy'
 pkgname=python3-pluggy
 version=0.13.1
-revision=2
+revision=3
 archs=noarch
 wrksrc="pluggy-${version}"
 build_style=python3-module
-pycompile_module="pluggy"
 hostmakedepends="python3-setuptools"
-depends="python3-importlib_metadata"
+depends="python3"
 checkdepends="python3-pytest ${depends}"
 short_desc="Minimalist production ready plugin system (Python3)"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"

From b6f73e38d07b1e10605d44258445c1823d107b62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:37:40 +0700
Subject: [PATCH 4/7] python3-astroid: drop python3.8 backported checkdepends

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/

python3-astroid doesn't need zipp for testing, and zipp is a backported
package itself. Drop that check-deps, too.
---
 srcpkgs/python3-astroid/template | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template
index 7e85b0d4949..261dfacd70c 100644
--- a/srcpkgs/python3-astroid/template
+++ b/srcpkgs/python3-astroid/template
@@ -1,17 +1,15 @@
 # Template file for 'python3-astroid'
 pkgname=python3-astroid
 version=2.3.3
-revision=2
+revision=3
 archs=noarch
 wrksrc="astroid-${version}"
 build_style=python3-module
-pycompile_module="astroid"
 hostmakedepends="python3-setuptools"
 depends="python3-six python3-lazy-object-proxy python3-wrapt
  python3-typed-ast"
 checkdepends="$depends python3-attrs python3-pytest python3-wcwidth
- python3-py python3-pluggy python3-more-itertools python3-importlib_metadata
- python3-parsing python3-zipp"
+ python3-py python3-pluggy python3-more-itertools python3-parsing"
 short_desc="Abstract syntax tree for Python3"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"

From 9f09ab94b0a44d6fb31ceacc02aefd6b21aeca26 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:44:34 +0700
Subject: [PATCH 5/7] python3-zipp: drop package

zipp is a backport of Path object.
See: https://pypi.org/project/zipp/

We don't need python3-zipp anymore, now.
---
 srcpkgs/python-zipp                           |  1 -
 .../{python3-zipp => python-zipp}/template    | 20 +++++--------------
 2 files changed, 5 insertions(+), 16 deletions(-)
 delete mode 120000 srcpkgs/python-zipp
 rename srcpkgs/{python3-zipp => python-zipp}/template (59%)

diff --git a/srcpkgs/python-zipp b/srcpkgs/python-zipp
deleted file mode 120000
index 98b04d0e844..00000000000
--- a/srcpkgs/python-zipp
+++ /dev/null
@@ -1 +0,0 @@
-python3-zipp
\ No newline at end of file
diff --git a/srcpkgs/python3-zipp/template b/srcpkgs/python-zipp/template
similarity index 59%
rename from srcpkgs/python3-zipp/template
rename to srcpkgs/python-zipp/template
index c1eecbb47e3..600d9006609 100644
--- a/srcpkgs/python3-zipp/template
+++ b/srcpkgs/python-zipp/template
@@ -1,13 +1,12 @@
-# Template file for 'python3-zipp'
-pkgname=python3-zipp
+# Template file for 'python-zipp'
+pkgname=python-zipp
 version=0.6.0
 revision=2
 archs=noarch
 wrksrc="zipp-${version}"
-build_style=python-module
-pycompile_module="zipp.py"
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3"
+build_style=python2-module
+hostmakedepends="python-setuptools"
+depends="python"
 short_desc="Pathlib-compatible Zipfile object wrapper"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="MIT"
@@ -19,12 +18,3 @@ checksum=3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e
 post_install() {
 	vlicense LICENSE
 }
-
-python-zipp_package() {
-	depends=python
-	short_desc+=" - Python 2"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-		vlicense LICENSE
-	}
-}

From 96a542697996088e8f9d0426910b53ac14a09819 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:47:31 +0700
Subject: [PATCH 6/7] python3-importlib_metadata: drop package

importlib_metadata is backport of Python 3.8's standard library for
older Python.

We've upgraded to Python 3.8, drop it.

See: https://importlib-metadata.readthedocs.io/en/latest/
---
 srcpkgs/python-importlib_metadata             |  1 -
 .../template                                  | 24 +++++--------------
 2 files changed, 6 insertions(+), 19 deletions(-)
 delete mode 120000 srcpkgs/python-importlib_metadata
 rename srcpkgs/{python3-importlib_metadata => python-importlib_metadata}/template (51%)

diff --git a/srcpkgs/python-importlib_metadata b/srcpkgs/python-importlib_metadata
deleted file mode 120000
index 211acaa67bf..00000000000
--- a/srcpkgs/python-importlib_metadata
+++ /dev/null
@@ -1 +0,0 @@
-python3-importlib_metadata
\ No newline at end of file
diff --git a/srcpkgs/python3-importlib_metadata/template b/srcpkgs/python-importlib_metadata/template
similarity index 51%
rename from srcpkgs/python3-importlib_metadata/template
rename to srcpkgs/python-importlib_metadata/template
index bd1aa83266f..ee0b9e949e0 100644
--- a/srcpkgs/python3-importlib_metadata/template
+++ b/srcpkgs/python-importlib_metadata/template
@@ -1,13 +1,13 @@
-# Template file for 'python3-importlib_metadata'
-pkgname=python3-importlib_metadata
+# Template file for 'python-importlib_metadata'
+pkgname=python-importlib_metadata
 version=1.2.0
 revision=3
 archs=noarch
 wrksrc="importlib_metadata-${version}"
-build_style=python-module
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python3-zipp"
-checkdepends="${depends} python3-packaging"
+build_style=python2-module
+hostmakedepends="python-setuptools"
+depends="python-zipp"
+checkdepends="${depends}"
 short_desc="Read metadata from Python packages"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="Apache-2.0"
@@ -15,15 +15,3 @@ homepage="https://importlib-metadata.readthedocs.io/en/latest/"
 changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(links).html"
 distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz"
 checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278
-
-do_check() {
-	python3 setup.py test
-}
-
-python-importlib_metadata_package() {
-	depends="python-zipp python-backports.configparser python-contextlib2"
-	short_desc="${short_desc/Python/Python 2/}"
-	pkg_install() {
-		vmove "usr/lib/python2.7"
-	}
-}

From bd223dc5ea83f012d9c520fe1ebc360247973a2a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 28 Jan 2020 10:59:03 +0700
Subject: [PATCH 7/7] python3-pytest: update to 5.3.4.

---
 srcpkgs/python3-pytest/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 71ccb76537f..e3c050d1f35 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-pytest'
 pkgname=python3-pytest
-version=5.3.2
-revision=3
+version=5.3.4
+revision=1
 archs=noarch
 wrksrc="${pkgname/python3-//}-${version}"
 build_style=python3-module
@@ -16,7 +16,7 @@ license="MIT"
 homepage="https://docs.pytest.org/en/latest/"
 changelog="https://docs.pytest.org/en/latest/changelog.html"
 distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz"
-checksum=6b571215b5a790f9b41f19f3531c53a45cf6bb8ef2988bc1ff9afb38270b25fa
+checksum=1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600
 alternatives="
  pytest:pytest:/usr/bin/pytest3
  pytest:py.test:/usr/bin/py.test3"

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

* Re: [PR PATCH] [Merged]: Drop python3.8 backported package
  2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
                   ` (7 preceding siblings ...)
  2020-01-29  2:54 ` voidlinux-github
@ 2020-01-29 18:19 ` voidlinux-github
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-29 18:19 UTC (permalink / raw)
  To: ml

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

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

Drop python3.8 backported package
https://github.com/void-linux/void-packages/pull/17755

Description:
- zipp, importlib_metadata, mock are back-ported package.

- Drop them since we're in Python 3.8 now.

- ./xbps-src check passed

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

end of thread, other threads:[~2020-01-29 18:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-24 16:50 [PR PATCH] Drop python3.8 backported package voidlinux-github
2019-12-24 16:51 ` [PR PATCH] [Updated] " voidlinux-github
2019-12-26 13:30 ` voidlinux-github
2020-01-11  2:27 ` [PR PATCH] [Updated] [wip] " voidlinux-github
2020-01-11  2:38 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-27 19:52 ` voidlinux-github
2020-01-28  3:47 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-28  4:00 ` voidlinux-github
2020-01-29  2:54 ` voidlinux-github
2020-01-29 18:19 ` [PR PATCH] [Merged]: " voidlinux-github

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