From e9e80b250eb6c41f488a84d900d91a90c92cf5a3 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 21 Jun 2021 01:45:03 +0000 Subject: Adding metadata --- dev-python/patsy/files/patsy-0.5.1-py310.patch | 39 ++++++++++++++++++++++++++ dev-python/patsy/patsy-0.5.1.ebuild | 23 ++++----------- 2 files changed, 44 insertions(+), 18 deletions(-) create mode 100644 dev-python/patsy/files/patsy-0.5.1-py310.patch (limited to 'dev-python/patsy') 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 000000000000..04a712e7e426 --- /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 +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 60ea7a5109ab..e3b43bf2c384 100644 --- a/dev-python/patsy/patsy-0.5.1.ebuild +++ b/dev-python/patsy/patsy-0.5.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -13,28 +13,15 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux" -IUSE="doc" RDEPEND=" dev-python/numpy[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] dev-python/scipy[${PYTHON_USEDEP}] - " -BDEPEND=" - doc? ( - dev-python/ipython[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - )" +" distutils_enable_tests nose -python_compile_all() { - use doc && emake -C doc html -} - -python_install_all() { - use doc && HTML_DOCS=( doc/_build/html/. ) - distutils-r1_python_install_all -} +PATCHES=( + "${FILESDIR}"/${P}-py310.patch +) -- cgit v1.3.1