dev-python/patsy: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-11-08 08:20:30 +01:00
parent 48f76de457
commit 3ecb3b68c2
3 changed files with 0 additions and 67 deletions

View File

@@ -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

View File

@@ -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):

View File

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