diff options
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/fastjsonschema/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/fastjsonschema/fastjsonschema-2.14.5.ebuild | 26 | ||||
| -rw-r--r-- | dev-python/fastjsonschema/metadata.xml | 8 | ||||
| -rw-r--r-- | dev-python/isort/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/isort/isort-5.6.3.ebuild | 51 | ||||
| -rw-r--r-- | dev-python/isort/metadata.xml | 3 | ||||
| -rw-r--r-- | dev-python/matplotlib-python2/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch | 18 | ||||
| -rw-r--r-- | dev-python/matplotlib-python2/matplotlib-python2-2.2.5-r2.ebuild | 208 | ||||
| -rw-r--r-- | dev-python/matplotlib-python2/metadata.xml | 27 | ||||
| -rw-r--r-- | dev-python/nbformat/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/nbformat/nbformat-5.0.8.ebuild | 38 | ||||
| -rw-r--r-- | dev-python/objgraph/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/objgraph/objgraph-3.5.0.ebuild | 31 | ||||
| -rw-r--r-- | dev-python/spur/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/spur/spur-0.3.22.ebuild | 39 |
16 files changed, 201 insertions, 254 deletions
diff --git a/dev-python/fastjsonschema/Manifest b/dev-python/fastjsonschema/Manifest new file mode 100644 index 000000000000..8835172bcb41 --- /dev/null +++ b/dev-python/fastjsonschema/Manifest @@ -0,0 +1 @@ +DIST python-fastjsonschema-2.14.5.tar.gz 33488 BLAKE2B 4604ebd46851c8fe856909fa3943e053ac7359a9f360c189add2a46780fe045ca1952033174d008db7696bfc861a504c3aaa7389c33a2edbccd10cb14de8a097 SHA512 255db86d1d62845e512ca5669f3200360847d974710050ac53fe88536d6d9f943ccf41a8414702dad70fa1a38defe9859f2b608e13a54af11199c90d63cdf1d0 diff --git a/dev-python/fastjsonschema/fastjsonschema-2.14.5.ebuild b/dev-python/fastjsonschema/fastjsonschema-2.14.5.ebuild new file mode 100644 index 000000000000..54b787c423bf --- /dev/null +++ b/dev-python/fastjsonschema/fastjsonschema-2.14.5.ebuild @@ -0,0 +1,26 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) +inherit distutils-r1 + +MY_P=python-${P} +DESCRIPTION="Fast JSON schema validator for Python" +HOMEPAGE="https://github.com/horejsek/python-fastjsonschema/" +SRC_URI=" + https://github.com/horejsek/python-fastjsonschema/archive/v${PV}.tar.gz + -> ${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + rm -r tests/benchmarks || die +} diff --git a/dev-python/fastjsonschema/metadata.xml b/dev-python/fastjsonschema/metadata.xml new file mode 100644 index 000000000000..50567d15b867 --- /dev/null +++ b/dev-python/fastjsonschema/metadata.xml @@ -0,0 +1,8 @@ +<?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> + </maintainer> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/isort/Manifest b/dev-python/isort/Manifest index b741e9cae55e..b716e2ff9e4b 100644 --- a/dev-python/isort/Manifest +++ b/dev-python/isort/Manifest @@ -1,2 +1,3 @@ DIST isort-4.3.15.tar.gz 67949 BLAKE2B e78960518928cd74c15733bbc14bf066798ecbcc3e906754c10e352e7b88843451a1d0616d1b450100c77e95974f863951d640c9568277e867fcdfba8f44abdb SHA512 a5774d4f3c49c978e9043e52681e80011591422e60178d72074142725d9d7fa5065553686fd42bffe9e71b38b2b5bdaaa6f20e32cd8dbe33beb9431c397d78e5 DIST isort-4.3.21_p2.tar.gz 158539 BLAKE2B 316703ca754c939e4af0db4a1060fb13a5164797a672b3faeb585a81fa0c86453fb0f1953b789661588cd0f04267a28837d46a88093a838391f752afa43e9f8b SHA512 fc2aa00c87196864864d2516b8be7acdedcf40d71d1931510e4b878dbd2b6da0b579661b50221f03f4aa5560c8bf23d5e1e10a2694d2b741ca09a92e40a4c687 +DIST isort-5.6.3.tar.gz 161712 BLAKE2B ffbc2977016807d2bd5b1644377efad021af2ad27fd0e27feae1e5dfdfd112c7b5bf4b296ebf47ea6bfcbfe7f56cf3bfa8e1e7cf03963935660e678223397afb SHA512 fa2d9be306d03fc802aab3915bee2c41f4fe0c28353d9d99aa6604755e1602027cd81afca92b4302f80497c88a9dcb2701ec02ca55a5f9a2866669a68368d957 diff --git a/dev-python/isort/isort-5.6.3.ebuild b/dev-python/isort/isort-5.6.3.ebuild new file mode 100644 index 000000000000..6f04f8c29a47 --- /dev/null +++ b/dev-python/isort/isort-5.6.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="A python utility/library to sort imports" +HOMEPAGE="https://pypi.org/project/isort/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + test? ( + dev-python/black[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pylama[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + # Some tests run the "isort" command + distutils_install_for_testing + local skipped_tests=( + # Fails without -s, run it separately to avoid unnecessary output + tests/unit/test_importable.py + # Excluded from upstream's test script + tests/unit/test_deprecated_finders.py + # Require "example_isort_formatting_plugin", we're not going + # to add an example package just to run a few tests + tests/unit/test_literal.py::test_value_assignment_list + tests/unit/test_ticketed_features.py::test_isort_supports_formatting_plugins_issue_1353 + tests/unit/test_ticketed_features.py::test_isort_literals_issue_1358 + # Same here: requires "example_shared_isort_profile" + tests/unit/test_ticketed_features.py::test_isort_supports_shared_profiles_issue_970 + ) + pytest -s tests/unit/test_importable.py \ + || die "Tests failed with ${EPYTHON}" + pytest -vv tests/unit ${skipped_tests[@]/#/--deselect } \ + || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/isort/metadata.xml b/dev-python/isort/metadata.xml index d4ad6cf802f4..84301ffb72de 100644 --- a/dev-python/isort/metadata.xml +++ b/dev-python/isort/metadata.xml @@ -10,6 +10,9 @@ </maintainer> <upstream> <remote-id type="pypi">isort</remote-id> + <remote-id type="github">PyCQA/isort</remote-id> + <bugs-to>https://github.com/PyCQA/isort/issues</bugs-to> + <doc>https://pycqa.github.io/isort/</doc> </upstream> <origin>gentoo-staging</origin> </pkgmetadata> diff --git a/dev-python/matplotlib-python2/Manifest b/dev-python/matplotlib-python2/Manifest deleted file mode 100644 index e15d4fa58675..000000000000 --- a/dev-python/matplotlib-python2/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST matplotlib-2.2.5.tar.gz 36678633 BLAKE2B fb3084a2d34a920413c44a23a956ffdcf7a31d521e2d1df50a68c9f17882cb87deebb403ec47154284593b39df24dad72e6352e1427091f795058db11f1d3a1b SHA512 f4771dca4b3c936e0d47f42630759207ccfe11586b3efadb401144b014a600914a6521af4fbe060fa80fd74132c92f1d3b37cac4fea9999ca90300c1dec8391b diff --git a/dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch b/dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch deleted file mode 100644 index b6a01b097a61..000000000000 --- a/dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff --git a/doc/conf.py b/doc/conf.py -index 017ce210e..5a397082b 100644 ---- a/doc/conf.py -+++ b/doc/conf.py -@@ -170,10 +170,10 @@ source_encoding = "utf-8" - master_doc = 'contents' - - # General substitutions. --from matplotlib.compat.subprocess import check_output --SHA = check_output(['git', 'describe', '--dirty']).decode('utf-8').strip() -+#from matplotlib.compat.subprocess import check_output -+#SHA = check_output(['git', 'describe', '--dirty']).decode('utf-8').strip() - --html_context = {'sha': SHA} -+#html_context = {'sha': SHA} - - project = 'Matplotlib' - copyright = ('2002 - 2012 John Hunter, Darren Dale, Eric Firing, ' diff --git a/dev-python/matplotlib-python2/matplotlib-python2-2.2.5-r2.ebuild b/dev-python/matplotlib-python2/matplotlib-python2-2.2.5-r2.ebuild deleted file mode 100644 index 4d925d88348f..000000000000 --- a/dev-python/matplotlib-python2/matplotlib-python2-2.2.5-r2.ebuild +++ /dev/null @@ -1,208 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) -PYTHON_REQ_USE='tk?,threads(+)' - -inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix - -MY_PN=${PN/-python2} -MY_P=${MY_PN}-${PV} - -DESCRIPTION="Pure python plotting library with matlab like syntax (py2 version)" -HOMEPAGE="https://matplotlib.org/" -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" -S=${WORKDIR}/${MY_P} - -# Main license: matplotlib -# Some modules: BSD -# matplotlib/backends/qt4_editor: MIT -# Fonts: BitstreamVera, OFL-1.1 -LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 x86" -IUSE="cairo excel gtk3 latex test tk wxwidgets" -REQUIRED_USE="test? ( cairo gtk3 latex tk wxwidgets )" - -RESTRICT="!test? ( test )" - -# #456704 -- a lot of py2-only deps -COMMON_DEPEND=" - dev-python/functools32[${PYTHON_USEDEP}] - dev-python/subprocess32[${PYTHON_USEDEP}] - dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}] - dev-python/cycler[${PYTHON_USEDEP}] - || ( - dev-python/numpy-python2[${PYTHON_USEDEP}] - >=dev-python/numpy-1.7.1[${PYTHON_USEDEP}] - ) - dev-python/python-dateutil:0[${PYTHON_USEDEP}] - dev-python/pytz[${PYTHON_USEDEP}] - >=dev-python/six-1.10[${PYTHON_USEDEP}] - media-fonts/stix-fonts - media-libs/freetype:2 - media-libs/libpng:0 - >=media-libs/qhull-2013 - >=dev-python/kiwisolver-1.0.0[${PYTHON_USEDEP}] - cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] ) - wxwidgets? ( >=dev-python/wxpython-2.8:*[${PYTHON_USEDEP}] )" - -# internal copy of pycxx highly patched -# dev-python/pycxx - -DEPEND="${COMMON_DEPEND} - dev-python/versioneer[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] - virtual/pkgconfig - test? ( - dev-python/mock[${PYTHON_USEDEP}] - >=dev-python/nose-0.11.1[${PYTHON_USEDEP}] - )" - -RDEPEND="${COMMON_DEPEND} - !<dev-python/matplotlib-3 - >=dev-python/pyparsing-1.5.6[${PYTHON_USEDEP}] - excel? ( dev-python/xlwt[${PYTHON_USEDEP}] ) - gtk3? ( - dev-python/pygobject:3[${PYTHON_USEDEP}] - x11-libs/gtk+:3[introspection] - ) - latex? ( - virtual/latex-base - app-text/ghostscript-gpl - app-text/dvipng - app-text/poppler[utils] - dev-texlive/texlive-fontsrecommended - dev-texlive/texlive-latexextra - dev-texlive/texlive-xetex - )" - -# A few C++ source files are written to srcdir. -# Other than that, the ebuild shall be fit for out-of-source build. -DISTUTILS_IN_SOURCE_BUILD=1 - -pkg_setup() { - unset DISPLAY # bug #278524 -} - -use_setup() { - local uword="${2:-${1}}" - if use ${1}; then - echo "${uword} = True" - echo "${uword}agg = True" - else - echo "${uword} = False" - echo "${uword}agg = False" - fi -} - -python_prepare_all() { -# Generates test failures, but fedora does it -# local PATCHES=( -# "${FILESDIR}"/${P}-unbundle-pycxx.patch -# "${FILESDIR}"/${P}-unbundle-agg.patch -# ) -# rm -r agg24 CXX || die -# rm -r agg24 || die - -# cat > lib/${PN}/externals/six.py <<-EOF -# from __future__ import absolute_import -# from six import * -# EOF - - local PATCHES=( - "${FILESDIR}"/${MY_PN}-2.2.4-doc-fix.patch - ) - - sed \ - -e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \ - -i lib/matplotlib/{mathtext,fontconfig_pattern}.py \ - || die "sed pyparsing failed" - - hprefixify setupext.py - - export XDG_RUNTIME_DIR="${T}/runtime-dir" - mkdir "${XDG_RUNTIME_DIR}" || die - chmod 0700 "${XDG_RUNTIME_DIR}" || die - - distutils-r1_python_prepare_all -} - -python_configure_all() { - append-flags -fno-strict-aliasing - append-cppflags -DNDEBUG # or get old trying to do triangulation - tc-export PKG_CONFIG -} - -python_configure() { - mkdir -p "${BUILD_DIR}" || die - - # create setup.cfg (see setup.cfg.template for any changes). - - # common switches. - cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die - [directories] - basedirlist = ${EPREFIX}/usr - [provide_packages] - pytz = False - dateutil = False - [packages] - tests = $(usex test True False) - [gui_support] - agg = True - pyside = False - pysideagg = False - qt4 = False - qt4agg = False - qt5 = False - qt5agg = False - $(use_setup cairo) - $(use_setup gtk3) - $(use_setup tk) - EOF - - if use gtk3 && use cairo; then - echo "gtk3cairo = True" >> "${BUILD_DIR}"/setup.cfg || die - else - echo "gtk3cairo = False" >> "${BUILD_DIR}"/setup.cfg || die - fi - - cat >> "${BUILD_DIR}"/setup.cfg <<-EOF || die - gtk = False - gtkagg = False - $(use_setup wxwidgets wx) - EOF -} - -wrap_setup() { - local MAKEOPTS=-j1 - local -x MPLSETUPCFG="${BUILD_DIR}"/setup.cfg - unset DISPLAY - "$@" -} - -python_compile() { - wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib -} - -python_test() { - wrap_setup distutils_install_for_testing - - virtx "${EPYTHON}" -c "import sys, matplotlib as m; sys.exit(0 if m.test(verbosity=2) else 1)" -} - -python_install() { - wrap_setup distutils-r1_python_install - - # mpl_toolkits namespace - python_moduleinto mpl_toolkits - python_domodule lib/mpl_toolkits/__init__.py -} - -python_install_all() { - distutils-r1_python_install_all - - find "${D}" -name '*.pth' -delete || die -} diff --git a/dev-python/matplotlib-python2/metadata.xml b/dev-python/matplotlib-python2/metadata.xml deleted file mode 100644 index 54e256c4254d..000000000000 --- a/dev-python/matplotlib-python2/metadata.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>sci@gentoo.org</email> - <name>Gentoo Science Project</name> - </maintainer> - <maintainer type="project"> - <email>python@gentoo.org</email> - <name>Python</name> - </maintainer> - <longdescription lang="en"> - matplotlib is an interactive library for plotting and doing basic - data analysis in python with a syntax similar to matlab. It provides a - variety of backends and hard copy formats for almost ready - publication plots. - </longdescription> - <use> - <flag name="excel">Pull <pkg>dev-python/xlwt</pkg> for the exceltools toolkit</flag> - <flag name="gtk3">Enable <pkg>x11-libs/gtk+</pkg>:3 support</flag> - </use> - <upstream> - <remote-id type="pypi">matplotlib</remote-id> - <remote-id type="sourceforge">matplotlib</remote-id> - </upstream> - <origin>gentoo-staging</origin> -</pkgmetadata> diff --git a/dev-python/nbformat/Manifest b/dev-python/nbformat/Manifest index 4fe75ef40942..441dddd0ea1f 100644 --- a/dev-python/nbformat/Manifest +++ b/dev-python/nbformat/Manifest @@ -1 +1,2 @@ DIST nbformat-5.0.7.gh.tar.gz 125328 BLAKE2B fa048ceef9d0612052dcf3180bca4228dba5117c6b0fb642f777bbd35e2b6f868454ae3d793aa0da3904757e42309ac53be19621a62967b719da86ab37d5f052 SHA512 3c1429a232d15d023f161f41cdab3364242f1a026349ea5aaeceba6a80afba981cc512a9f148ae3a0fa856a847c4560cc95abd965cc5d088a9f89c2b61d48fd1 +DIST nbformat-5.0.8.gh.tar.gz 127329 BLAKE2B 6252d35f72fd0af5a89d83e9e48f61baf2656eb6530d4a7b05a5241e7272098992d70d68705da4fb9921ab1939378658b2e6e5f765a453f932e94e9232006a66 SHA512 956add98517f1128d8efacae1f3cf9fe27b4d7acae4a56e14dd6c2942aab39b063170759bc6de67bcedd2e0fd6c7ab1a36aef268f2088644ba31caa936b9359d diff --git a/dev-python/nbformat/nbformat-5.0.8.ebuild b/dev-python/nbformat/nbformat-5.0.8.ebuild new file mode 100644 index 000000000000..8995c7334293 --- /dev/null +++ b/dev-python/nbformat/nbformat-5.0.8.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) +PYTHON_REQ_USE='sqlite' + +inherit distutils-r1 + +DESCRIPTION="Reference implementation of the Jupyter Notebook format" +HOMEPAGE="https://jupyter.org" +# missing on pypi +SRC_URI=" + https://github.com/jupyter/nbformat/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/jsonschema-2.4.0[${PYTHON_USEDEP}] + dev-python/ipython_genutils[${PYTHON_USEDEP}] + >=dev-python/traitlets-4.1[${PYTHON_USEDEP}] + dev-python/jupyter_core[${PYTHON_USEDEP}] + " +DEPEND=" + test? ( + dev-python/fastjsonschema[${PYTHON_USEDEP}] + dev-python/testpath[${PYTHON_USEDEP}] + ) + " + +distutils_enable_sphinx docs \ + dev-python/numpydoc +distutils_enable_tests pytest diff --git a/dev-python/objgraph/Manifest b/dev-python/objgraph/Manifest index 4a64a1f44066..9074170ea254 100644 --- a/dev-python/objgraph/Manifest +++ b/dev-python/objgraph/Manifest @@ -1 +1,2 @@ DIST objgraph-3.4.1.tar.gz 634602 BLAKE2B 17424fa5b6b079e9b0dabdfb5facc88fef67bb3742252fd986b19cb0b674c40f335e0372cb08a86e89d42cce0d504830c24471e0d34483925b33d44f45859445 SHA512 174e097cd9f9b5bd2e83a389d2ce3bd05a1754c1535923cc75f59a3281a292b50014501f093ccf1b2350fdbb34757af950636819227e39cdad2f64cb7de5ebb8 +DIST objgraph-3.5.0.tar.gz 638591 BLAKE2B 7a0ee6c9ee1d8417f7b322f19a397ea2452ed592ebbc07afc1378e86b5bad3895ed2e4a20d92a5f4b0215f68fc7440f85852303585a3161497a85d41d4c4e550 SHA512 da29202871bad06f2caa9cc297e7bf9a15af4c89e23baf9c271764e0ce93ff9557cd5c21d0bf39b425713460dbe2dbc8468d70c6bfcc1c3ff8b1b4d4a7923858 diff --git a/dev-python/objgraph/objgraph-3.5.0.ebuild b/dev-python/objgraph/objgraph-3.5.0.ebuild new file mode 100644 index 000000000000..e8b665922297 --- /dev/null +++ b/dev-python/objgraph/objgraph-3.5.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7,8,9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Draws Python object reference graphs with graphviz" +HOMEPAGE="https://mg.pov.lt/objgraph/" +SRC_URI="mirror://pypi/o/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +SLOT="0" +IUSE="doc" + +RDEPEND="media-gfx/graphviz" +BDEPEND="test? ( media-gfx/xdot )" + +PATCHES=( + "${FILESDIR}/objgraph-3.4.1-tests.patch" +) + +distutils_enable_tests unittest + +python_install_all() { + use doc && local HTML_DOCS=( docs/* ) + distutils-r1_python_install_all +} diff --git a/dev-python/spur/Manifest b/dev-python/spur/Manifest index 76abd60b1508..20627fdfee42 100644 --- a/dev-python/spur/Manifest +++ b/dev-python/spur/Manifest @@ -1 +1,2 @@ DIST spur.py-0.3.21.gh.tar.gz 17666 BLAKE2B 0628417e6b5f4c744041693445113a59daac4f89776bc39849a2e1fab21826f3c6783bf72bf528a262f05df08d0680044e69f119c367f29ca4d6f0df554fa49d SHA512 7cd49690b989952707629fad5682201dc7f00865d8120da9e84eb9046e7a8fe7b7183785b4c2eac996d2743025cc09508b0ceb7b762b7bddb5447ecbc42d00a4 +DIST spur.py-0.3.22.gh.tar.gz 17760 BLAKE2B 676484e73fa38ebcd3bcc2ace21853590b652d0ec2dc31f7635a55a8bbb213e559fbdd7b70e545091e7e28e6000862ef45eba748e13c546b765756b41c352028 SHA512 36518a080d3fff97fdab5af8e7e3045c58ad6b1acad9fb79e11da688d484565ee4d50868f3c3ee10299e135f2c01bd35348256df7bb1b4f6200aa175cafc7f0a diff --git a/dev-python/spur/spur-0.3.22.ebuild b/dev-python/spur/spur-0.3.22.ebuild new file mode 100644 index 000000000000..f08c37fc2770 --- /dev/null +++ b/dev-python/spur/spur-0.3.22.ebuild @@ -0,0 +1,39 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) +inherit distutils-r1 + +MY_P=spur.py-${PV} +DESCRIPTION="Run commands locally or over SSH using the same interface" +HOMEPAGE="https://github.com/mwilliamson/spur.py" +SRC_URI=" + https://github.com/mwilliamson/spur.py/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + dev-python/paramiko[${PYTHON_USEDEP}]" + +distutils_enable_tests nose + +src_prepare() { + # TODO: set up a local SSH server? + rm tests/{ssh_tests,testing}.py || die + + # does random guesswork on top of exceptions that stopped working + # in py3.8; this only causes a different exception to be raised + # https://github.com/mwilliamson/spur.py/issues/85 + sed -e 's:spawning_command_that_uses_path_env_variable_asks_if_command_is_installed:_&:' \ + -e 's:spawning_non_existent_command_raises_specific_no_such_command_exception:_&:' \ + -e 's:using_non_existent_command_and_correct_cwd_raises_no_such_command_exception:_&:' \ + -i tests/process_test_set.py || die + + distutils-r1_src_prepare +} |
