diff options
Diffstat (limited to 'dev-python/atomicwrites')
-rw-r--r-- | dev-python/atomicwrites/Manifest | 2 | ||||
-rw-r--r-- | dev-python/atomicwrites/atomicwrites-1.2.1.ebuild | 41 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/atomicwrites/Manifest b/dev-python/atomicwrites/Manifest index 9eb4d15d4934..52aaf48474be 100644 --- a/dev-python/atomicwrites/Manifest +++ b/dev-python/atomicwrites/Manifest @@ -1,4 +1,6 @@ DIST atomicwrites-1.1.5.tar.gz 18951 BLAKE2B b0932995aae3ca23c11aace182429f4888819ea542a12b59d5b7ed4621c4759285d0cba306437bd1ce35b1ba32eac8ae6afc6548f2bae61870dbf03927c4fe75 SHA512 4de8ab93dcb226c55e8ae1b0ef883c2e1eeae50ac6596afe036ca51dbf6b094c13dbf2d792972312d4c53551886aaa2713aac54bfab42b85abef4d1146e039ac +DIST atomicwrites-1.2.1.tar.gz 11660 BLAKE2B 06b4ca25f39be0e7e8d8e8b46749d7dce052f912e82b1ccd39e308c8ed51ab0d4891f00c11d0e52ef50901c01566f20fcf1318cb472c9a1f3a08617fd1b56235 SHA512 4df7ee97e0817a80378b273ced310b8ad88eb6ced93a594a6e3dc38ad1e7208226fde01b6d282f85583c57a50859e82c85bacaae8a7c64fce55e6965f74b12c5 EBUILD atomicwrites-1.1.5-r2.ebuild 578 BLAKE2B ad9188acc6f21a3352510d2efae465d010e763f21f45d6604979b4a48da0e77817746037f8472bc86bdd034163e0c75da40a56784eb0e979e856b5dc86d8eeb0 SHA512 1af57e581631a2cda8f7ee9de709bbd2abb1475d5f25331d9fa2683e5b75892f897e68f092f96b5ffe522a5d2b1966aca0a81a37fe80c38f08b9599d63d2b715 EBUILD atomicwrites-1.1.5-r3.ebuild 942 BLAKE2B d1a3f23d9b752035b1445e344e06db342b6ec15461d17fc9d8640773892e7a5fc83a7b344a3cd566d3ba7c0c5f425a1d70936e262ded4c0d86d15583c86db963 SHA512 1afea14ad6f9b9e14fe88d1023c9e2610299edd9e1f5913ed1678fe01b490a7d6cc326bfb2ec6ebff205d14a2682ce4c509a3d4f9e8e786dfaaf7fadf2fc409a +EBUILD atomicwrites-1.2.1.ebuild 942 BLAKE2B d1a3f23d9b752035b1445e344e06db342b6ec15461d17fc9d8640773892e7a5fc83a7b344a3cd566d3ba7c0c5f425a1d70936e262ded4c0d86d15583c86db963 SHA512 1afea14ad6f9b9e14fe88d1023c9e2610299edd9e1f5913ed1678fe01b490a7d6cc326bfb2ec6ebff205d14a2682ce4c509a3d4f9e8e786dfaaf7fadf2fc409a MISC metadata.xml 438 BLAKE2B c2a138ede668039b703fdc3e2ca8e1a7a07546e01540fdc502d79a48a8ddfae8dc7a79ed371373d95054731fcb25af67daf75ef5a1c08fafe9976f7a2c30525d SHA512 f38332e752b8bb660d8d8291b897fc96865a134108198e01df2dc4365c0c6e87c6039a907da38080a4d07d7c57750f8a32c6d6c3653b57f5aa193ca5b5b53449 diff --git a/dev-python/atomicwrites/atomicwrites-1.2.1.ebuild b/dev-python/atomicwrites/atomicwrites-1.2.1.ebuild new file mode 100644 index 000000000000..5ca007ff2e86 --- /dev/null +++ b/dev-python/atomicwrites/atomicwrites-1.2.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6,7}} ) + +inherit distutils-r1 + +DESCRIPTION="Atomic file writes" +HOMEPAGE="https://github.com/untitaker/python-atomicwrites" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc64 ~x86 ~amd64-fbsd" +IUSE="doc test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" + +python_prepare_all() { + sed -i "/'sphinx.ext.intersphinx'/d" docs/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + sphinx-build docs docs/_build/html || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + py.test -v || die "Tests fail with ${EPYTHON}" +} |