1 |
commit: d77d2d0183c01f91ebbade3bae3adc673da99240 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Wed Nov 27 22:45:04 2019 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 27 22:50:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d77d2d01 |
7 |
|
8 |
dev-python/automat-0.8.0: bump, add py38 and pypy3 |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/automat/Manifest | 1 + |
15 |
dev-python/automat/automat-0.8.0.ebuild | 64 ++++++++++++++++++++++ |
16 |
.../automat-0.8.0-no-setup-py-m2r-import.patch | 27 +++++++++ |
17 |
3 files changed, 92 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/automat/Manifest b/dev-python/automat/Manifest |
20 |
index af99aefb7a7..a278fa8c8a9 100644 |
21 |
--- a/dev-python/automat/Manifest |
22 |
+++ b/dev-python/automat/Manifest |
23 |
@@ -1,3 +1,4 @@ |
24 |
DIST Automat-0.5.0.tar.gz 32599 BLAKE2B 951da8840c2334fe3cd86804b39beedaad0d344d66742e8bb72e2d2ace2029b037acac8ffccc5643fd37f81020a567374a25ed42f7bc386770a30956464f52eb SHA512 7b4fc64e1b3cc514e3513c4be7387309a9e0c6d59ef091131404642b517a324b4a0eb677bee99da038664bd6713f2d2078c621f056e98b35966caf324741eeeb |
25 |
DIST Automat-0.6.0.tar.gz 31767 BLAKE2B 28baa9d6cc7497f9c0a4b7f4050b197d3dff871b91f5f3e29bdc47ace443af8de0fbeacf1657dc6565b3ab824365362a42204d6d89a8dfc82eaa6cd92d4e2308 SHA512 94f2fa06b0e0e1c0538bcf4bd9046ea40600a018bdd1da2d5bed479877807ad56e448c4f1d7ec87341f80013ae6c35b01201cbe3c4ecae1105419038ed43024d |
26 |
DIST Automat-0.7.0.tar.gz 61461 BLAKE2B dd09ce090c7333ee17b701bde2c78e01dacf40cefee847061a2019bb27f0982091e7628737211421ada351937caf9c6734cb445ee6462ce84b381030b013bd05 SHA512 a6f307d312a3ceb721071b5212297c73d2306894b5fafd39265578041a2859bd6f041ac43a654bdda4175a70a4e90e0db1ee35cd43fa620cd5c594b5d1988a74 |
27 |
+DIST Automat-0.8.0.tar.gz 59687 BLAKE2B 56e4ec76564d321ca9a709c484077a4003eea2842160e226728aaaa4ec6ebc2486482f79cd919bef7bbec8baeee7a34ca2a11d48665bb36c79c5a45a3c97e992 SHA512 2dbd4e784f65b02a8c93fc5f15236df3649d667a9792f6cac929dbac5d971495bdab4825df0fcd6817b9a9f79b7a5d8cfbdf8e4d18605f0761546b31b3091ad7 |
28 |
|
29 |
diff --git a/dev-python/automat/automat-0.8.0.ebuild b/dev-python/automat/automat-0.8.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..075a0b131e2 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/automat/automat-0.8.0.ebuild |
34 |
@@ -0,0 +1,64 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+MY_PN="A${PN:1}" |
44 |
+MY_P="${MY_PN}-${PV}" |
45 |
+ |
46 |
+DESCRIPTION="Self-service finite-state machines for the programmer on the go" |
47 |
+HOMEPAGE="https://github.com/glyph/automat https://pypi.org/project/Automat/" |
48 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
53 |
+IUSE="examples" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
57 |
+ dev-python/six[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ ${RDEPEND} |
61 |
+ dev-python/m2r[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+ |
64 |
+S="${WORKDIR}/${MY_P}" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/automat-0.8.0-no-setup-py-m2r-import.patch" |
68 |
+) |
69 |
+ |
70 |
+distutils_enable_tests pytest |
71 |
+ |
72 |
+python_prepare_all() { |
73 |
+ if use test ; then |
74 |
+ # Remove since this is upstream benchmarking tests |
75 |
+ rm -r benchmark || die "FAILED to remove benchmark tests" |
76 |
+ fi |
77 |
+ |
78 |
+ # avoid a setuptools_scm dependency |
79 |
+ sed -r -i "s:use_scm_version=True:version='${PV}': ; |
80 |
+ s:[\"']setuptools[_-]scm[\"'](,|)::" setup.py || die |
81 |
+ |
82 |
+ distutils-r1_python_prepare_all |
83 |
+} |
84 |
+ |
85 |
+python_install_all() { |
86 |
+ if use examples; then |
87 |
+ docinto examples |
88 |
+ dodoc docs/examples/*.py |
89 |
+ fi |
90 |
+ |
91 |
+ distutils-r1_python_install_all |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ einfo "For additional visualization functionality install these optional dependencies" |
96 |
+ einfo " >=dev-python/twisted-16.1.1" |
97 |
+ einfo " media-gfx/graphviz[python]" |
98 |
+} |
99 |
|
100 |
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 |
101 |
new file mode 100644 |
102 |
index 00000000000..161b219626d |
103 |
--- /dev/null |
104 |
+++ b/dev-python/automat/files/automat-0.8.0-no-setup-py-m2r-import.patch |
105 |
@@ -0,0 +1,27 @@ |
106 |
+diff --git a/setup.py b/setup.py |
107 |
+index d0dec04..7a85a6e 100644 |
108 |
+--- a/setup.py |
109 |
++++ b/setup.py |
110 |
+@@ -4,14 +4,6 @@ Setup file for automat |
111 |
+ |
112 |
+ from setuptools import setup, find_packages |
113 |
+ |
114 |
+-try: |
115 |
+- from m2r import parse_from_file |
116 |
+- long_description = parse_from_file('README.md') |
117 |
+-except(IOError, ImportError): |
118 |
+- print("\n\n!!! m2r not found, long_description is bad, don't upload this to PyPI !!!\n\n") |
119 |
+- import io |
120 |
+- long_description = io.open('README.md', encoding="utf-8").read() |
121 |
+- |
122 |
+ setup( |
123 |
+ name='Automat', |
124 |
+ use_scm_version=True, |
125 |
+@@ -19,7 +11,6 @@ setup( |
126 |
+ description=""" |
127 |
+ Self-service finite-state machines for the programmer on the go. |
128 |
+ """.strip(), |
129 |
+- long_description=long_description, |
130 |
+ packages=find_packages(exclude=[]), |
131 |
+ package_dir={'automat': 'automat'}, |
132 |
+ setup_requires=[ |