dev-python/pyscaffold: New package written by me
authorJustin Lecher <jlec@gentoo.org>
Tue, 3 Nov 2015 09:36:38 +0000 (10:36 +0100)
committerJustin Lecher <jlec@gentoo.org>
Tue, 3 Nov 2015 10:24:40 +0000 (11:24 +0100)
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/pyscaffold/Manifest [new file with mode: 0644]
dev-python/pyscaffold/files/pyscaffold-2.4.1-loose-dep-restrictions-backport.patch [new file with mode: 0644]
dev-python/pyscaffold/metadata.xml [new file with mode: 0644]
dev-python/pyscaffold/pyscaffold-2.4.1.ebuild [new file with mode: 0644]

diff --git a/dev-python/pyscaffold/Manifest b/dev-python/pyscaffold/Manifest
new file mode 100644 (file)
index 0000000..a69c512
--- /dev/null
@@ -0,0 +1 @@
+DIST pyscaffold-2.4.1.tar.gz 108670 SHA256 bb91c4682c712b6a446d2b3b53dd27d0b8f2fb2050995e1b7f16aa8d6ec391c2 SHA512 ec5b5cf842b62f1989741bde84bf5ef5940583379e2b93672e95444a40685ae020286f40d47c31a4382f2c892dd17270349942f1544207036ff4e99a29e9e76d WHIRLPOOL d0ae0d1d69beaa21902f9f69ac1432734c11e15ff3c5d428602793f0ce4b2a53376a00c4f52004fb3f49da06bbd112f6ed72100fee7bdcfee26e7e23c54ec8af
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
new file mode 100644 (file)
index 0000000..ed7c8bd
--- /dev/null
@@ -0,0 +1,36 @@
+From 513393e20f20cf62c09bd445057194ee378dda57 Mon Sep 17 00:00:00 2001
+From: Florian Wilhelm <Florian.Wilhelm@gmail.com>
+Date: Wed, 16 Sep 2015 12:59:49 +0200
+Subject: [PATCH] Fix issue 69
+
+---
+ CHANGES.rst      | 5 +++++
+ requirements.txt | 4 ++--
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/CHANGES.rst b/CHANGES.rst
+index 922d41b..0478701 100644
+--- a/CHANGES.rst
++++ b/CHANGES.rst
+@@ -2,6 +2,11 @@
+ Release Notes
+ =============
+ 
++Version 2.4.2, 2015-09-16
++=========================
++
++- Fix version conflicts due to too tight pinning, issue #69
++
+ Version 2.4.1, 2015-09-09
+ =========================
+ 
+diff --git a/requirements.txt b/requirements.txt
+index f9695f8..a620a77 100644
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -1,3 +1,3 @@
+ six
+-setuptools_scm>=1.7,<1.8a0
+-pbr>=1.7,<1.8a0
++setuptools_scm>=1.7
++pbr>=1.6
diff --git a/dev-python/pyscaffold/metadata.xml b/dev-python/pyscaffold/metadata.xml
new file mode 100644 (file)
index 0000000..c166166
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer>
+               <email>jlec@gentoo.org</email>
+               <name>Justin Lecher</name>
+       </maintainer>
+</pkgmetadata>
diff --git a/dev-python/pyscaffold/pyscaffold-2.4.1.ebuild b/dev-python/pyscaffold/pyscaffold-2.4.1.ebuild
new file mode 100644 (file)
index 0000000..993b104
--- /dev/null
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
+
+inherit distutils-r1
+
+MY_PN="PyScaffold"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Tool for easily putting up the scaffold of a Python project"
+HOMEPAGE="https://pypi.python.org/pypi/PyScaffold http://pyscaffold.readthedocs.org/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+       dev-python/six[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+       >=dev-python/pbr-1.6[${PYTHON_USEDEP}]
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       >=dev-python/setuptools_scm-1.7[${PYTHON_USEDEP}]
+       test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+               dev-python/pytest-runner[${PYTHON_USEDEP}]
+       )
+"
+
+PATCHES=( "${FILESDIR}"/${P}-loose-dep-restrictions-backport.patch )
+
+python_prepare_all() {
+       sed \
+               -e 's: + pytest_runner::g' \
+               -i setup.py || die
+
+       # Creates all sort of mem problem due to fetch restrictions
+       rm tests/test_install.py || die
+
+       # Online tests
+       sed \
+               -e 's:test_api_with_cookiecutter:_&:g' \
+               -e 's:test_pyscaffold_keyword:_&:g' \
+               -i tests/*py || die
+
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       git config --global user.email "you@example.com"
+       git config --global user.name "Your Name"
+
+       esetup.py test
+}