diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/pkginfo | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/pkginfo')
-rw-r--r-- | dev-python/pkginfo/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pkginfo/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pkginfo/pkginfo-1.0.ebuild | 48 | ||||
-rw-r--r-- | dev-python/pkginfo/pkginfo-1.2.1.ebuild | 51 |
4 files changed, 113 insertions, 0 deletions
diff --git a/dev-python/pkginfo/Manifest b/dev-python/pkginfo/Manifest new file mode 100644 index 000000000000..938952673fb7 --- /dev/null +++ b/dev-python/pkginfo/Manifest @@ -0,0 +1,2 @@ +DIST pkginfo-1.0.tar.gz 24802 SHA256 27b171632c6894ae5d0d5677678dfc4e9b86f3b422eb3db1cc62960b1c9886f0 SHA512 1b0f9ed60b53202deb729fa9261059b7fe1b3e4561f27ad51152e5077c45dd4f47fcb81da45cd2e509b046e9bb05652533ae90de31f93831743a9d35c938b14d WHIRLPOOL 312e3bac0a8e4740a40484f9e77a137479e339b6c472409e890d3ba13059a6637c8c2bb0d8bd4496364d98ff3ac1fe7272d4750560c4cdc1d9735187ede0cd5c +DIST pkginfo-1.2.1.tar.gz 31072 SHA256 ad3f6dfe8a831f96a7b56a588ca874137ca102cc6b79fc9b0a1c3b7ab7320f3c SHA512 8a530a164befdcbc6f1f550e106880e14e9d2c762a5e1055f926ccf0228d9e2312f11598454ef015e97dccb78ac7aeb7309f34279590cd318c19c2bd9a29ed2a WHIRLPOOL 1ab43db82665e0abed88bf59115df726475ba7c611b077803721cd6bfcfcc81120c7a996e8945e74ad18c1ec7f6c9e5a1396df37d4f2c0eca24924f4c22e9ee3 diff --git a/dev-python/pkginfo/metadata.xml b/dev-python/pkginfo/metadata.xml new file mode 100644 index 000000000000..4bd145235c72 --- /dev/null +++ b/dev-python/pkginfo/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <maintainer> + <email>idella4@gentoo.org</email> + <name>Ian Delaney</name> + </maintainer> + <upstream> + <remote-id type="pypi">pkginfo</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pkginfo/pkginfo-1.0.ebuild b/dev-python/pkginfo/pkginfo-1.0.ebuild new file mode 100644 index 000000000000..bc94dba109cf --- /dev/null +++ b/dev-python/pkginfo/pkginfo-1.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 pypy ) + +inherit distutils-r1 + +DESCRIPTION="Provides an API for querying the distutils metadata written in a PKG-INFO file" +HOMEPAGE="http://pypi.python.org/pypi/pkginfo" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +KEYWORDS="amd64 x86" +IUSE="doc examples" + +LICENSE="MIT" +SLOT="0" +DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +python_prepare_all() { + sed -e 's:SPHINXBUILD = sphinx-build:SPHINXBUILD = /usr/bin/sphinx-build:' \ + -i docs/Makefile || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + pushd pkginfo/tests/ > /dev/null + for test in test_*.py; do + ${PYTHON} ${test} || die "${test} failed with Python ${PYTHON_ABI}" + if [[ $? ]]; then + einfo "Test ${test} successful" + else + die "Test ${test} failed under ${EPYTHON}" + fi + done +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/.build/html/. ) + use examples && local EXAMPLES=( docs/examples/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/pkginfo/pkginfo-1.2.1.ebuild b/dev-python/pkginfo/pkginfo-1.2.1.ebuild new file mode 100644 index 000000000000..45d92a2a1a9b --- /dev/null +++ b/dev-python/pkginfo/pkginfo-1.2.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Provides an API for querying the distutils metadata written in a PKG-INFO file" +HOMEPAGE="http://pypi.python.org/pypi/pkginfo" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" +IUSE="doc examples" + +LICENSE="MIT" +SLOT="0" +DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +python_prepare_all() { + sed -e 's:SPHINXBUILD = sphinx-build:SPHINXBUILD = /usr/bin/sphinx-build:' \ + -i docs/Makefile || die + + # Disable tests that seek to read the version of pkginfo from an installed state + # These test will still become installed and testable once installed + sed -e 's:test_w_directory_no_EGG_INFO:_&:' \ + -e 's:test_w_module_and_metadata_version:_&:' \ + -e 's:test_w_package_name_and_metadata_version:_&:' \ + -i pkginfo/tests/test_utils.py || die + sed -e 's:test_ctor_w_path_nested_egg_info:_&:' \ + -i pkginfo/tests/test_develop.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + "${PYTHON}" -m unittest discover || die "Test ${test} failed under ${EPYTHON}" + popd > /dev/null +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/.build/html/. ) + use examples && local EXAMPLES=( docs/examples/. ) + distutils-r1_python_install_all +} |