dev-python/pyscaffold: New package written by me

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
Justin Lecher
2015-11-03 10:36:38 +01:00
parent 14989111bf
commit aa362397fc
4 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST pyscaffold-2.4.1.tar.gz 108670 SHA256 bb91c4682c712b6a446d2b3b53dd27d0b8f2fb2050995e1b7f16aa8d6ec391c2 SHA512 ec5b5cf842b62f1989741bde84bf5ef5940583379e2b93672e95444a40685ae020286f40d47c31a4382f2c892dd17270349942f1544207036ff4e99a29e9e76d WHIRLPOOL d0ae0d1d69beaa21902f9f69ac1432734c11e15ff3c5d428602793f0ce4b2a53376a00c4f52004fb3f49da06bbd112f6ed72100fee7bdcfee26e7e23c54ec8af

View File

@@ -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

View File

@@ -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>

View File

@@ -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
}