1 |
commit: aa362397fc99cbb8cbed07844a09c1f49e105817 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 3 09:36:38 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 3 10:24:40 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa362397 |
7 |
|
8 |
dev-python/pyscaffold: New package written by me |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/pyscaffold/Manifest | 1 + |
14 |
...old-2.4.1-loose-dep-restrictions-backport.patch | 36 +++++++++++++ |
15 |
dev-python/pyscaffold/metadata.xml | 8 +++ |
16 |
dev-python/pyscaffold/pyscaffold-2.4.1.ebuild | 60 ++++++++++++++++++++++ |
17 |
4 files changed, 105 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/pyscaffold/Manifest b/dev-python/pyscaffold/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..a69c512 |
22 |
--- /dev/null |
23 |
+++ b/dev-python/pyscaffold/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST pyscaffold-2.4.1.tar.gz 108670 SHA256 bb91c4682c712b6a446d2b3b53dd27d0b8f2fb2050995e1b7f16aa8d6ec391c2 SHA512 ec5b5cf842b62f1989741bde84bf5ef5940583379e2b93672e95444a40685ae020286f40d47c31a4382f2c892dd17270349942f1544207036ff4e99a29e9e76d WHIRLPOOL d0ae0d1d69beaa21902f9f69ac1432734c11e15ff3c5d428602793f0ce4b2a53376a00c4f52004fb3f49da06bbd112f6ed72100fee7bdcfee26e7e23c54ec8af |
26 |
|
27 |
diff --git a/dev-python/pyscaffold/files/pyscaffold-2.4.1-loose-dep-restrictions-backport.patch b/dev-python/pyscaffold/files/pyscaffold-2.4.1-loose-dep-restrictions-backport.patch |
28 |
new file mode 100644 |
29 |
index 0000000..ed7c8bd |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pyscaffold/files/pyscaffold-2.4.1-loose-dep-restrictions-backport.patch |
32 |
@@ -0,0 +1,36 @@ |
33 |
+From 513393e20f20cf62c09bd445057194ee378dda57 Mon Sep 17 00:00:00 2001 |
34 |
+From: Florian Wilhelm <Florian.Wilhelm@×××××.com> |
35 |
+Date: Wed, 16 Sep 2015 12:59:49 +0200 |
36 |
+Subject: [PATCH] Fix issue 69 |
37 |
+ |
38 |
+--- |
39 |
+ CHANGES.rst | 5 +++++ |
40 |
+ requirements.txt | 4 ++-- |
41 |
+ 2 files changed, 7 insertions(+), 2 deletions(-) |
42 |
+ |
43 |
+diff --git a/CHANGES.rst b/CHANGES.rst |
44 |
+index 922d41b..0478701 100644 |
45 |
+--- a/CHANGES.rst |
46 |
++++ b/CHANGES.rst |
47 |
+@@ -2,6 +2,11 @@ |
48 |
+ Release Notes |
49 |
+ ============= |
50 |
+ |
51 |
++Version 2.4.2, 2015-09-16 |
52 |
++========================= |
53 |
++ |
54 |
++- Fix version conflicts due to too tight pinning, issue #69 |
55 |
++ |
56 |
+ Version 2.4.1, 2015-09-09 |
57 |
+ ========================= |
58 |
+ |
59 |
+diff --git a/requirements.txt b/requirements.txt |
60 |
+index f9695f8..a620a77 100644 |
61 |
+--- a/requirements.txt |
62 |
++++ b/requirements.txt |
63 |
+@@ -1,3 +1,3 @@ |
64 |
+ six |
65 |
+-setuptools_scm>=1.7,<1.8a0 |
66 |
+-pbr>=1.7,<1.8a0 |
67 |
++setuptools_scm>=1.7 |
68 |
++pbr>=1.6 |
69 |
|
70 |
diff --git a/dev-python/pyscaffold/metadata.xml b/dev-python/pyscaffold/metadata.xml |
71 |
new file mode 100644 |
72 |
index 0000000..c166166 |
73 |
--- /dev/null |
74 |
+++ b/dev-python/pyscaffold/metadata.xml |
75 |
@@ -0,0 +1,8 @@ |
76 |
+<?xml version="1.0" encoding="UTF-8"?> |
77 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
78 |
+<pkgmetadata> |
79 |
+ <maintainer> |
80 |
+ <email>jlec@g.o</email> |
81 |
+ <name>Justin Lecher</name> |
82 |
+ </maintainer> |
83 |
+</pkgmetadata> |
84 |
|
85 |
diff --git a/dev-python/pyscaffold/pyscaffold-2.4.1.ebuild b/dev-python/pyscaffold/pyscaffold-2.4.1.ebuild |
86 |
new file mode 100644 |
87 |
index 0000000..993b104 |
88 |
--- /dev/null |
89 |
+++ b/dev-python/pyscaffold/pyscaffold-2.4.1.ebuild |
90 |
@@ -0,0 +1,60 @@ |
91 |
+# Copyright 1999-2015 Gentoo Foundation |
92 |
+# Distributed under the terms of the GNU General Public License v2 |
93 |
+# $Id$ |
94 |
+ |
95 |
+EAPI=5 |
96 |
+ |
97 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) |
98 |
+ |
99 |
+inherit distutils-r1 |
100 |
+ |
101 |
+MY_PN="PyScaffold" |
102 |
+MY_P="${MY_PN}-${PV}" |
103 |
+ |
104 |
+DESCRIPTION="Tool for easily putting up the scaffold of a Python project" |
105 |
+HOMEPAGE="https://pypi.python.org/pypi/PyScaffold http://pyscaffold.readthedocs.org/" |
106 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${P}.tar.gz" |
107 |
+ |
108 |
+SLOT="0" |
109 |
+LICENSE="BSD" |
110 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
111 |
+IUSE="test" |
112 |
+ |
113 |
+RDEPEND=" |
114 |
+ dev-python/six[${PYTHON_USEDEP}] |
115 |
+" |
116 |
+DEPEND="${RDEPEND} |
117 |
+ >=dev-python/pbr-1.6[${PYTHON_USEDEP}] |
118 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
119 |
+ >=dev-python/setuptools_scm-1.7[${PYTHON_USEDEP}] |
120 |
+ test? ( |
121 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
122 |
+ dev-python/pytest-runner[${PYTHON_USEDEP}] |
123 |
+ ) |
124 |
+" |
125 |
+ |
126 |
+PATCHES=( "${FILESDIR}"/${P}-loose-dep-restrictions-backport.patch ) |
127 |
+ |
128 |
+python_prepare_all() { |
129 |
+ sed \ |
130 |
+ -e 's: + pytest_runner::g' \ |
131 |
+ -i setup.py || die |
132 |
+ |
133 |
+ # Creates all sort of mem problem due to fetch restrictions |
134 |
+ rm tests/test_install.py || die |
135 |
+ |
136 |
+ # Online tests |
137 |
+ sed \ |
138 |
+ -e 's:test_api_with_cookiecutter:_&:g' \ |
139 |
+ -e 's:test_pyscaffold_keyword:_&:g' \ |
140 |
+ -i tests/*py || die |
141 |
+ |
142 |
+ distutils-r1_python_prepare_all |
143 |
+} |
144 |
+ |
145 |
+python_test() { |
146 |
+ git config --global user.email "you@×××××××.com" |
147 |
+ git config --global user.name "Your Name" |
148 |
+ |
149 |
+ esetup.py test |
150 |
+} |