summaryrefslogtreecommitdiff
path: root/dev-python/xdis
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/xdis
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/xdis')
-rw-r--r--dev-python/xdis/Manifest6
-rw-r--r--dev-python/xdis/files/xdis-3.3.0-remove-pytest-runner-dep.patch33
-rw-r--r--dev-python/xdis/metadata.xml25
-rw-r--r--dev-python/xdis/xdis-3.3.1.ebuild41
-rw-r--r--dev-python/xdis/xdis-3.6.0.ebuild43
5 files changed, 148 insertions, 0 deletions
diff --git a/dev-python/xdis/Manifest b/dev-python/xdis/Manifest
new file mode 100644
index 000000000000..f3d32e1aa5e5
--- /dev/null
+++ b/dev-python/xdis/Manifest
@@ -0,0 +1,6 @@
+AUX xdis-3.3.0-remove-pytest-runner-dep.patch 1093 BLAKE2B 98e3ed5a7b688b1ee2e12cff5a6214a79b184cdfd16a0725983b26d09ab330ab789fc97260a159830de548e36220339a69daaa70bbb7787250aa5fd6c0256eb8 SHA512 4eb02e8fed567903b1d4a51ab65f374008b0e939c0e192311974bb07b4fbfb877f8004580d67d7d1f3dd0bb27319bf17ecd289ede7e4420486c9998fbbef3464
+DIST xdis-3.3.1.tar.gz 154152 BLAKE2B e0997fb8bbc66cc3f019ee6855cbf9ae9f594698c989a0a1b9d0b08f03bb3fbf0ad44ca0292202674c8a8a8d92ce5d6e669dd01194567766262ce44bb154d631 SHA512 93b1a092ae7790e84dfd8dc4128659d48be85c4e00d9914bbd748fad5ec4246bbfc6c19a5c5de366f4bd6d91847dad4ce3c1c3affe8f7608652f2f6e343650e1
+DIST xdis-3.6.0.tar.gz 144766 BLAKE2B e9a33443d42ff71194180f0bb20423783107d4b1e3d6c364b824011d916041500048345cac4853d1ebb6363edf8df542b0363650bba42e187986f50c9696051f SHA512 8b45ccd6976204004f27ee5b1a9da9b29ec0e28f4b462d862be5a1238d3ebd4a5d6f3df5607f3e2f037d80b2d3ae77ec4246ab1aa0671466c1e07e3a65453f3b
+EBUILD xdis-3.3.1.ebuild 1127 BLAKE2B 25dd562b453dcf3c483a7351f90dc8ec7a5362d0a0dc5f6399ecef4247517cb4dc63516cd54344ef1fb8529cc7e84ddf4cffbc762d680445c8b18530c4ef5286 SHA512 eea1cff71891d01d3da6f015e20cf0d1eb3562ab201d9d60529371079d1c49ef2edcee265cb09a7283fa6c2399a2ff4accca04293447b0fb15404776f241907b
+EBUILD xdis-3.6.0.ebuild 1191 BLAKE2B 6e2cc74e1a2523a9646b61fd02f0d81c5db35c962ad8ca78c3f185081bd8b758dde81eb276ceb17cc24a881c443334d935b61529bacb72dba1ab4c1977fa3a61 SHA512 226d7d66de7d3b8dbed3afe8d4af13f148cfbdb09f260ebf22650520fa2d6ae4a3f7eb63c6733802e04bb9d076277a123913ba9133d65c82ab19d67b8a81810a
+MISC metadata.xml 875 BLAKE2B 0fc940946f6021ace510f7115fe3563fedce1868ebee2694503499405297b0f0f11692ef1d34177272fbeba88c970ae1487739a89ad47676ee86eef79c336657 SHA512 0602fea61376c4abe296129e13e0f67051d6b298d5741cefa9ad1bdb98cda21d49422b4229aeb23265109e3ab57ff78dfcb7035b298c7259f47d3a21a0d0e36b
diff --git a/dev-python/xdis/files/xdis-3.3.0-remove-pytest-runner-dep.patch b/dev-python/xdis/files/xdis-3.3.0-remove-pytest-runner-dep.patch
new file mode 100644
index 000000000000..a412e515b813
--- /dev/null
+++ b/dev-python/xdis/files/xdis-3.3.0-remove-pytest-runner-dep.patch
@@ -0,0 +1,33 @@
+From aabea1b295308b227bbaf4acd36f058121984791 Mon Sep 17 00:00:00 2001
+From: Brian Dolbec <dolsen@gentoo.org>
+Date: Tue, 28 Mar 2017 11:20:00 -0700
+Subject: [PATCH] remove-pytest-runner dep
+
+---
+ setup.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 138b769..5941951 100755
+--- a/setup.py
++++ b/setup.py
+@@ -5,7 +5,7 @@
+ from __pkginfo__ import \
+ author, author_email, \
+ license, long_description, classifiers, \
+- modname, py_modules, setup_requires, \
++ modname, py_modules, \
+ scripts, short_desc, tests_require, \
+ VERSION, web, zip_safe
+
+@@ -20,7 +20,6 @@ setup(
+ name = modname,
+ packages = find_packages(),
+ py_modules = py_modules,
+- setup_requires = setup_requires,
+ scripts = scripts,
+ tests_require = tests_require,
+ url = web,
+--
+2.12.1
+
diff --git a/dev-python/xdis/metadata.xml b/dev-python/xdis/metadata.xml
new file mode 100644
index 000000000000..6c8d1a307c06
--- /dev/null
+++ b/dev-python/xdis/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dolsen@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>rb@dustyfeet.com</email>
+ <name>Rocky Bernstein</name>
+ </maintainer>
+ <remote-id type="pypi">xdis</remote-id>
+ <remote-id type="github">rocky/python-xdis</remote-id>
+ </upstream>
+ <longdescription>This Python module allows you to disassemble bytecode from
+ different versions of Python than you are running on. It can marshal
+ load Python bytecodes from different versions of Python. The
+ command-line routine pydisasm will show disassembly output using Python
+ 3.5 disassembly conventions
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-python/xdis/xdis-3.3.1.ebuild b/dev-python/xdis/xdis-3.3.1.ebuild
new file mode 100644
index 000000000000..569c32177394
--- /dev/null
+++ b/dev-python/xdis/xdis-3.3.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy)
+
+inherit distutils-r1
+
+DESCRIPTION="Python cross-version byte-code disassembler and marshal routines"
+HOMEPAGE="https://github.com/rocky/python-xdis/ https://pypi.org/project/xdis/"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-python/six-1.10.0[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/nose-1.0[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/xdis-3.3.0-remove-pytest-runner-dep.patch"
+)
+
+python_test() {
+ # Need to rm any pyc files to prevent test failures.
+ rm -R "${S}"/test/__pycache__
+ PYTHONPATH="${S}/test:${S}/test_unit:${BUILD_DIR}/lib" \
+ py.test -v || die "Tests failed under ${EPYTHON}"
+ cd test
+ PYTHONPATH="${S}/test:${BUILD_DIR}/lib" \
+ ${EPYTHON} test_pyenvlib.py --verify --simple --compile || die \
+ "Tests failed under ${EPYTHON}"
+}
diff --git a/dev-python/xdis/xdis-3.6.0.ebuild b/dev-python/xdis/xdis-3.6.0.ebuild
new file mode 100644
index 000000000000..dd2731ef97c4
--- /dev/null
+++ b/dev-python/xdis/xdis-3.6.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy)
+
+inherit distutils-r1
+
+DESCRIPTION="Python cross-version byte-code disassembler and marshal routines"
+HOMEPAGE="https://github.com/rocky/python-xdis/ https://pypi.org/project/xdis/"
+# bad pypi source tarball - test failures
+#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="https://github.com/rocky/python-xdis/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-python/six-1.10.0[${PYTHON_USEDEP}]
+ dev-python/click[${PYTHON_USEDEP}]
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/nose-1.0[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/xdis-3.3.0-remove-pytest-runner-dep.patch"
+)
+
+S="${WORKDIR}/python-xdis-release-${PV}"
+
+python_test() {
+ # Need to rm any pyc files to prevent test failures.
+ rm -R "${S}"/test/__pycache__
+ PYTHONPATH="${S}/test:${S}/test_unit:${BUILD_DIR}/lib" \
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}