diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-01-13 00:43:03 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-01-13 00:43:03 +0000 |
| commit | 58f1cc4ec4a096699e03c18c239bc9c320f78aee (patch) | |
| tree | a0d133b8e20ae104630dc9d7ae4f1d2903cc719e /dev-python | |
| parent | 431f58ea9e6a65dd632a1572b2e51208d891fadc (diff) | |
| download | baldeagleos-repo-58f1cc4ec4a096699e03c18c239bc9c320f78aee.tar.gz baldeagleos-repo-58f1cc4ec4a096699e03c18c239bc9c320f78aee.tar.xz baldeagleos-repo-58f1cc4ec4a096699e03c18c239bc9c320f78aee.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python')
67 files changed, 857 insertions, 70 deletions
diff --git a/dev-python/GridDataFormats/GridDataFormats-0.5.0.ebuild b/dev-python/GridDataFormats/GridDataFormats-0.5.0.ebuild new file mode 100644 index 000000000000..1b6ac494f96c --- /dev/null +++ b/dev-python/GridDataFormats/GridDataFormats-0.5.0.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Reading and writing of data on regular grids in Python" +HOMEPAGE="https://pypi.org/project/GridDataFormats/ https://github.com/MDAnalysis/GridDataFormats" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="LGPL-3" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND=" + >=dev-python/numpy-1.0.3[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] +" diff --git a/dev-python/GridDataFormats/Manifest b/dev-python/GridDataFormats/Manifest index 1648d3597884..f6520d47367d 100644 --- a/dev-python/GridDataFormats/Manifest +++ b/dev-python/GridDataFormats/Manifest @@ -1 +1,2 @@ DIST GridDataFormats-0.4.0.tar.gz 63643 BLAKE2B cbc0bc259c30c9eccf61b11a7ed6e8004979fe2adb2b049f137caddbb71190291011664462c2c1aa4fe2baf822102d59d3079e9e48620b76d37a4812ca150328 SHA512 b480293e2dd17cb484336aa1469a8f0e739fbe7d925190f6a6502e96d0ab26a36271b0a0676c711716abd3e025e86fbec961cf965e950f89be167e0a83ef904c +DIST GridDataFormats-0.5.0.tar.gz 1982315 BLAKE2B b230fd2843ab6a5826ee425fb3fad9a0d5d75a292aa3b6b150e76fa515b68000efb8e1b4140619c0c489f34ac7e3ce6d979e97526c212caf3e808be07b33afcd SHA512 9cae1fe0f4f27bd966c1563831f8a9257ecbe14a7a6f011753355070449515b9b0ad1f31867c2c199c9703aebd5a3b40a03c1276f3bb6ff51447f7a870fdefe8 diff --git a/dev-python/PyQt5-python2/PyQt5-python2-5.14.2-r1.ebuild b/dev-python/PyQt5-python2/PyQt5-python2-5.14.2-r2.ebuild index 9a47115577a2..9a47115577a2 100644 --- a/dev-python/PyQt5-python2/PyQt5-python2-5.14.2-r1.ebuild +++ b/dev-python/PyQt5-python2/PyQt5-python2-5.14.2-r2.ebuild diff --git a/dev-python/PyQt5-sip-python2/PyQt5-sip-python2-4.19.22.ebuild b/dev-python/PyQt5-sip-python2/PyQt5-sip-python2-4.19.22-r1.ebuild index c87f6c45c2f0..019b360a5bd9 100644 --- a/dev-python/PyQt5-sip-python2/PyQt5-sip-python2-4.19.22.ebuild +++ b/dev-python/PyQt5-sip-python2/PyQt5-sip-python2-4.19.22-r1.ebuild @@ -11,11 +11,8 @@ HOMEPAGE="https://www.riverbankcomputing.com/software/sip/intro" MY_PN=sip MY_P=${MY_PN}-${PV/_pre/.dev} -if [[ ${PV} == *_pre* ]]; then - SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" -else - SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" -fi +SRC_URI="ftp://ftp.calculate-linux.org/calculate/source/${MY_PN}/${MY_P}.tar.gz + http://mirror.yandex.ru/calculate/source/${MY_PN}/${MY_P}.tar.gz" # Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h SLOT="0/12" diff --git a/dev-python/certifi-python2/Manifest b/dev-python/certifi-python2/Manifest new file mode 100644 index 000000000000..dd748ac592ee --- /dev/null +++ b/dev-python/certifi-python2/Manifest @@ -0,0 +1 @@ +DIST certifi-shim-10001.tar.gz 4061 BLAKE2B 183c573b958921877b14e38e9e26842e8a4f1c1617979a30b65ef1e2bbf001e5ff0aab830e4399906a7d21fb3c71ac12b1e757e4d283aae16cced8e7de7c2a1d SHA512 93beea61e579b2b414bd37c63eba49365e0a1a62304e0c7ac920bedaf5d72cb095a4a46b2240b3c2e6ee31e5b91cd520ae8348b6a8033212d11bbca31db6750c diff --git a/dev-python/certifi-python2/certifi-python2-10001.ebuild b/dev-python/certifi-python2/certifi-python2-10001.ebuild new file mode 100644 index 000000000000..f9b1553424c9 --- /dev/null +++ b/dev-python/certifi-python2/certifi-python2-10001.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +MY_P=certifi-shim-${PV} +DESCRIPTION="Thin replacement for certifi using system certificate store" +HOMEPAGE=" + https://github.com/mgorny/certifi-shim + https://pypi.org/project/certifi" +SRC_URI=" + https://github.com/mgorny/certifi-shim/archive/v${PV}.tar.gz + -> ${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="CC0-1.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +RESTRICT="test" + +RDEPEND=" + !dev-python/certifi[python_targets_python2_7] + app-misc/ca-certificates" + +distutils_enable_tests unittest + +src_prepare() { + sed -i -e "s^/etc^${EPREFIX}/etc^" certifi/core.py || die + distutils-r1_src_prepare +} + +python_install_all() { + distutils-r1_python_install_all + rm -r ${D}/usr/share +} + diff --git a/dev-python/certifi-python2/metadata.xml b/dev-python/certifi-python2/metadata.xml new file mode 100644 index 000000000000..2f3570e552c9 --- /dev/null +++ b/dev-python/certifi-python2/metadata.xml @@ -0,0 +1,13 @@ +<?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> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">certifi</remote-id> + </upstream> + <origin>calculatelinux-overlay</origin> +</pkgmetadata> diff --git a/dev-python/cffi-python2/cffi-python2-1.14.0-r3.ebuild b/dev-python/cffi-python2/cffi-python2-1.14.0-r3.ebuild index 4394fcd07e52..74e4795f6e0d 100644 --- a/dev-python/cffi-python2/cffi-python2-1.14.0-r3.ebuild +++ b/dev-python/cffi-python2/cffi-python2-1.14.0-r3.ebuild @@ -5,9 +5,9 @@ EAPI=7 # DO NOT ADD pypy to PYTHON_COMPAT # pypy bundles a modified version of cffi. Use python_gen_cond_dep instead. -DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 toolchain-funcs MY_PN=cffi MY_P=$MY_PN-$PV @@ -27,6 +27,7 @@ RDEPEND="${DEPEND} !dev-python/cffi[python_targets_python2_7] dev-python/pycparser-python2[${PYTHON_USEDEP}]" BDEPEND="${RDEPEND} + dev-python/setuptools-python2[${PYTHON_USEDEP}] virtual/pkgconfig" distutils_enable_sphinx doc/source diff --git a/dev-python/chardet/chardet-4.0.0.ebuild b/dev-python/chardet/chardet-4.0.0.ebuild index 6c3a2f95b761..f655fdafea4f 100644 --- a/dev-python/chardet/chardet-4.0.0.ebuild +++ b/dev-python/chardet/chardet-4.0.0.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/chardet/chardet/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" BDEPEND=" test? ( dev-python/hypothesis[${PYTHON_USEDEP}] ) diff --git a/dev-python/chardet/metadata.xml b/dev-python/chardet/metadata.xml index 7db341520a52..450e0d5d1738 100644 --- a/dev-python/chardet/metadata.xml +++ b/dev-python/chardet/metadata.xml @@ -5,6 +5,7 @@ <email>python@gentoo.org</email> <name>Python</name> </maintainer> + <stabilize-allarches/> <upstream> <remote-id type="pypi">chardet</remote-id> <remote-id type="github">chardet/chardet</remote-id> diff --git a/dev-python/cryptography-python2/cryptography-python2-2.9-r2.ebuild b/dev-python/cryptography-python2/cryptography-python2-2.9-r2.ebuild index e7e6a4759271..e15c3fd17812 100644 --- a/dev-python/cryptography-python2/cryptography-python2-2.9-r2.ebuild +++ b/dev-python/cryptography-python2/cryptography-python2-2.9-r2.ebuild @@ -6,6 +6,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) PYTHON_REQ_USE="threads(+)" +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 flag-o-matic MY_PN=cryptography MY_P=$MY_PN-$PV @@ -32,18 +33,14 @@ RDEPEND=" !libressl? ( >=dev-libs/openssl-1.0.2o-r6:0= ) libressl? ( >=dev-libs/libressl-2.8:0= ) idna? ( >=dev-python/idna-2.1[${PYTHON_USEDEP}] ) - dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools-python2[${PYTHON_USEDEP}] >=dev-python/six-python2-1.4.1[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/enum34[${PYTHON_USEDEP}] - dev-python/ipaddress[${PYTHON_USEDEP}] - ' -2) - $(python_gen_cond_dep ' - >=dev-python/cffi-python2-1.8:=[${PYTHON_USEDEP}] - ' 'python*') - " + dev-python/enum34[${PYTHON_USEDEP}] + dev-python/ipaddress[${PYTHON_USEDEP}] + >=dev-python/cffi-python2-1.8:=[${PYTHON_USEDEP}] +" DEPEND="${RDEPEND} - >=dev-python/setuptools-1.0[${PYTHON_USEDEP}]" + >=dev-python/setuptools-python2-1.0[${PYTHON_USEDEP}]" S="${WORKDIR}/${MY_PN}-${PV}" diff --git a/dev-python/cython-python2/Manifest b/dev-python/cython-python2/Manifest new file mode 100644 index 000000000000..a5e08409004e --- /dev/null +++ b/dev-python/cython-python2/Manifest @@ -0,0 +1 @@ +DIST cython-0.29.21.gh.tar.gz 2088511 BLAKE2B 7a4ddabb65a519d3c71454ac8417438a3a9c46b47489c18e7c7e82ffcb5d5f2f0c5246d0b364f8317d374c53f0c83844c73c7d2ef6b9f75f10707aaf2931ce41 SHA512 2c0c3e3fff07106eb98862f71cd5dec9ff29460cf9b9e4de74537ca5e033f7523989beb5fbdc14723beaf94a535976f75c803e791b87e017961d9694b8c37679 diff --git a/dev-python/cython-python2/cython-python2-0.29.21-r1.ebuild b/dev-python/cython-python2/cython-python2-0.29.21-r1.ebuild new file mode 100644 index 000000000000..655494d9f63a --- /dev/null +++ b/dev-python/cython-python2/cython-python2-0.29.21-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +PYTHON_REQ_USE="threads(+)" + +DISTUTILS_USE_SETUPTOOLS=manual +inherit distutils-r1 toolchain-funcs elisp-common + +MY_PN=cython +MY_P=$MY_PN-$PV + +DESCRIPTION="A Python to C compiler" +HOMEPAGE="https://cython.org https://pypi.org/project/Cython/ + https://github.com/cython/cython" +SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${MY_P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" +IUSE="emacs" +RESTRICT="test" + +RDEPEND=" + emacs? ( >=app-editors/emacs-23.1:* ) +" +BDEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] + ${RDEPEND}" + +PATCHES=( + "${FILESDIR}/cython-0.29.14-sphinx-update.patch" +) + +S="${WORKDIR}/${MY_PN}-${PV}" + +SITEFILE=50cython-gentoo.el + +python_compile() { + # Python gets confused when it is in sys.path before build. + local -x PYTHONPATH= + + distutils-r1_python_compile +} + +python_compile_all() { + use emacs && elisp-compile Tools/cython-mode.el +} + +python_test() { + tc-export CC + # https://github.com/cython/cython/issues/1911 + local -x CFLAGS="${CFLAGS} -fno-strict-overflow" + "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) + distutils-r1_python_install_all + + if use emacs; then + elisp-install ${PN} Tools/cython-mode.* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + rm -r ${D}/usr/share + rm -r ${D}/usr/bin +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-python/cython-python2/files/50cython-gentoo.el b/dev-python/cython-python2/files/50cython-gentoo.el new file mode 100644 index 000000000000..e6dcc6a6d7fb --- /dev/null +++ b/dev-python/cython-python2/files/50cython-gentoo.el @@ -0,0 +1,11 @@ +;;; site-lisp configuration for cython-mode + +(add-to-list 'load-path "@SITELISP@") + +(autoload 'cython-mode "cython-mode" "Major mode for editing Cython files" t) +;;;###autoload +(add-to-list 'auto-mode-alist '("\\.pyx\\'" . cython-mode)) +;;;###autoload +(add-to-list 'auto-mode-alist '("\\.pxd\\'" . cython-mode)) +;;;###autoload +(add-to-list 'auto-mode-alist '("\\.pxi\\'" . cython-mode)) diff --git a/dev-python/cython-python2/files/cython-0.29.14-sphinx-update.patch b/dev-python/cython-python2/files/cython-0.29.14-sphinx-update.patch new file mode 100644 index 000000000000..3f426754f6f1 --- /dev/null +++ b/dev-python/cython-python2/files/cython-0.29.14-sphinx-update.patch @@ -0,0 +1,13 @@ +diff --git a/docs/conf.py b/docs/conf.py +index 10662e28c..a84e0b928 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -41,7 +41,7 @@ highlight_language = 'cython' + extensions = [ + 'ipython_console_highlighting', + 'cython_highlighting', +- 'sphinx.ext.pngmath', ++ 'sphinx.ext.imgmath', + 'sphinx.ext.todo', + 'sphinx.ext.intersphinx', + 'sphinx.ext.autodoc' diff --git a/dev-python/cython-python2/files/cython-0.29.21-spawn-multiprocessing.patch b/dev-python/cython-python2/files/cython-0.29.21-spawn-multiprocessing.patch new file mode 100644 index 000000000000..0aa7212b9a34 --- /dev/null +++ b/dev-python/cython-python2/files/cython-0.29.21-spawn-multiprocessing.patch @@ -0,0 +1,29 @@ +Needed to prevent a loop while calling cythonize on macOS - or any platform +defaulting to the 'spawn' method, as Python 3.8 does on Darwin. + +https://github.com/cython/cython/pull/3263 +From 15ae78bb74a856836dd64828326f4f0812d36520 Mon Sep 17 00:00:00 2001 +From: Marcel Bargull <marcel.bargull@udo.edu> +Date: Fri, 6 Dec 2019 18:21:19 +0100 +Subject: [PATCH] Disable parallel cythonization for "spawn" start method. + +--- + Cython/Build/Dependencies.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py +index 593e00a6ef..f9b9c15bc5 100644 +--- a/Cython/Build/Dependencies.py ++++ b/Cython/Build/Dependencies.py +@@ -1073,6 +1073,11 @@ def copy_to_build_dir(filepath, root=os.getcwd()): + + if N <= 1: + nthreads = 0 ++ if nthreads: ++ import multiprocessing ++ if multiprocessing.get_start_method() == 'spawn': ++ print('Disabling parallel cythonization for "spawn" process start method.') ++ nthreads = 0 + if nthreads: + import multiprocessing + pool = multiprocessing.Pool( diff --git a/dev-python/cython-python2/metadata.xml b/dev-python/cython-python2/metadata.xml new file mode 100644 index 000000000000..a729c7c60421 --- /dev/null +++ b/dev-python/cython-python2/metadata.xml @@ -0,0 +1,18 @@ +<?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"> + Cython is a language that makes writing C extensions for the Python + language as easy as Python itself. It's based on Pyrex, but supports + more cutting edge functionality and optimizations. + </longdescription> + <upstream> + <remote-id type="pypi">Cython</remote-id> + <remote-id type="github">cython/cython</remote-id> + </upstream> + <origin>calculatelinux-overlay</origin> +</pkgmetadata> diff --git a/dev-python/dbus-python2/dbus-python2-1.2.16.ebuild b/dev-python/dbus-python2/dbus-python2-1.2.16-r1.ebuild index 9ad8a19066e9..7b31780c9c38 100644 --- a/dev-python/dbus-python2/dbus-python2-1.2.16.ebuild +++ b/dev-python/dbus-python2/dbus-python2-1.2.16-r1.ebuild @@ -6,6 +6,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) PYTHON_REQ_USE="threads(+)" +DISTUTILS_USE_SETUPTOOLS=manual inherit autotools python-r1 MY_PN=dbus-python MY_P=$MY_PN-$PV @@ -30,6 +31,7 @@ RDEPEND="${PYTHON_DEPS} " DEPEND="${RDEPEND}" BDEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] virtual/pkgconfig " S="${WORKDIR}/${MY_PN}-${PV}" diff --git a/dev-python/duecredit/Manifest b/dev-python/duecredit/Manifest index 94832067ac07..178d06d501bb 100644 --- a/dev-python/duecredit/Manifest +++ b/dev-python/duecredit/Manifest @@ -1 +1,2 @@ DIST duecredit-0.7.0.tar.gz 66131 BLAKE2B 3f32c1a4e62d4650d6914f4e124907170a50d63900fbb009b870b3f9c9eace27b76500e655cb74caea0ce22cfadd62f81a84a438c1cb82092502661f1d4e0c03 SHA512 a32ead3e0710323d5ab3283a3b2d1cb03e03bf925f78fdb3b5182079851127b8b674492bd402667e57ec113d1ec05f9c3490642f8d0fba6a8f3ddfd706a052c1 +DIST duecredit-0.8.0.tar.gz 68211 BLAKE2B 4c25bf2284d8be5f92c3f7589b6a787c97618476f60cf4a9dc7a063c2f85208b8d6da84630d63fdc7a3920cf6639940184b6e516eb76a692be72b91bd484001b SHA512 1924c626003f0a97652ff24c29822b872e66ae8cbaeaf93877319c76bd7c2b2a5a85ba659a9485460d56c41bc25ae0e14230e0a30bd028402cb7d814b4aeeea3 diff --git a/dev-python/duecredit/duecredit-0.8.0.ebuild b/dev-python/duecredit/duecredit-0.8.0.ebuild new file mode 100644 index 000000000000..6da28b358a8e --- /dev/null +++ b/dev-python/duecredit/duecredit-0.8.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Publications (and donations) tracer" +HOMEPAGE="https://github.com/duecredit/duecredit" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/citeproc-py-0.4[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND="test? ( dev-python/citeproc-py[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest diff --git a/dev-python/enum34/enum34-1.1.6-r1.ebuild b/dev-python/enum34/enum34-1.1.6-r2.ebuild index c9d21763f50f..0a801a3f9bb1 100644 --- a/dev-python/enum34/enum34-1.1.6-r1.ebuild +++ b/dev-python/enum34/enum34-1.1.6-r2.ebuild @@ -5,6 +5,7 @@ EAPI=5 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 DESCRIPTION="Python 3.4 Enum backported" @@ -16,7 +17,7 @@ SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="doc" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools-python2[${PYTHON_USEDEP}]" python_test() { "${PYTHON}" enum/test.py || die "Tests failed under ${EPYTHON}" diff --git a/dev-python/faulthandler-python2/faulthandler-python2-3.0.ebuild b/dev-python/faulthandler-python2/faulthandler-python2-3.0-r1.ebuild index 4af1e9e8142e..93cbe124c964 100644 --- a/dev-python/faulthandler-python2/faulthandler-python2-3.0.ebuild +++ b/dev-python/faulthandler-python2/faulthandler-python2-3.0-r1.ebuild @@ -5,6 +5,7 @@ EAPI=6 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=faulthandler @@ -19,7 +20,7 @@ KEYWORDS="amd64 ppc ppc64 x86" IUSE="" RESTRICT="test" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools-python2[${PYTHON_USEDEP}]" RDEPEND=" !dev-python/${MY_PN}[python_targets_python2_7] " diff --git a/dev-python/gsd/Manifest b/dev-python/gsd/Manifest index f12001a1319a..77c49e76468e 100644 --- a/dev-python/gsd/Manifest +++ b/dev-python/gsd/Manifest @@ -1 +1,2 @@ DIST gsd-v1.5.3.tar.gz 240114 BLAKE2B 076d888f03350fba2388c907787354e878a1536c7d85c759eb3513102ee2abffe2c9313a6e9e208726d66d6324dac02ae70d8872342f9bcb162ad13d9a23dbc3 SHA512 893db74dc481da47d6c51ea0d0d9faefbe164edfaeb5a2ed73e25acbd9dc42c3cf28cbc0d9257c6bf0cc0e9911ab85cfa72997886350c0e7c125d30636ec432a +DIST gsd-v2.4.0.tar.gz 112743 BLAKE2B d35a1108cb12f58f8b6cc980c156ae2dceb0c0d2c4d41d35ae29bae1bc342654e148616e64a6dfcb07bdbb1156299d8d05914d028dfb877979c8a17f299feb06 SHA512 47e136018d813f48c5d78cc31786a5bb33992f488a4d907b450a570bb90f9ffeb233e82f9686d09aeb3541fca1518294d5bf63c6a896635f30ad369350012458 diff --git a/dev-python/gsd/gsd-2.4.0.ebuild b/dev-python/gsd/gsd-2.4.0.ebuild new file mode 100644 index 000000000000..246b162cb351 --- /dev/null +++ b/dev-python/gsd/gsd-2.4.0.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="GSD - file format specification and a library to read and write it" +HOMEPAGE="https://github.com/glotzerlab/gsd" +SRC_URI="https://github.com/glotzerlab/gsd/releases/download/v${PV}/${PN}-v${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}]" +BDEPEND=" + ${RDEPEND}" + +S="${WORKDIR}/${PN}-v${PV}" diff --git a/dev-python/ipaddress/ipaddress-1.0.23.ebuild b/dev-python/ipaddress/ipaddress-1.0.23-r1.ebuild index 6ccbd60cd8c3..24d9bcaf56ed 100644 --- a/dev-python/ipaddress/ipaddress-1.0.23.ebuild +++ b/dev-python/ipaddress/ipaddress-1.0.23-r1.ebuild @@ -5,6 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 DESCRIPTION="IPv4/IPv6 manipulation library, backport of the ipaddress module" @@ -16,7 +17,7 @@ LICENSE="PSF-2" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="" -BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +BDEPEND="dev-python/setuptools-python2[${PYTHON_USEDEP}]" python_prepare_all() { sed -i 's:unittest.main():unittest.main(verbosity=2):' \ diff --git a/dev-python/lxml-python2/lxml-python2-4.5.2-r1.ebuild b/dev-python/lxml-python2/lxml-python2-4.5.2-r2.ebuild index 64939805aa25..1cb4a27ea0df 100644 --- a/dev-python/lxml-python2/lxml-python2-4.5.2-r1.ebuild +++ b/dev-python/lxml-python2/lxml-python2-4.5.2-r2.ebuild @@ -5,6 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 optfeature toolchain-funcs MY_PN=lxml MY_P=$MY_PN-$PV @@ -28,8 +29,8 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND=" virtual/pkgconfig - dev-python/cython[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/cython-python2[${PYTHON_USEDEP}] + dev-python/setuptools-python2[${PYTHON_USEDEP}] " DISTUTILS_IN_SOURCE_BUILD=1 diff --git a/dev-python/m2crypto-python2/m2crypto-python2-0.36.0-r1.ebuild b/dev-python/m2crypto-python2/m2crypto-python2-0.36.0-r2.ebuild index 59098fd9a636..cb3acfb4e594 100644 --- a/dev-python/m2crypto-python2/m2crypto-python2-0.36.0-r1.ebuild +++ b/dev-python/m2crypto-python2/m2crypto-python2-0.36.0-r2.ebuild @@ -6,6 +6,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) PYTHON_REQ_USE="threads(+)" +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 toolchain-funcs MY_PN="M2Crypto" @@ -28,7 +29,7 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND=" >=dev-lang/swig-2.0.9 - dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools-python2[${PYTHON_USEDEP}] " S="${WORKDIR}/${MY_PN}-${PV}" diff --git a/dev-python/mmtf-python/mmtf-python-1.1.2-r1.ebuild b/dev-python/mmtf-python/mmtf-python-1.1.2-r1.ebuild index 7386bb111d0b..4ad67982a696 100644 --- a/dev-python/mmtf-python/mmtf-python-1.1.2-r1.ebuild +++ b/dev-python/mmtf-python/mmtf-python-1.1.2-r1.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 diff --git a/dev-python/nodeenv/nodeenv-1.3.5.ebuild b/dev-python/nodeenv/nodeenv-1.3.5-r1.ebuild index b3d8a0af24d9..2d04a2131745 100644 --- a/dev-python/nodeenv/nodeenv-1.3.5.ebuild +++ b/dev-python/nodeenv/nodeenv-1.3.5-r1.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python{2_7,3_{6,7,8,9,10}} pypy{,3} ) +PYTHON_COMPAT=( python{3_7,3_8,3_9} pypy ) inherit distutils-r1 diff --git a/dev-python/numpy-python2/metadata.xml b/dev-python/numpy-python2/metadata.xml index 532f79c8ceb8..3666d238bd90 100644 --- a/dev-python/numpy-python2/metadata.xml +++ b/dev-python/numpy-python2/metadata.xml @@ -9,5 +9,5 @@ <email>python@gentoo.org</email> <name>Python</name> </maintainer> - <origin>gentoo-staging</origin> + <origin>calculatelinux-overlay</origin> </pkgmetadata> diff --git a/dev-python/numpy-python2/numpy-python2-1.16.6.ebuild b/dev-python/numpy-python2/numpy-python2-1.16.6-r1.ebuild index 622499d1269b..007248640a85 100644 --- a/dev-python/numpy-python2/numpy-python2-1.16.6.ebuild +++ b/dev-python/numpy-python2/numpy-python2-1.16.6-r1.ebuild @@ -8,6 +8,7 @@ PYTHON_REQ_USE="threads(+)" FORTRAN_NEEDED=lapack +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs MY_PN="numpy" @@ -39,7 +40,7 @@ DEPEND="${RDEPEND}" BDEPEND=" app-arch/unzip - dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools-python2 lapack? ( virtual/pkgconfig ) " diff --git a/dev-python/pexpect-python2/pexpect-python2-4.8.0.ebuild b/dev-python/pexpect-python2/pexpect-python2-4.8.0-r1.ebuild index 9e98059f6b07..ece6d40fd584 100644 --- a/dev-python/pexpect-python2/pexpect-python2-4.8.0.ebuild +++ b/dev-python/pexpect-python2/pexpect-python2-4.8.0-r1.ebuild @@ -6,6 +6,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) PYTHON_REQ_USE="threads(+)" +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=pexpect @@ -24,7 +25,9 @@ RESTRICT="test" RDEPEND=" !dev-python/pexpect[python_targets_python2_7] >=dev-python/ptyprocess-python2-0.5[${PYTHON_USEDEP}]" -DEPEND="" +DEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] +" S="${WORKDIR}/${MY_PN}-${PV}" python_install() { diff --git a/dev-python/phonenumbers/Manifest b/dev-python/phonenumbers/Manifest index 90561be67cc7..36ebccc4a7a7 100644 --- a/dev-python/phonenumbers/Manifest +++ b/dev-python/phonenumbers/Manifest @@ -1,2 +1,3 @@ DIST phonenumbers-8.12.14.tar.gz 2256560 BLAKE2B 60fdcb14143d4ffb625d1c873a1e262053bb0bc3df6f2576212329726c4578367b817f1166dfbc561669e4e8486a411487627de479e66775968c05574a8beff6 SHA512 fc155095a00d5e776301dde134043dcc60dfdc6812399e92e92f319c568f7e06f3b294833dc385614b14c87cac15aafb76e7c27116445c7d8fc0ec0740314089 DIST phonenumbers-8.12.15.tar.gz 2256651 BLAKE2B b3a583cb64ea1e4fc278f40cb78c7ad9aa66f1655e4483219f8d1e3384628b9b5cd672c584953c0233743d436fbc6723484d63724e466badf0b3fecf57791b87 SHA512 56c52ab736ce807609c79d5cc3d4e97cb3c5a3e59689cf3112c21ee672c04f095f1727fc37f4e3b1573dbcd4c9ccb00b3a5773c2c383264996e1761f46acfd0c +DIST phonenumbers-8.12.16.tar.gz 2257000 BLAKE2B 33e513840f1147af9169ae4b01527b07597cd8fd3be2e299c77e79eed75b84c7e8bbe036e5961ddd93efcf4a8bab6e6a5da348800becac66d078947a2c98accb SHA512 4e2162a6fa02170241887f4876ee811d431b0bccb03d9be305478ae48f21f27643da1be238d68f52b50eb72e87f8de4961769500f026cd4bfb2ac291534d1e74 diff --git a/dev-python/phonenumbers/phonenumbers-8.12.16.ebuild b/dev-python/phonenumbers/phonenumbers-8.12.16.ebuild new file mode 100644 index 000000000000..ac8788fcaacf --- /dev/null +++ b/dev-python/phonenumbers/phonenumbers-8.12.16.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Python port of Google's libphonenumber" +HOMEPAGE="https://github.com/daviddrysdale/python-phonenumbers" +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DOCS=(README.md) + +distutils_enable_tests setup.py diff --git a/dev-python/pikepdf/Manifest b/dev-python/pikepdf/Manifest index 9f84637789b4..2e7ac00a789f 100644 --- a/dev-python/pikepdf/Manifest +++ b/dev-python/pikepdf/Manifest @@ -1,2 +1,3 @@ DIST pikepdf-1.18.0.tar.gz 2351789 BLAKE2B b33b69f57fcd5293814ac880376627b7184ca632e09f668fd274eae6b3640d97699681597470c17abe00ec334ec894a073cc1a1eff91ffa7df572ef78542b429 SHA512 9a04fe6ce145a6f28a180261ac004fc0ce3c525c4e9e7c5eb4bb7dbf8aaa6d3e6f726cec5d20033a5aaa60b793666df52c20f13c8ee7c0c3266fb8e557d69c18 DIST pikepdf-2.2.0.tar.gz 2363761 BLAKE2B d1a8873a2c41e280dc2880609424742f4454ee226ee30469df067ddf0f5ee98ba6ef2965df75e95c2576e3813bdea7cb6bebfc7a1a7d05696b9da8ec67ef981a SHA512 e80874ece09ce6381079f705ab031b121917485d0968578aeb07a83b70a14bb46d549498357acc4df62b51c33fd75a87f65b74ef64464dcaebba3ff84aaa1843 +DIST pikepdf-2.3.0.tar.gz 2366792 BLAKE2B 3e5d2f460702bbce8ddc22abfb67867b40f75bb59cd30966db9865c96240ef9ad990f295abcd8f5f325a9954500e587afab647da7de3909960859fa3825c4526 SHA512 056bd2e73a7915b42ea170061932e445fff614abd662d935c8735c5fb04fd95e196495bc11dcb3781270c966d94cb93cd972500e6ea4d3ea7333456be3b7dbb6 diff --git a/dev-python/pikepdf/pikepdf-2.3.0.ebuild b/dev-python/pikepdf/pikepdf-2.3.0.ebuild new file mode 100644 index 000000000000..efcf4bd2e7c3 --- /dev/null +++ b/dev-python/pikepdf/pikepdf-2.3.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Python library to work with pdf files based on qpdf" +HOMEPAGE="https://pypi.org/project/pikepdf/ https://github.com/pikepdf/pikepdf" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="app-text/qpdf:0= + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pybind11[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + >=dev-python/setuptools-50[${PYTHON_USEDEP}] + >=dev-python/wheel-0.35[${PYTHON_USEDEP}] + >=dev-python/pybind11-2.6.0[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-4.1[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}] + test? ( >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}] + >=dev-python/hypothesis-5[${PYTHON_USEDEP}] + <dev-python/hypothesis-6.0[${PYTHON_USEDEP}] + >=dev-python/pillow-5.0.0[${PYTHON_USEDEP}] + >=dev-python/pytest-6[${PYTHON_USEDEP}] + <dev-python/pytest-7[${PYTHON_USEDEP}] + >=dev-python/pytest-cov-2.10.1[${PYTHON_USEDEP}] + <dev-python/pytest-cov-3[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-1.28[${PYTHON_USEDEP}] + <dev-python/pytest-xdist-2.0[${PYTHON_USEDEP}] + >=dev-python/pytest-timeout-1.4.2[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] + >=dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}"/${PN}-1.8.3-test.patch ) + +python_test() { + pytest +} + +# When ipython and matplotlib will get python3_8 support, we'll be able to add +# +#IUSE="doc" +#DEPEND="doc? ( dev-python/ipython +# dev-python/matplotlib +# dev-python/sphinx-1.4 +# dev-python/sphinx_rtd_theme )" +#python_compile_all() { +# use doc && emake -C docs html +#} +#python_install_all() { +# use doc && local HTML_DOCS=( docs/_build/html/. ) +# distutils-r1_python_install_all +#} diff --git a/dev-python/ply-python2/ply-python2-3.11.ebuild b/dev-python/ply-python2/ply-python2-3.11-r1.ebuild index 114549f9d559..5d940c638c4d 100644 --- a/dev-python/ply-python2/ply-python2-3.11.ebuild +++ b/dev-python/ply-python2/ply-python2-3.11-r1.ebuild @@ -5,6 +5,7 @@ EAPI=6 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=ply @@ -21,6 +22,7 @@ RESTRICT="test" PATCHES=( "${FILESDIR}/3.6-picklefile-IOError.patch" ) RDEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] !dev-python/ply[python_targets_python2_7] " diff --git a/dev-python/ptyprocess-python2/ptyprocess-python2-0.6.0.ebuild b/dev-python/ptyprocess-python2/ptyprocess-python2-0.6.0-r1.ebuild index ee670c4b4c99..917c857c05ef 100644 --- a/dev-python/ptyprocess-python2/ptyprocess-python2-0.6.0.ebuild +++ b/dev-python/ptyprocess-python2/ptyprocess-python2-0.6.0-r1.ebuild @@ -20,6 +20,7 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 s RESTRICT="test" RDEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] !dev-python/ptyprocess[python_targets_python2_7] " diff --git a/dev-python/py-smbpasswd/py-smbpasswd-1.0.2.ebuild b/dev-python/py-smbpasswd/py-smbpasswd-1.0.2-r1.ebuild index d4425c4add7b..3282ad683424 100644 --- a/dev-python/py-smbpasswd/py-smbpasswd-1.0.2.ebuild +++ b/dev-python/py-smbpasswd/py-smbpasswd-1.0.2-r1.ebuild @@ -5,6 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_P="${PN#py-}-${PV}" @@ -17,4 +18,8 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ia64 ppc sparc x86" +DEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] +" + S="${WORKDIR}/${MY_P}" diff --git a/dev-python/pyasn1-modules-python2/pyasn1-modules-python2-0.2.8.ebuild b/dev-python/pyasn1-modules-python2/pyasn1-modules-python2-0.2.8-r1.ebuild index 5eb161d6f70f..ecb1e55cffc7 100644 --- a/dev-python/pyasn1-modules-python2/pyasn1-modules-python2-0.2.8.ebuild +++ b/dev-python/pyasn1-modules-python2/pyasn1-modules-python2-0.2.8-r1.ebuild @@ -5,6 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=pyasn1-modules @@ -21,7 +22,9 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sp RDEPEND=" !dev-python/pyasn1-modules[python_targets_python2_7] >=dev-python/pyasn1-python2-0.4.6" -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + dev-python/setuptools-python2[${PYTHON_USEDEP}] +" RESTRICT="test" diff --git a/dev-python/pyasn1-python2/pyasn1-python2-0.4.8.ebuild b/dev-python/pyasn1-python2/pyasn1-python2-0.4.8-r1.ebuild index 759211778fe4..14c292e99fa0 100644 --- a/dev-python/pyasn1-python2/pyasn1-python2-0.4.8.ebuild +++ b/dev-python/pyasn1-python2/pyasn1-python2-0.4.8-r1.ebuild @@ -5,6 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=pyasn1 MY_P=$MY_PN-$PV @@ -22,6 +23,7 @@ RESTRICT="test" S="${WORKDIR}/${MY_PN}-${PV}" RDEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] !dev-python/pyasn1[python_targets_python2_7] " diff --git a/dev-python/pycairo-python2/pycairo-python2-1.18.2.ebuild b/dev-python/pycairo-python2/pycairo-python2-1.18.2-r1.ebuild index bd2a1eafa503..7dad17d7d500 100644 --- a/dev-python/pycairo-python2/pycairo-python2-1.18.2.ebuild +++ b/dev-python/pycairo-python2/pycairo-python2-1.18.2-r1.ebuild @@ -6,6 +6,7 @@ EAPI="7" PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) PYTHON_REQ_USE="threads(+)" +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=pycairo @@ -22,6 +23,7 @@ RESTRICT="test" RDEPEND=" !dev-python/${MY_PN}[python_targets_python2_7] + dev-python/setuptools-python2[${PYTHON_USEDEP}] >=x11-libs/cairo-1.13.1[svg] " DEPEND="${RDEPEND}" diff --git a/dev-python/pycparser-python2/pycparser-python2-2.20.ebuild b/dev-python/pycparser-python2/pycparser-python2-2.20-r1.ebuild index bec5f8b28c8e..f4d8bcc04708 100644 --- a/dev-python/pycparser-python2/pycparser-python2-2.20.ebuild +++ b/dev-python/pycparser-python2/pycparser-python2-2.20-r1.ebuild @@ -5,6 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=pycparser @@ -23,7 +24,7 @@ RDEPEND=" !dev-python/${MY_PN}[python_targets_python2_7] dev-python/ply-python2:=[${PYTHON_USEDEP}]" BDEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" + dev-python/setuptools-python2[${PYTHON_USEDEP}]" python_prepare_all() { # remove the original files to guarantee their regen diff --git a/dev-python/pyinotify-python2/pyinotify-python2-0.9.6.ebuild b/dev-python/pyinotify-python2/pyinotify-python2-0.9.6-r1.ebuild index 8fadb25672ff..a4074b4383c4 100644 --- a/dev-python/pyinotify-python2/pyinotify-python2-0.9.6.ebuild +++ b/dev-python/pyinotify-python2/pyinotify-python2-0.9.6-r1.ebuild @@ -6,6 +6,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) PYTHON_REQ_USE="threads(+)" +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=pyinotify @@ -26,6 +27,7 @@ RESTRICT="test" RDEPEND=" !dev-python/${MY_PN}[python_targets_python2_7] + dev-python/setuptools-python2[${PYTHON_USEDEP}] " S="${WORKDIR}/${MY_PN}-${PV}" diff --git a/dev-python/pymilter-python2/pymilter-python2-0.9.3.ebuild b/dev-python/pymilter-python2/pymilter-python2-0.9.3-r1.ebuild index e6aeb3f065ed..3a9b932d205c 100644 --- a/dev-python/pymilter-python2/pymilter-python2-0.9.3.ebuild +++ b/dev-python/pymilter-python2/pymilter-python2-0.9.3-r1.ebuild @@ -9,6 +9,7 @@ PYTHON_REQ_USE="threads(+)" MY_PN=pymilter MY_P=$MY_PN-$PV +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 SRC_URI="http://downloads.sourceforge.net/project/${MY_PN}/${MY_PN}/${MY_P}/${MY_P}.tar.gz" @@ -22,7 +23,9 @@ IUSE="" DEPEND=" !dev-python/pymilter[python_targets_python2_7] mail-filter/libmilter" -RDEPEND="${DEPEND}" +RDEPEND="${DEPEND} + dev-python/setuptools-python2[${PYTHON_USEDEP}] +" RESTRICT="test" diff --git a/dev-python/pyopengl-python2/pyopengl-python2-3.1.0.ebuild b/dev-python/pyopengl-python2/pyopengl-python2-3.1.0-r2.ebuild index 09a4dd7cfb92..b2e29c2b31ce 100644 --- a/dev-python/pyopengl-python2/pyopengl-python2-3.1.0.ebuild +++ b/dev-python/pyopengl-python2/pyopengl-python2-3.1.0-r2.ebuild @@ -4,6 +4,7 @@ EAPI=5 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 ORIG_PN=pyopengl @@ -28,6 +29,6 @@ RDEPEND=" x11-libs/libXi x11-libs/libXmu" DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" + dev-python/setuptools-python2[${PYTHON_USEDEP}]" S="${WORKDIR}/${MY_P}" diff --git a/dev-python/pyopenssl-python2/pyopenssl-python2-19.1.0-r1.ebuild b/dev-python/pyopenssl-python2/pyopenssl-python2-19.1.0-r2.ebuild index e97cae5653cb..0cb0836a7724 100644 --- a/dev-python/pyopenssl-python2/pyopenssl-python2-19.1.0-r1.ebuild +++ b/dev-python/pyopenssl-python2/pyopenssl-python2-19.1.0-r2.ebuild @@ -6,6 +6,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) PYTHON_REQ_USE="threads(+)" +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 flag-o-matic MY_PN=pyOpenSSL @@ -28,6 +29,7 @@ RESTRICT="test" RDEPEND=" !dev-python/pyopenssl[python_targets_python2_7] >=dev-python/six-python2-1.5.2[${PYTHON_USEDEP}] + dev-python/setuptools-python2[${PYTHON_USEDEP}] dev-python/cryptography-python2" DEPEND="${RDEPEND}" diff --git a/dev-python/pyspf/pyspf-2.0.14.ebuild b/dev-python/pyspf/pyspf-2.0.14.ebuild index 3c0c011e321d..5e9424f9e6b1 100644 --- a/dev-python/pyspf/pyspf-2.0.14.ebuild +++ b/dev-python/pyspf/pyspf-2.0.14.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 @@ -17,19 +17,26 @@ LICENSE="PSF-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="ipv6 test" +REQUIRED_USE="test? ( ipv6 )" RESTRICT="!test? ( test )" -RDEPEND="dev-python/authres[${PYTHON_USEDEP}] - || ( dev-python/pydns:3[${PYTHON_USEDEP}] - dev-python/dnspython[${PYTHON_USEDEP}] )" - -DEPEND="test? ( ${RDEPEND} - dev-python/pyyaml[${PYTHON_USEDEP}] )" +RDEPEND=" + dev-python/authres[${PYTHON_USEDEP}] + || ( + dev-python/pydns:3[${PYTHON_USEDEP}] + dev-python/dnspython[${PYTHON_USEDEP}] + ) +" -REQUIRED_USE="test? ( ipv6 )" +DEPEND=" + test? ( + ${RDEPEND} + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" python_test() { - pushd test &> /dev/null + pushd test &> /dev/null || die "${PYTHON}" testspf.py || die - popd &> /dev/null + popd &> /dev/null || die } diff --git a/dev-python/python2-ldap/python2-ldap-3.2.0.ebuild b/dev-python/python2-ldap/python2-ldap-3.2.0-r1.ebuild index 3f2035ecb4c2..c9ece8f23309 100644 --- a/dev-python/python2-ldap/python2-ldap-3.2.0.ebuild +++ b/dev-python/python2-ldap/python2-ldap-3.2.0-r1.ebuild @@ -4,6 +4,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=python-ldap @@ -37,6 +38,7 @@ RDEPEND=" # We do not link against cyrus-sasl but we use some # of its headers during the build. BDEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] >net-nds/openldap-2.4.11:=[sasl?,ssl?] sasl? ( >=dev-libs/cyrus-sasl-2.1 ) " diff --git a/dev-python/pytz-python2/pytz-python2-2020.1.ebuild b/dev-python/pytz-python2/pytz-python2-2020.1-r1.ebuild index 19827940fbb1..2ef835328db8 100644 --- a/dev-python/pytz-python2/pytz-python2-2020.1.ebuild +++ b/dev-python/pytz-python2/pytz-python2-2020.1-r1.ebuild @@ -6,6 +6,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) PYTHON_REQ_USE="threads(+)" +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=pytz MY_P=$MY_PN-$PV @@ -23,6 +24,7 @@ RDEPEND=" !dev-python/pytz[python_targets_python2_7] || ( >=sys-libs/timezone-data-2017a sys-libs/glibc[vanilla] )" DEPEND="${RDEPEND} + dev-python/setuptools-python2[${PYTHON_USEDEP}] app-arch/unzip" PATCHES=( diff --git a/dev-python/pyxml/pyxml-0.8.4-r3.ebuild b/dev-python/pyxml/pyxml-0.8.4-r4.ebuild index be9b84f0f2f4..85d95dce22a6 100644 --- a/dev-python/pyxml/pyxml-0.8.4-r3.ebuild +++ b/dev-python/pyxml/pyxml-0.8.4-r4.ebuild @@ -4,6 +4,7 @@ EAPI=5 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 eutils MY_P=${P/pyxml/PyXML} @@ -20,7 +21,9 @@ SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="doc examples" -DEPEND=">=dev-libs/expat-1.95.6" +DEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] + >=dev-libs/expat-1.95.6" RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_P}" diff --git a/dev-python/setuptools-python2/Manifest b/dev-python/setuptools-python2/Manifest new file mode 100644 index 000000000000..fc93866d99a1 --- /dev/null +++ b/dev-python/setuptools-python2/Manifest @@ -0,0 +1 @@ +DIST setuptools-46.4.0.zip 865912 BLAKE2B 452d36132f5648c79c7e1616a93ff6a39ab2f64b2864ee397b4f57e7f72c47d418ff274f5decd35b0591b09800ad2a7cbd71c283550bd0e60a4d85744a57d4ec SHA512 31e58fd1d682089a45d23aa07c3c2c4c952ca016fa4c3416b2cba979d8b57369f80baef98ce857912e506e87d6cb456497a1ce1c75a0cdf1ee25d4e753b58726 diff --git a/dev-python/setuptools/setuptools-46.4.0-r3.ebuild b/dev-python/setuptools-python2/setuptools-python2-46.4.0-r3.ebuild index d0223688cc16..045a730f06ad 100644 --- a/dev-python/setuptools/setuptools-46.4.0-r3.ebuild +++ b/dev-python/setuptools-python2/setuptools-python2-46.4.0-r3.ebuild @@ -4,41 +4,37 @@ EAPI=7 # Set to 'manual' to avoid triggering install QA check DISTUTILS_USE_SETUPTOOLS=manual -PYTHON_COMPAT=( python{2_7,3_{6,7,8,9,10}} pypy{,3} ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) PYTHON_REQ_USE="xml(+)" inherit distutils-r1 +MY_PN=setuptools +MY_P=$MY_PN-$PV + DESCRIPTION="Collection of extensions to Distutils" HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="test" -RESTRICT="!test? ( test )" +RESTRICT="test" + +RDEPEND=" + !dev-python/${MY_PN}[python_targets_python2_7] +" BDEPEND=" app-arch/unzip - test? ( - $(python_gen_cond_dep ' - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pip[${PYTHON_USEDEP}] - >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}] - dev-python/pytest-fixture-config[${PYTHON_USEDEP}] - dev-python/pytest-virtualenv[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - ' -3) - ) " # installing plugins apparently breaks stuff at runtime, so let's pull # it early PDEPEND=" - >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/setuptools_scm[${PYTHON_USEDEP}] - ' -3)" + dev-python/certifi-python2 +" + +S="${WORKDIR}/${MY_PN}-${PV}" # Force in-source build because build system modifies sources. DISTUTILS_IN_SOURCE_BUILD=1 @@ -83,3 +79,8 @@ python_install() { export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 distutils-r1_python_install } + +python_install_all() { + rm -r ${D}/usr/share/doc + rm -r ${D}/usr/bin +} diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest index fc93866d99a1..81395ce5c3bf 100644 --- a/dev-python/setuptools/Manifest +++ b/dev-python/setuptools/Manifest @@ -1 +1,5 @@ -DIST setuptools-46.4.0.zip 865912 BLAKE2B 452d36132f5648c79c7e1616a93ff6a39ab2f64b2864ee397b4f57e7f72c47d418ff274f5decd35b0591b09800ad2a7cbd71c283550bd0e60a4d85744a57d4ec SHA512 31e58fd1d682089a45d23aa07c3c2c4c952ca016fa4c3416b2cba979d8b57369f80baef98ce857912e506e87d6cb456497a1ce1c75a0cdf1ee25d4e753b58726 +DIST setuptools-50.3.0.zip 2169216 BLAKE2B 029ea0159de270af0078a4661c696b93681b33dcc475640c7626f5a40bf1bb4759e5915948696c03b76dca10bdc4e790e2e9ef9628f41abca9a6aa48adcb72f6 SHA512 f67a2b7d639e03bf8b3815133e128902a559baf689afdd5893844ddc7c83505d727a6bb30ced1f78c4d2719dd405d2f4c527576bfa14dd9cb50c8ec4a479683e +DIST setuptools-51.0.0.zip 2059134 BLAKE2B 449e87e413490181136ffa80a109e68b086fd0b1b56b2391e8cc612fb4c9cd4bb89acf05b464a5fa86c3984d3f22bc103dc9a21a2948598b7a17f770c4037008 SHA512 ec8c8a43ef176b5a4029f42c900690c1b9cb304efeb2cf8d36f3f2cb4343af4c1b1770f83ffb0e80ef237f58e6eeb233a97d6b3b8c6c6a2557bc4f14ccff9e90 +DIST setuptools-51.1.0.tar.gz 2050951 BLAKE2B 58890bf458ffab84f93e68393a092c2b2eeaf28e9e443c9a3cf50fb4bbb371bfe28032d08c5ce92fc0b28ad3f9b718f02542f948560b2a8a57af1ada9e77a949 SHA512 914f0d7692f519b658a55e1c7d96b93a45f34c1682c564c6232cd3771db15c91cfee7118ed61f1ae4655a1afe34c9a9c37f293eb6408eeeeeae9eaa6f3760324 +DIST setuptools-51.1.1.tar.gz 2051053 BLAKE2B 182c8c4b4d3bb8caea8cb1812aaff929d7687942d3c469a7f6e0a68a0c5d3d001be2b42d0d131171815359f2c1d59a7b997c5deab657d2ec99c369c6b27ba03f SHA512 ef08f0ecd0b4a255a8e43c2785c2a1ce76f807322c3358b7955d2ea814f9fa3f52962f7cd0431439ef9ee910fd44922d1be1888c350703031cfcab8db0f60ce7 +DIST setuptools-51.1.2.tar.gz 2051107 BLAKE2B a9f1d5dac6bed7b8744f1a3f023398312f6e3696ea68a84bdb252afca3e88b8617ae632384c18cf49906b1ec97f78f467ec158cc09e1842055b5089e154e0429 SHA512 cdfdb3c3666239268ab225704d1a887f027c297262521ee8d55af547cbcef0931656997cc86f4f9a871df6028974bd90b9eea6177c02bf34f98297415b9c410f diff --git a/dev-python/setuptools/metadata.xml b/dev-python/setuptools/metadata.xml new file mode 100644 index 000000000000..e093cfbb7cf8 --- /dev/null +++ b/dev-python/setuptools/metadata.xml @@ -0,0 +1,15 @@ +<?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> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">setuptools</remote-id> + <remote-id type="github">pypa/setuptools</remote-id> + <remote-id type="cpe">cpe:/a:python:setuptools</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/setuptools/setuptools-50.3.0.ebuild b/dev-python/setuptools/setuptools-50.3.0.ebuild new file mode 100644 index 000000000000..b991a0ebd419 --- /dev/null +++ b/dev-python/setuptools/setuptools-50.3.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +# Set to 'manual' to avoid triggering install QA check +DISTUTILS_USE_SETUPTOOLS=manual +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +DESCRIPTION="Collection of extensions to Distutils" +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + app-arch/unzip + test? ( + dev-python/jaraco-envs[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}] + dev-python/pytest-fixture-config[${PYTHON_USEDEP}] + dev-python/pytest-virtualenv[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) +" +PDEPEND=" + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +# Force in-source build because build system modifies sources. +DISTUTILS_IN_SOURCE_BUILD=1 + +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) + +python_prepare_all() { + # disable tests requiring a network connection + rm setuptools/tests/test_packageindex.py || die + + # don't run integration tests + rm setuptools/tests/test_integration.py || die + + # xpass-es for me on py3 + #sed -e '/xfail.*710/s:(:(six.PY2, :' \ + # -i setuptools/tests/test_archive_util.py || die + + # avoid pointless dep on flake8 + sed -i -e 's:--flake8::' -e 's:--cov::' pytest.ini || die + + # disable the code disabling non-existing coverage plugin + sed -i -e 's:cov = .*:return:' conftest.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg + # It tries to sandbox the test in a tempdir + HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}" +} + +python_install() { + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 + distutils-r1_python_install +} diff --git a/dev-python/setuptools/setuptools-51.0.0.ebuild b/dev-python/setuptools/setuptools-51.0.0.ebuild new file mode 100644 index 000000000000..5e7eabfd6bab --- /dev/null +++ b/dev-python/setuptools/setuptools-51.0.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +# Set to 'manual' to avoid triggering install QA check +DISTUTILS_USE_SETUPTOOLS=manual +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +DESCRIPTION="Collection of extensions to Distutils" +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + app-arch/unzip + test? ( + dev-python/jaraco-envs[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}] + dev-python/pytest-fixture-config[${PYTHON_USEDEP}] + dev-python/pytest-virtualenv[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) +" +PDEPEND=" + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +# Force in-source build because build system modifies sources. +DISTUTILS_IN_SOURCE_BUILD=1 + +DOCS=( {CHANGES,README}.rst ) + +python_prepare_all() { + # disable tests requiring a network connection + rm setuptools/tests/test_packageindex.py || die + + # don't run integration tests + rm setuptools/tests/test_integration.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing --via-root + local deselect=( + setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts + ) + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg + # It tries to sandbox the test in a tempdir + HOME="${PWD}" pytest -vv setuptools ${deselect[@]/#/--deselect } || + die "Tests failed under ${EPYTHON}" +} + +python_install() { + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 + distutils-r1_python_install +} diff --git a/dev-python/setuptools/setuptools-51.1.0.ebuild b/dev-python/setuptools/setuptools-51.1.0.ebuild new file mode 100644 index 000000000000..bfeb722f164f --- /dev/null +++ b/dev-python/setuptools/setuptools-51.1.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +# Set to 'manual' to avoid triggering install QA check +DISTUTILS_USE_SETUPTOOLS=manual +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +DESCRIPTION="Collection of extensions to Distutils" +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +BDEPEND=" + test? ( + dev-python/jaraco-envs[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + dev-python/pytest-fixture-config[${PYTHON_USEDEP}] + dev-python/pytest-virtualenv[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) +" +PDEPEND=" + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +# Force in-source build because build system modifies sources. +DISTUTILS_IN_SOURCE_BUILD=1 + +DOCS=( {CHANGES,README}.rst ) + +python_prepare_all() { + # disable tests requiring a network connection + rm setuptools/tests/test_packageindex.py || die + + # don't run integration tests + rm setuptools/tests/test_integration.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing --via-root + local deselect=( + setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts + ) + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg + # It tries to sandbox the test in a tempdir + HOME="${PWD}" pytest -vv setuptools ${deselect[@]/#/--deselect } || + die "Tests failed under ${EPYTHON}" +} + +python_install() { + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 + distutils-r1_python_install +} diff --git a/dev-python/setuptools/setuptools-51.1.1.ebuild b/dev-python/setuptools/setuptools-51.1.1.ebuild new file mode 100644 index 000000000000..e73b58003619 --- /dev/null +++ b/dev-python/setuptools/setuptools-51.1.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +# Set to 'manual' to avoid triggering install QA check +DISTUTILS_USE_SETUPTOOLS=manual +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 multiprocessing + +DESCRIPTION="Collection of extensions to Distutils" +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +BDEPEND=" + test? ( + dev-python/jaraco-envs[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + dev-python/pytest-fixture-config[${PYTHON_USEDEP}] + dev-python/pytest-virtualenv[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) +" +PDEPEND=" + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +# Force in-source build because build system modifies sources. +DISTUTILS_IN_SOURCE_BUILD=1 + +DOCS=( {CHANGES,README}.rst ) + +python_test() { + distutils_install_for_testing --via-root + local deselect=( + # TODO + setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts + # this one's unhappy about pytest-xdist but one test is not worth + # losing the speed gain + setuptools/tests/test_build_meta.py::TestBuildMetaBackend::test_build_sdist_relative_path_import + ) + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg + # It tries to sandbox the test in a tempdir + HOME="${PWD}" pytest -vv ${deselect[@]/#/--deselect } \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" \ + setuptools || die "Tests failed under ${EPYTHON}" +} + +python_install() { + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 + distutils-r1_python_install +} diff --git a/dev-python/setuptools/setuptools-51.1.2.ebuild b/dev-python/setuptools/setuptools-51.1.2.ebuild new file mode 100644 index 000000000000..e73b58003619 --- /dev/null +++ b/dev-python/setuptools/setuptools-51.1.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +# Set to 'manual' to avoid triggering install QA check +DISTUTILS_USE_SETUPTOOLS=manual +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 multiprocessing + +DESCRIPTION="Collection of extensions to Distutils" +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +BDEPEND=" + test? ( + dev-python/jaraco-envs[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + dev-python/pytest-fixture-config[${PYTHON_USEDEP}] + dev-python/pytest-virtualenv[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) +" +PDEPEND=" + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +# Force in-source build because build system modifies sources. +DISTUTILS_IN_SOURCE_BUILD=1 + +DOCS=( {CHANGES,README}.rst ) + +python_test() { + distutils_install_for_testing --via-root + local deselect=( + # TODO + setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts + # this one's unhappy about pytest-xdist but one test is not worth + # losing the speed gain + setuptools/tests/test_build_meta.py::TestBuildMetaBackend::test_build_sdist_relative_path_import + ) + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg + # It tries to sandbox the test in a tempdir + HOME="${PWD}" pytest -vv ${deselect[@]/#/--deselect } \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" \ + setuptools || die "Tests failed under ${EPYTHON}" +} + +python_install() { + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 + distutils-r1_python_install +} diff --git a/dev-python/sip-python2/sip-python2-4.19.22-r1.ebuild b/dev-python/sip-python2/sip-python2-4.19.22-r2.ebuild index 383b6a266a48..af062b7b5160 100644 --- a/dev-python/sip-python2/sip-python2-4.19.22-r1.ebuild +++ b/dev-python/sip-python2/sip-python2-4.19.22-r2.ebuild @@ -11,11 +11,8 @@ HOMEPAGE="https://www.riverbankcomputing.com/software/sip/intro" MY_PN=sip MY_P=${MY_PN}-${PV/_pre/.dev} -if [[ ${PV} == *_pre* ]]; then - SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" -else - SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" -fi +SRC_URI="ftp://ftp.calculate-linux.org/calculate/source/${MY_PN}/${MY_P}.tar.gz + http://mirror.yandex.ru/calculate/source/${MY_PN}/${MY_P}.tar.gz" # Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h SLOT="0/12" diff --git a/dev-python/six-python2/six-python2-1.15.0.ebuild b/dev-python/six-python2/six-python2-1.15.0-r1.ebuild index 9ff690dc1799..b7861552df2d 100644 --- a/dev-python/six-python2/six-python2-1.15.0.ebuild +++ b/dev-python/six-python2/six-python2-1.15.0-r1.ebuild @@ -5,6 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=six @@ -20,6 +21,10 @@ RESTRICT="test" S="${WORKDIR}/${MY_PN}-${PV}" +BDEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] +" + RDEPEND=" !dev-python/six[python_targets_python2_7] " diff --git a/dev-python/soaplib/soaplib-1.0.0-r4.ebuild b/dev-python/soaplib/soaplib-1.0.0-r5.ebuild index 4ec79ff795b0..781192f74866 100644 --- a/dev-python/soaplib/soaplib-1.0.0-r4.ebuild +++ b/dev-python/soaplib/soaplib-1.0.0-r5.ebuild @@ -5,6 +5,7 @@ EAPI="5" PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 eutils python-r1 DESCRIPTION="A simple library for writing soap web services." @@ -21,7 +22,7 @@ RDEPEND=" dev-python/pytz-python2 " DEPEND="${RDEPEND} - dev-python/setuptools + dev-python/setuptools-python2 " S="${WORKDIR}/soaplib-soaplib-2801978" diff --git a/dev-python/tree-sitter/Manifest b/dev-python/tree-sitter/Manifest index 25671236c3cf..d0fae368df6d 100644 --- a/dev-python/tree-sitter/Manifest +++ b/dev-python/tree-sitter/Manifest @@ -1 +1,2 @@ DIST tree_sitter-0.2.0.tar.gz 110387 BLAKE2B 62bd0cac84626738c051a16a6e1d8bf18985850e9c0174794d060e09f289edcf5e6183da28ab3805713b7d55d63c2210cc0e53d022689b46a3770243acf08937 SHA512 1b5c1dd8855de00357b5e8fc9dc3cb826c1cd10bec499b2db26f50fe2249a9848e1641765ee9717c8eae88b8d091f0de79cdfabafdecbe8e666a05f63fefe4ba +DIST tree_sitter-0.2.1.tar.gz 110417 BLAKE2B 263f47b9c8beab4b99fbfeb40521467f7f507ead77b20eb1bea7d6f076398d4f0db02299290a552aaa35959dff4a87866d010d628269e64cebeb06d86856fdc6 SHA512 72fd602689a78f51184820fb15891863873f8b290811152ea568cfa6fbd2d3f182ae8627f028c8d485d0e9bbe7b81a9d6ed57e7a8b551ba38f8dd738fb7c858a diff --git a/dev-python/tree-sitter/tree-sitter-0.2.1.ebuild b/dev-python/tree-sitter/tree-sitter-0.2.1.ebuild new file mode 100644 index 000000000000..54a747c6f6e1 --- /dev/null +++ b/dev-python/tree-sitter/tree-sitter-0.2.1.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=bdepend +inherit distutils-r1 + +MY_PN=${PN/-/_} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Python bindings to the Tree-sitter parsing library" +HOMEPAGE="https://github.com/tree-sitter/py-tree-sitter" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x64-macos" + +S="${WORKDIR}/${MY_P}" diff --git a/dev-python/typing-python2/typing-python2-3.7.4.3.ebuild b/dev-python/typing-python2/typing-python2-3.7.4.3-r1.ebuild index a353118e6e53..dfd26b19e07c 100644 --- a/dev-python/typing-python2/typing-python2-3.7.4.3.ebuild +++ b/dev-python/typing-python2/typing-python2-3.7.4.3-r1.ebuild @@ -5,6 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 MY_PN=typing @@ -19,7 +20,7 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd6 IUSE="" RESTRICT="test" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools-python2[${PYTHON_USEDEP}]" RDEPEND="!dev-python/${MY_PN}[python_targets_python2_7]" S="${WORKDIR}/${MY_PN}-${PV}" diff --git a/dev-python/wxpython2/wxpython2-3.0.2.0.ebuild b/dev-python/wxpython2/wxpython2-3.0.2.0-r1.ebuild index d0b9b21a7317..1d3987542b30 100644 --- a/dev-python/wxpython2/wxpython2-3.0.2.0.ebuild +++ b/dev-python/wxpython2/wxpython2-3.0.2.0-r1.ebuild @@ -6,6 +6,7 @@ EAPI=5 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) WX_GTK_VER="3.0" +DISTUTILS_USE_SETUPTOOLS=manual inherit alternatives distutils-r1 eutils flag-o-matic wxwidgets ORIG_PN="wxpython" @@ -27,7 +28,7 @@ RDEPEND=" dev-lang/python-exec:2[${PYTHON_USEDEP}] >=x11-libs/wxGTK-${PV}:${WX_GTK_VER}=[libnotify=,opengl?,tiff,X] dev-libs/glib:2 - dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools-python2[${PYTHON_USEDEP}] media-libs/libpng:0= media-libs/tiff:0 virtual/jpeg |
