* [gentoo-commits] repo/gentoo:master commit in: dev-python/cftime/files/, dev-python/cftime/
@ 2023-12-30 18:26 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2023-12-30 18:26 UTC (permalink / raw
To: gentoo-commits
commit: 9f6e87d1d218673cfd2289659095e103ad1a11a1
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 30 18:25:37 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec 30 18:26:33 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f6e87d1
dev-python/cftime: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/cftime/Manifest | 1 -
dev-python/cftime/cftime-1.6.2-r1.ebuild | 43 ----------------------
.../cftime/files/cftime-1.6.2-cython-3.patch | 34 -----------------
3 files changed, 78 deletions(-)
diff --git a/dev-python/cftime/Manifest b/dev-python/cftime/Manifest
index 764af2b9ea1e..9b14f2bfdfea 100644
--- a/dev-python/cftime/Manifest
+++ b/dev-python/cftime/Manifest
@@ -1,2 +1 @@
-DIST cftime-1.6.2.tar.gz 52745 BLAKE2B f3e91585b40a981e1c752ec3f086a4611354e228592a1b581b05f003d68878245a8ab4fae332d9054c2a9e85ef921b9110a0f8473861bd3e4cc92c287259ad44 SHA512 d5135a55e5c9982247835e379bd35e4d8b47f0f70d08766f73223e0c40dc1875840c5cb40515e233196af1c10e992911325ff33a3c41efc3b8009e49de2a6e31
DIST cftime-1.6.3.tar.gz 53256 BLAKE2B 8875c368e6811487960fb240ed5320ab1dcc24f3678e9663e67b7c49ab8cc1f12a0030670760fcd1a15938b57f3860d5c9c9b30a3e5a0e1755fcd0c7b8deaf5f SHA512 0bcb8dcf7a840e500d7cc0f784f960b4972803f353fcffbf36dc30b2169b6864aea1fd8cab2d60e7908a063db55f2cfa3639c51fea84692b2dfe2d83b954c0ae
diff --git a/dev-python/cftime/cftime-1.6.2-r1.ebuild b/dev-python/cftime/cftime-1.6.2-r1.ebuild
deleted file mode 100644
index c7709831ca42..000000000000
--- a/dev-python/cftime/cftime-1.6.2-r1.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 2020-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Time-handling functionality from netcdf4-python"
-HOMEPAGE="
- https://github.com/Unidata/cftime/
- https://pypi.org/project/cftime/
-"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~riscv ~x86"
-
-DEPEND="
- >=dev-python/numpy-1.13.4[${PYTHON_USEDEP}]
-"
-RDEPEND="
- ${DEPEND}
-"
-BDEPEND="
- >=dev-python/cython-0.29.20[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-python_prepare_all() {
- local PATCHES=(
- "${FILESDIR}/${P}-cython-3.patch"
- )
-
- # remove pytest-cov dep
- sed -e "/--cov/d" -i setup.cfg || die
-
- distutils-r1_python_prepare_all
-}
diff --git a/dev-python/cftime/files/cftime-1.6.2-cython-3.patch b/dev-python/cftime/files/cftime-1.6.2-cython-3.patch
deleted file mode 100644
index c52ebdb3c84f..000000000000
--- a/dev-python/cftime/files/cftime-1.6.2-cython-3.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 31f782aed3de56300886dd7350f1faff657e14dd Mon Sep 17 00:00:00 2001
-From: Spencer Clark <spencerkclark@gmail.com>
-Date: Sat, 29 Jul 2023 09:51:10 -0400
-Subject: [PATCH] Set c_api_binop_methods compiler directive to True
-
-This retains Cython 0.x behavior for arithmetic operators for
-Cython >= 3.0.0.
----
- Changelog | 2 ++
- pyproject.toml | 2 +-
- requirements-dev.txt | 2 +-
- setup.py | 9 ++++++++-
- 4 files changed, 12 insertions(+), 3 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index 006f1a92..360396fa 100644
---- a/setup.py
-+++ b/setup.py
-@@ -16,7 +16,14 @@
- BASEDIR = os.path.abspath(os.path.dirname(__file__))
- SRCDIR = os.path.join(BASEDIR,'src')
- CMDS_NOCYTHONIZE = ['clean','clean_cython','sdist']
--COMPILER_DIRECTIVES = {}
-+COMPILER_DIRECTIVES = {
-+ # Cython 3.0.0 changes the default of the c_api_binop_methods directive to
-+ # False, resulting in errors in datetime and timedelta arithmetic:
-+ # https://github.com/Unidata/cftime/issues/271. We explicitly set it to
-+ # True to retain Cython 0.x behavior for future Cython versions. This
-+ # directive was added in Cython version 0.29.20.
-+ "c_api_binop_methods": True
-+}
- DEFINE_MACROS = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
- FLAG_COVERAGE = '--cython-coverage' # custom flag enabling Cython line tracing
- NAME = 'cftime'
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-30 18:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-30 18:26 [gentoo-commits] repo/gentoo:master commit in: dev-python/cftime/files/, dev-python/cftime/ 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