From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2BCA4138334 for ; Wed, 27 Nov 2019 22:50:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F291E09D8; Wed, 27 Nov 2019 22:50:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3507AE09D8 for ; Wed, 27 Nov 2019 22:50:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C149334D4DE for ; Wed, 27 Nov 2019 22:50:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B1B188B5 for ; Wed, 27 Nov 2019 22:50:22 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1574895013.d77d2d0183c01f91ebbade3bae3adc673da99240.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/automat/files/, dev-python/automat/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/automat/Manifest dev-python/automat/automat-0.8.0.ebuild dev-python/automat/files/automat-0.8.0-no-setup-py-m2r-import.patch X-VCS-Directories: dev-python/automat/ dev-python/automat/files/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: d77d2d0183c01f91ebbade3bae3adc673da99240 X-VCS-Branch: master Date: Wed, 27 Nov 2019 22:50:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 30571dcf-131e-430d-8799-c4d8f0fb94a8 X-Archives-Hash: 8a5bbfd33a52c71f02117ee76c64c2af commit: d77d2d0183c01f91ebbade3bae3adc673da99240 Author: Patrick McLean sony com> AuthorDate: Wed Nov 27 22:45:04 2019 +0000 Commit: Patrick McLean gentoo org> CommitDate: Wed Nov 27 22:50:13 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d77d2d01 dev-python/automat-0.8.0: bump, add py38 and pypy3 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Patrick McLean gentoo.org> dev-python/automat/Manifest | 1 + dev-python/automat/automat-0.8.0.ebuild | 64 ++++++++++++++++++++++ .../automat-0.8.0-no-setup-py-m2r-import.patch | 27 +++++++++ 3 files changed, 92 insertions(+) diff --git a/dev-python/automat/Manifest b/dev-python/automat/Manifest index af99aefb7a7..a278fa8c8a9 100644 --- a/dev-python/automat/Manifest +++ b/dev-python/automat/Manifest @@ -1,3 +1,4 @@ DIST Automat-0.5.0.tar.gz 32599 BLAKE2B 951da8840c2334fe3cd86804b39beedaad0d344d66742e8bb72e2d2ace2029b037acac8ffccc5643fd37f81020a567374a25ed42f7bc386770a30956464f52eb SHA512 7b4fc64e1b3cc514e3513c4be7387309a9e0c6d59ef091131404642b517a324b4a0eb677bee99da038664bd6713f2d2078c621f056e98b35966caf324741eeeb DIST Automat-0.6.0.tar.gz 31767 BLAKE2B 28baa9d6cc7497f9c0a4b7f4050b197d3dff871b91f5f3e29bdc47ace443af8de0fbeacf1657dc6565b3ab824365362a42204d6d89a8dfc82eaa6cd92d4e2308 SHA512 94f2fa06b0e0e1c0538bcf4bd9046ea40600a018bdd1da2d5bed479877807ad56e448c4f1d7ec87341f80013ae6c35b01201cbe3c4ecae1105419038ed43024d DIST Automat-0.7.0.tar.gz 61461 BLAKE2B dd09ce090c7333ee17b701bde2c78e01dacf40cefee847061a2019bb27f0982091e7628737211421ada351937caf9c6734cb445ee6462ce84b381030b013bd05 SHA512 a6f307d312a3ceb721071b5212297c73d2306894b5fafd39265578041a2859bd6f041ac43a654bdda4175a70a4e90e0db1ee35cd43fa620cd5c594b5d1988a74 +DIST Automat-0.8.0.tar.gz 59687 BLAKE2B 56e4ec76564d321ca9a709c484077a4003eea2842160e226728aaaa4ec6ebc2486482f79cd919bef7bbec8baeee7a34ca2a11d48665bb36c79c5a45a3c97e992 SHA512 2dbd4e784f65b02a8c93fc5f15236df3649d667a9792f6cac929dbac5d971495bdab4825df0fcd6817b9a9f79b7a5d8cfbdf8e4d18605f0761546b31b3091ad7 diff --git a/dev-python/automat/automat-0.8.0.ebuild b/dev-python/automat/automat-0.8.0.ebuild new file mode 100644 index 00000000000..075a0b131e2 --- /dev/null +++ b/dev-python/automat/automat-0.8.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) + +inherit distutils-r1 + +MY_PN="A${PN:1}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Self-service finite-state machines for the programmer on the go" +HOMEPAGE="https://github.com/glyph/automat https://pypi.org/project/Automat/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="examples" + +RDEPEND=" + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + dev-python/m2r[${PYTHON_USEDEP}] +" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/automat-0.8.0-no-setup-py-m2r-import.patch" +) + +distutils_enable_tests pytest + +python_prepare_all() { + if use test ; then + # Remove since this is upstream benchmarking tests + rm -r benchmark || die "FAILED to remove benchmark tests" + fi + + # avoid a setuptools_scm dependency + sed -r -i "s:use_scm_version=True:version='${PV}': ; + s:[\"']setuptools[_-]scm[\"'](,|)::" setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + if use examples; then + docinto examples + dodoc docs/examples/*.py + fi + + distutils-r1_python_install_all +} + +pkg_postinst() { + einfo "For additional visualization functionality install these optional dependencies" + einfo " >=dev-python/twisted-16.1.1" + einfo " media-gfx/graphviz[python]" +} diff --git a/dev-python/automat/files/automat-0.8.0-no-setup-py-m2r-import.patch b/dev-python/automat/files/automat-0.8.0-no-setup-py-m2r-import.patch new file mode 100644 index 00000000000..161b219626d --- /dev/null +++ b/dev-python/automat/files/automat-0.8.0-no-setup-py-m2r-import.patch @@ -0,0 +1,27 @@ +diff --git a/setup.py b/setup.py +index d0dec04..7a85a6e 100644 +--- a/setup.py ++++ b/setup.py +@@ -4,14 +4,6 @@ Setup file for automat + + from setuptools import setup, find_packages + +-try: +- from m2r import parse_from_file +- long_description = parse_from_file('README.md') +-except(IOError, ImportError): +- print("\n\n!!! m2r not found, long_description is bad, don't upload this to PyPI !!!\n\n") +- import io +- long_description = io.open('README.md', encoding="utf-8").read() +- + setup( + name='Automat', + use_scm_version=True, +@@ -19,7 +11,6 @@ setup( + description=""" + Self-service finite-state machines for the programmer on the go. + """.strip(), +- long_description=long_description, + packages=find_packages(exclude=[]), + package_dir={'automat': 'automat'}, + setup_requires=[