public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/patsy/, dev-python/patsy/files/
@ 2021-06-20 22:59 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2021-06-20 22:59 UTC (permalink / raw
  To: gentoo-commits

commit:     6f4144fd5147726b242b24daddab66fd72c9146d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 20 21:29:39 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun 20 22:59:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f4144fd

dev-python/patsy: Enable py3.10

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/patsy/files/patsy-0.5.1-py310.patch | 39 ++++++++++++++++++++++++++
 dev-python/patsy/patsy-0.5.1.ebuild            |  6 +++-
 2 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/dev-python/patsy/files/patsy-0.5.1-py310.patch b/dev-python/patsy/files/patsy-0.5.1-py310.patch
new file mode 100644
index 00000000000..04a712e7e42
--- /dev/null
+++ b/dev-python/patsy/files/patsy-0.5.1-py310.patch
@@ -0,0 +1,39 @@
+From 6328c7652e4d7fda9872a555d31658e54b7b0e6e Mon Sep 17 00:00:00 2001
+From: thequackdaddy <pquack@gmail.com>
+Date: Sun, 28 Oct 2018 19:38:08 -0500
+Subject: [PATCH] MAINT: A few python 3.7 fixes
+
+---
+ patsy/constraint.py     | 5 ++++-
+ tools/check-API-refs.py | 2 +-
+ 3 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/patsy/constraint.py b/patsy/constraint.py
+index ca9f6e2..d710a94 100644
+--- a/patsy/constraint.py
++++ b/patsy/constraint.py
+@@ -10,7 +10,10 @@
+ __all__ = ["LinearConstraint"]
+ 
+ import re
+-from collections import Mapping
++try:
++    from collections.abc import Mapping
++except ImportError:
++    from collections import Mapping
+ import six
+ import numpy as np
+ from patsy import PatsyError
+diff --git a/tools/check-API-refs.py b/tools/check-API-refs.py
+index 8e9e8a1..9349028 100644
+--- a/tools/check-API-refs.py
++++ b/tools/check-API-refs.py
+@@ -9,7 +9,7 @@
+ root = dirname(dirname(abspath(__file__)))
+ patsy_ref = root + "/doc/API-reference.rst"
+ 
+-doc_re = re.compile("^\.\. (.*):: ([^\(]*)")
++doc_re = re.compile("^\\.\\. (.*):: ([^\\(]*)")
+ def _documented(rst_path):
+     documented = set()
+     for line in open(rst_path):

diff --git a/dev-python/patsy/patsy-0.5.1.ebuild b/dev-python/patsy/patsy-0.5.1.ebuild
index 39d9848be72..78b6a5d4cd6 100644
--- a/dev-python/patsy/patsy-0.5.1.ebuild
+++ b/dev-python/patsy/patsy-0.5.1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python3_{8..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 
@@ -21,3 +21,7 @@ RDEPEND="
 "
 
 distutils_enable_tests nose
+
+PATCHES=(
+	"${FILESDIR}"/${P}-py310.patch
+)


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

* [gentoo-commits] repo/gentoo:master commit in: dev-python/patsy/, dev-python/patsy/files/
@ 2021-11-08  7:20 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2021-11-08  7:20 UTC (permalink / raw
  To: gentoo-commits

commit:     3ecb3b68c2e79ffd49e18bfe27ff6f40f018a519
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  8 07:20:30 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov  8 07:20:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ecb3b68

dev-python/patsy: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/patsy/Manifest                      |  1 -
 dev-python/patsy/files/patsy-0.5.1-py310.patch | 39 --------------------------
 dev-python/patsy/patsy-0.5.1.ebuild            | 27 ------------------
 3 files changed, 67 deletions(-)

diff --git a/dev-python/patsy/Manifest b/dev-python/patsy/Manifest
index b66b50f379e..67873491e69 100644
--- a/dev-python/patsy/Manifest
+++ b/dev-python/patsy/Manifest
@@ -1,2 +1 @@
-DIST patsy-0.5.1.tar.gz 397623 BLAKE2B b8861e8c8e223db5df616c378d5b1ce475a1b337d049723c1a4b01432d9e1569c4b6537dc467fbc1ba83dfc7cd999ad188008e387c446f2133f872393c9eb960 SHA512 aeb56411e68713ec75c0b5344890939f721c460d3c7643b9fd57d7c928421d21408b0f2963348edf27a025842989dbae6fd5cfccd3f9d9497d60a1dffe8d7bdc
 DIST patsy-0.5.2.tar.gz 397275 BLAKE2B 3aa5dc310729bd979c78004d5f1badb83b75b08d290cf8258191c87d61401f0b6ecd9490f1c4b932269e545c50a16694e44de9c076ca80648717c5f1af62fb69 SHA512 898df5536b0ff3a4d299e69c5f73a3d754cfbe78fe463fb4c4726cfd67d4e30c77cd3d7093131737207cb9f29c1374ab20a68ec5978007ea51878ec7c395f48d

diff --git a/dev-python/patsy/files/patsy-0.5.1-py310.patch b/dev-python/patsy/files/patsy-0.5.1-py310.patch
deleted file mode 100644
index 04a712e7e42..00000000000
--- a/dev-python/patsy/files/patsy-0.5.1-py310.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 6328c7652e4d7fda9872a555d31658e54b7b0e6e Mon Sep 17 00:00:00 2001
-From: thequackdaddy <pquack@gmail.com>
-Date: Sun, 28 Oct 2018 19:38:08 -0500
-Subject: [PATCH] MAINT: A few python 3.7 fixes
-
----
- patsy/constraint.py     | 5 ++++-
- tools/check-API-refs.py | 2 +-
- 3 files changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/patsy/constraint.py b/patsy/constraint.py
-index ca9f6e2..d710a94 100644
---- a/patsy/constraint.py
-+++ b/patsy/constraint.py
-@@ -10,7 +10,10 @@
- __all__ = ["LinearConstraint"]
- 
- import re
--from collections import Mapping
-+try:
-+    from collections.abc import Mapping
-+except ImportError:
-+    from collections import Mapping
- import six
- import numpy as np
- from patsy import PatsyError
-diff --git a/tools/check-API-refs.py b/tools/check-API-refs.py
-index 8e9e8a1..9349028 100644
---- a/tools/check-API-refs.py
-+++ b/tools/check-API-refs.py
-@@ -9,7 +9,7 @@
- root = dirname(dirname(abspath(__file__)))
- patsy_ref = root + "/doc/API-reference.rst"
- 
--doc_re = re.compile("^\.\. (.*):: ([^\(]*)")
-+doc_re = re.compile("^\\.\\. (.*):: ([^\\(]*)")
- def _documented(rst_path):
-     documented = set()
-     for line in open(rst_path):

diff --git a/dev-python/patsy/patsy-0.5.1.ebuild b/dev-python/patsy/patsy-0.5.1.ebuild
deleted file mode 100644
index b728b8b52fb..00000000000
--- a/dev-python/patsy/patsy-0.5.1.ebuild
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python module to describe statistical models and design matrices"
-HOMEPAGE="https://patsy.readthedocs.org/en/latest/index.html"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
-
-RDEPEND="
-	dev-python/numpy[${PYTHON_USEDEP}]
-	dev-python/six[${PYTHON_USEDEP}]
-	dev-python/scipy[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests nose
-
-PATCHES=(
-	"${FILESDIR}"/${P}-py310.patch
-)


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

end of thread, other threads:[~2021-11-08  7:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-08  7:20 [gentoo-commits] repo/gentoo:master commit in: dev-python/patsy/, dev-python/patsy/files/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2021-06-20 22:59 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox