* [gentoo-commits] repo/gentoo:master commit in: dev-python/dill/, dev-python/dill/files/
@ 2016-03-22 22:22 Sebastien Fabbro
0 siblings, 0 replies; 2+ messages in thread
From: Sebastien Fabbro @ 2016-03-22 22:22 UTC (permalink / raw
To: gentoo-commits
commit: 8d417a27cd988faf168d9fdabcca9e30215037b2
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 22 19:18:36 2016 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Tue Mar 22 23:18:12 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d417a27
dev-python/dill: initial import
Package-Manager: portage-2.2.28
dev-python/dill/Manifest | 1 +
dev-python/dill/dill-0.2.5.ebuild | 23 +++++++++++++++++
.../dill-0.2.5-avoid-installation-binaries.patch | 29 ++++++++++++++++++++++
.../files/dill-0.2.5-remove-install_requires.patch | 28 +++++++++++++++++++++
dev-python/dill/metadata.xml | 22 ++++++++++++++++
5 files changed, 103 insertions(+)
diff --git a/dev-python/dill/Manifest b/dev-python/dill/Manifest
new file mode 100644
index 0000000..7f57e42
--- /dev/null
+++ b/dev-python/dill/Manifest
@@ -0,0 +1 @@
+DIST dill-0.2.5.tgz 60572 SHA256 431c9d46e190dcdf1397234cf659d66e2e22e33b0474ed6ee2d0b16c9c0ea319 SHA512 94942a736b4c2e1558eb9475f9bafe3a24f88a976abf9880beec386497a2bc769cb9be6bbfd2baac006c92578c372f5dfcfa165c5649876ea5076a3b207de6fc WHIRLPOOL b0af3e279ad937f36450f25711412b7e48928515e4721fee3d91663c4ec629357b6d8f3c661f1ac56d3f7343a3bef717a368386bd8983991e06a4ce0f78ae1f9
diff --git a/dev-python/dill/dill-0.2.5.ebuild b/dev-python/dill/dill-0.2.5.ebuild
new file mode 100644
index 0000000..6ad1dd5
--- /dev/null
+++ b/dev-python/dill/dill-0.2.5.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Serialize all of python (almost)"
+HOMEPAGE="http://www.cacr.caltech.edu/~mmckerns/dill.htm"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${P}-avoid-installation-binaries.patch"
+ "${FILESDIR}/${P}-remove-install_requires.patch"
+)
diff --git a/dev-python/dill/files/dill-0.2.5-avoid-installation-binaries.patch b/dev-python/dill/files/dill-0.2.5-avoid-installation-binaries.patch
new file mode 100644
index 0000000..16525c1
--- /dev/null
+++ b/dev-python/dill/files/dill-0.2.5-avoid-installation-binaries.patch
@@ -0,0 +1,29 @@
+From dfa34a34f09d0f868cc404d5c1ccf071f47fe63f Mon Sep 17 00:00:00 2001
+From: Josue Ortega <josueortega@debian.org.gt>
+Date: Sun, 1 Nov 2015 13:07:04 -0600
+Subject: Patch to avoid the installation of upstream binaries under the wrong
+ directories
+
+---
+ setup.py | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 8f91183..1ee6dcf 100644
+--- a/setup.py
++++ b/setup.py
+@@ -283,10 +283,10 @@ if has_setuptools:
+ """ % (ctypes_version)
+
+ # add the scripts, and close 'setup' call
+-setup_code += """
+- scripts=['scripts/unpickle.py','scripts/get_objgraph.py'])
+-"""
+-
++#setup_code += """
++# scripts=['scripts/unpickle.py','scripts/get_objgraph.py'])
++#"""
++setup_code += ")"
+ # exec the 'setup' code
+ exec(setup_code)
+
diff --git a/dev-python/dill/files/dill-0.2.5-remove-install_requires.patch b/dev-python/dill/files/dill-0.2.5-remove-install_requires.patch
new file mode 100644
index 0000000..dfa5f0d
--- /dev/null
+++ b/dev-python/dill/files/dill-0.2.5-remove-install_requires.patch
@@ -0,0 +1,28 @@
+From 9b32a0be077d5295a42fec7cb17810fa3e8aca45 Mon Sep 17 00:00:00 2001
+From: Josue Ortega <josueortega@debian.org.gt>
+Date: Sun, 1 Nov 2015 13:11:04 -0600
+Subject: Removes install_requires in order to avoid automatic package
+
+---
+ setup.py | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 1ee6dcf..dd90af5 100644
+--- a/setup.py
++++ b/setup.py
+@@ -277,10 +277,10 @@ if has_setuptools:
+ install_requires = ['pyreadline%s'],
+ """ % (pyreadline_version)
+ # verrrry unlikely that this is still relevant
+- elif hex(sys.hexversion) < '0x20500f0':
+- setup_code += """
+- install_requires = ['ctypes%s'],
+-""" % (ctypes_version)
++# elif hex(sys.hexversion) < '0x20500f0':
++# setup_code += """
++# install_requires = ['ctypes%s'],
++#""" % (ctypes_version)
+
+ # add the scripts, and close 'setup' call
+ #setup_code += """
diff --git a/dev-python/dill/metadata.xml b/dev-python/dill/metadata.xml
new file mode 100644
index 0000000..b277396
--- /dev/null
+++ b/dev-python/dill/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <longdescription lang="en">
+ Dill extends Python's 'pickle' module for serializing and de-serializing Python
+ objects to the majority of the built-in Python types.
+ Dill provides the user the same interface as the 'pickle' module, and also
+ includes some additional features. In addition to pickling Python objects,
+ dill provides the ability to save the state of an interpreter session in a
+ single command.
+ Dill can be used to store Python objects to a file, but the primary usage is to
+ send Python objects across the network as a byte stream.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">dill</remote-id>
+ <remote-id type="github">uqfoundation/dill</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/dill/, dev-python/dill/files/
@ 2025-06-21 8:15 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2025-06-21 8:15 UTC (permalink / raw
To: gentoo-commits
commit: c26473896bf55c750b90356befa843eefbf9aba0
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 21 08:09:51 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 21 08:15:32 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2647389
dev-python/dill: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/dill/Manifest | 1 -
dev-python/dill/dill-0.3.9.ebuild | 29 ------
dev-python/dill/files/dill-0.3.9-pypy311.patch | 123 -------------------------
3 files changed, 153 deletions(-)
diff --git a/dev-python/dill/Manifest b/dev-python/dill/Manifest
index 9cdfd1898511..259c5f4cd80e 100644
--- a/dev-python/dill/Manifest
+++ b/dev-python/dill/Manifest
@@ -1,2 +1 @@
-DIST dill-0.3.9.tar.gz 187000 BLAKE2B 56196bd04d0a050619feee6b719e9232376853a03fae3a7486fa48f90fea1e27b4f4eaa31b0df54e70cf1aa4333268213dd6350408db0b78778d92f04ae65bd0 SHA512 461943ff8a0b7212b30e7c8b9e35348d0215c1c6dca356ad813e15c8721f39692fb61809349e5ee63a00d19a39aeae34c3b4def17257f8f7820e4318b81b273f
DIST dill-0.4.0.tar.gz 186976 BLAKE2B fefaaa23b98df7548089907224ec405efa75570df51fb08940d14193a7710355ab473b335642d153920a42fe648e218db30b846c826964accd1c1ba79b2cc708 SHA512 1289780e9326959a4d2488e5097b889f27212fba23d35d5c0db00337b952cde20786ecdbefa03a8b276f0cec8dba5b8ea118245e39e4fe8fd3209b5c920829e7
diff --git a/dev-python/dill/dill-0.3.9.ebuild b/dev-python/dill/dill-0.3.9.ebuild
deleted file mode 100644
index 212a4de289db..000000000000
--- a/dev-python/dill/dill-0.3.9.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Serialize all of Python (almost)"
-HOMEPAGE="
- https://github.com/uqfoundation/dill/
- https://pypi.org/project/dill/
-"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
-
-PATCHES=(
- # https://github.com/uqfoundation/dill/pull/707
- # https://github.com/uqfoundation/dill/pull/701
- "${FILESDIR}/${P}-pypy311.patch"
-)
-
-python_test() {
- "${EPYTHON}" -m dill.tests || die
-}
diff --git a/dev-python/dill/files/dill-0.3.9-pypy311.patch b/dev-python/dill/files/dill-0.3.9-pypy311.patch
deleted file mode 100644
index 8f73f1264a25..000000000000
--- a/dev-python/dill/files/dill-0.3.9-pypy311.patch
+++ /dev/null
@@ -1,123 +0,0 @@
-From 599265e0a0cec406e245808105b63987077f53f2 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Wed, 12 Mar 2025 03:41:39 +0100
-Subject: [PATCH] fix CodeType support for PyPy3.11 7.3.19+ (#707)
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Add support for the variation of `types.CodeType` used in PyPy3.11
-7.3.19 and newer. It introduces `co_qualname` in addition
-to the previous members — but it does not feature `co_exceptiontable`
-like CPython 3.11. I've named the version `(3,11,'p')` for PyPy.
-
-Fixes #706
----
- dill/_dill.py | 26 ++++++++++++++++++++++++++
- 1 file changed, 26 insertions(+)
-
-diff --git a/dill/_dill.py b/dill/_dill.py
-index 152899f1..aec297c4 100644
---- a/dill/_dill.py
-+++ b/dill/_dill.py
-@@ -665,6 +665,7 @@ def __getattr__(self, item):
- # Version New attribute CodeType parameters
- ((3,11,'a'), 'co_endlinetable', 'argcount posonlyargcount kwonlyargcount nlocals stacksize flags code consts names varnames filename name qualname firstlineno linetable endlinetable columntable exceptiontable freevars cellvars'),
- ((3,11), 'co_exceptiontable', 'argcount posonlyargcount kwonlyargcount nlocals stacksize flags code consts names varnames filename name qualname firstlineno linetable exceptiontable freevars cellvars'),
-+ ((3,11,'p'), 'co_qualname', 'argcount posonlyargcount kwonlyargcount nlocals stacksize flags code consts names varnames filename name qualname firstlineno linetable freevars cellvars'),
- ((3,10), 'co_linetable', 'argcount posonlyargcount kwonlyargcount nlocals stacksize flags code consts names varnames filename name firstlineno linetable freevars cellvars'),
- ((3,8), 'co_posonlyargcount', 'argcount posonlyargcount kwonlyargcount nlocals stacksize flags code consts names varnames filename name firstlineno lnotab freevars cellvars'),
- ((3,7), 'co_kwonlyargcount', 'argcount kwonlyargcount nlocals stacksize flags code consts names varnames filename name firstlineno lnotab freevars cellvars'),
-@@ -701,6 +702,22 @@ def _create_code(*args):
- args[17],
- )
- fields = m.fields
-+ # PyPy 3.11 7.3.19+ (17 members)
-+ elif m.case((
-+ 'argcount', 'posonlyargcount', 'kwonlyargcount', 'nlocals', 'stacksize', 'flags', # args[0:6]
-+ 'code', 'consts', 'names', 'varnames', 'filename', 'name', 'qualname', # args[6:13]
-+ 'firstlineno', 'linetable', 'freevars', 'cellvars' # args[13:]
-+ )):
-+ if CODE_VERSION == (3,11,'p'):
-+ return CodeType(
-+ *args[:6],
-+ args[6].encode() if hasattr(args[6], 'encode') else args[6], # code
-+ *args[7:14],
-+ args[14].encode() if hasattr(args[14], 'encode') else args[14], # linetable
-+ args[15],
-+ args[16],
-+ )
-+ fields = m.fields
- # Python 3.10 or 3.8/3.9 (16 members)
- elif m.case((
- 'argcount', 'posonlyargcount', 'kwonlyargcount', 'nlocals', 'stacksize', 'flags', # args[0:6]
-@@ -1175,6 +1192,15 @@ def save_code(pickler, obj):
- obj.co_firstlineno, obj.co_linetable, obj.co_exceptiontable,
- obj.co_freevars, obj.co_cellvars
- )
-+ elif hasattr(obj, "co_qualname"): # pypy 3.11 7.3.19+ (17 args)
-+ args = (
-+ obj.co_lnotab, obj.co_argcount, obj.co_posonlyargcount,
-+ obj.co_kwonlyargcount, obj.co_nlocals, obj.co_stacksize,
-+ obj.co_flags, obj.co_code, obj.co_consts, obj.co_names,
-+ obj.co_varnames, obj.co_filename, obj.co_name, obj.co_qualname,
-+ obj.co_firstlineno, obj.co_linetable, obj.co_freevars,
-+ obj.co_cellvars
-+ )
- elif hasattr(obj, "co_linetable"): # python 3.10 (16 args)
- args = (
- obj.co_lnotab, # for < python 3.10 [not counted in args]
-
-From a3d129f9c8aceb856a7e50277af4b7fef6ab9202 Mon Sep 17 00:00:00 2001
-From: Mike McKerns <mmckerns@caltech.edu>
-Date: Mon, 17 Feb 2025 00:06:31 -0500
-Subject: [PATCH] support pypy-3.11 (#701)
-
----
- dill/_dill.py | 2 +-
- dill/_objects.py | 2 +-
- dill/detect.py | 5 ++++-
- 3 files changed, 6 insertions(+), 3 deletions(-)
-
-diff --git a/dill/_dill.py b/dill/_dill.py
-index 987b96b..152899f 100644
---- a/dill/_dill.py
-+++ b/dill/_dill.py
-@@ -571,7 +571,7 @@ if sys.hexversion >= 0x30a00a0:
- _incedental_reverse_typemap['LineIteratorType'] = type(compile('3', '', 'eval').co_lines())
- '''
-
--if sys.hexversion >= 0x30b00b0:
-+if sys.hexversion >= 0x30b00b0 and not IS_PYPY:
- from types import GenericAlias
- _incedental_reverse_typemap["GenericAliasIteratorType"] = type(iter(GenericAlias(list, (int,))))
- '''
-diff --git a/dill/_objects.py b/dill/_objects.py
-index 500322f..a37cd79 100644
---- a/dill/_objects.py
-+++ b/dill/_objects.py
-@@ -402,7 +402,7 @@ except ImportError:
- if sys.hexversion >= 0x30a00a0 and not IS_PYPY:
- x['LineIteratorType'] = compile('3', '', 'eval').co_lines()
-
--if sys.hexversion >= 0x30b00b0:
-+if sys.hexversion >= 0x30b00b0 and not IS_PYPY:
- from types import GenericAlias
- d["GenericAliasIteratorType"] = iter(GenericAlias(list, (int,)))
- x['PositionsIteratorType'] = compile('3', '', 'eval').co_positions()
-diff --git a/dill/detect.py b/dill/detect.py
-index 1f8ae3d..2f0bea1 100644
---- a/dill/detect.py
-+++ b/dill/detect.py
-@@ -145,7 +145,10 @@ def nestedglobals(func, recurse=True):
- CAN_NULL = sys.hexversion >= 0x30b00a7 # NULL may be prepended >= 3.11a7
- names = set()
- with capture('stdout') as out:
-- dis.dis(func) #XXX: dis.dis(None) disassembles last traceback
-+ try:
-+ dis.dis(func) #XXX: dis.dis(None) disassembles last traceback
-+ except IndexError:
-+ pass #FIXME: HACK for IS_PYPY (3.11)
- for line in out.getvalue().splitlines():
- if '_GLOBAL' in line:
- name = line.split('(')[-1].split(')')[0]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-21 8:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-21 8:15 [gentoo-commits] repo/gentoo:master commit in: dev-python/dill/, dev-python/dill/files/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2016-03-22 22:22 Sebastien Fabbro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox