diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/astropy |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/astropy')
-rw-r--r-- | dev-python/astropy/Manifest | 16 | ||||
-rw-r--r-- | dev-python/astropy/astropy-1.2.1.ebuild | 97 | ||||
-rw-r--r-- | dev-python/astropy/astropy-1.3.3.ebuild | 96 | ||||
-rw-r--r-- | dev-python/astropy/astropy-2.0.1.ebuild | 94 | ||||
-rw-r--r-- | dev-python/astropy/files/astropy-1.0.4-system-configobj.patch | 14 | ||||
-rw-r--r-- | dev-python/astropy/files/astropy-1.0.4-system-six.patch | 12 | ||||
-rw-r--r-- | dev-python/astropy/files/astropy-1.1.1-mark-kown-failures.patch | 99 | ||||
-rw-r--r-- | dev-python/astropy/files/astropy-1.2.1-cfitsio-338.patch | 16 | ||||
-rw-r--r-- | dev-python/astropy/files/astropy-1.3.3-external-python-pkgs.patch | 119 | ||||
-rw-r--r-- | dev-python/astropy/files/astropy-1.3.3-mark-known-failures.patch | 84 | ||||
-rw-r--r-- | dev-python/astropy/files/astropy-ply.py | 58 | ||||
-rw-r--r-- | dev-python/astropy/metadata.xml | 16 |
12 files changed, 721 insertions, 0 deletions
diff --git a/dev-python/astropy/Manifest b/dev-python/astropy/Manifest new file mode 100644 index 000000000000..76f0e0dcedda --- /dev/null +++ b/dev-python/astropy/Manifest @@ -0,0 +1,16 @@ +AUX astropy-1.0.4-system-configobj.patch 601 SHA256 6caadc044d0f64b5f372344371f9c0dd05c8f414746348474c55d42307c73817 SHA512 9cb9bbb65fb4c1e3f45256643cde6e2c3f5d9cf60bd3ce2d1aab7e1f4d1fc82581e85059b1f8f50af1217836928bec83db5d87633c1252448ddfdbb3ec3b819e WHIRLPOOL 7bfcb31e2938f8792a753bb70a9d59bfe7ee246680c178a6832a275e659f80074c17b47e05ddfeb30a0ccdf5b004fd2f9fedc8a0ee2c751a987b58f68edfc1c8 +AUX astropy-1.0.4-system-six.patch 568 SHA256 0bb273644ec20180ed6e6a27d48341161ddd2d84079d06c21e28bf78548a166d SHA512 7687cd3fb2dc8f9d491ec15cc848c53aa58df2405bb1a48d68c384b5a3595502abcf2413bef95963c4fdf30470f95b0906a3fd991ad3b72f54a82ea2da3c8594 WHIRLPOOL 8a14d11c3c9431e124ac46699240454ffdc85bfcb68e6e9e865de67693f6a7ffd635706dfc81a5046b98844643ea775405997995b337860354acebba07246ae1 +AUX astropy-1.1.1-mark-kown-failures.patch 3418 SHA256 59bc0b993b64999a1665aea58ed4634d9838997fbc305d1398c7b9160fc994ac SHA512 0b8b29c5cd9c9781c4f64c4595fba11efe1bd6d06be56a80fc8832a295b9c95993281014c642b21d40f3be18835de6d83796977c495a8c2ce1029c935d555962 WHIRLPOOL 6921e905d03c29033376ce2020576da05cb9ea8f93b84c869516f06491f181ce32d05eebb197cac3545c5dd2984fc23132c72940668cdb80d6e825aa960f5cc2 +AUX astropy-1.2.1-cfitsio-338.patch 667 SHA256 3280d270dd75acba713b162a60e5873a97c3c389c55c932b45859b962dfb9fad SHA512 4422dc794e2ad3ff91342b521b447115157c464883b928970ccba6a999bd7a1ceea2d5fc48f3c39769be4b9a174d571bd57ba58d1a08d90fa72f626932d60668 WHIRLPOOL 6e2f6e4e6623c6bfb9c1755e2e43ebd6c70fbb5995ab717b205921283f0f502ca9b87166bbae41fa34488cfcfc769d544f78ae456cc79170ca56350136a5d6e4 +AUX astropy-1.3.3-external-python-pkgs.patch 4890 SHA256 58398bb5e03e5eb8881586fe13142e31d051a9afc94f49574b6d66d7b41de7c0 SHA512 57aecc6768f4e7e3522fd3ec9bf39dbf769be0219df5780d1f535e4b228e9e90f3bc2330c6d8f3c4fab50a435abbfbe1478ca70f8067e5ffd11048783b7379a8 WHIRLPOOL 33daf737e17dfb0788c24d7c9325f8d91ba6b7eb819924c5560d8c67fff5cb94876909b65b97f5c2450e782ea6f66718003d46b7bcffd88cf230d3ac57a4ff79 +AUX astropy-1.3.3-mark-known-failures.patch 3374 SHA256 77aa14ba69b3df9f11ac1895b5d7f667c6213e2bafebb258a28c21641743e824 SHA512 7a2b9bb3a97ed99efe5c61d98e141e53775a1c106c758d662e22f7f6651b05e1d2ac429983b7fe431a07c9b94a93a43b158d68251a03220d3138683c52083a06 WHIRLPOOL 15861ec446d3ad34106daca334b785b53dc7b2861db7a538660ba76f20b12a5f318488ad15bfafcfd51afb139f526060ece4e5fdd1892e769685841896db0a56 +AUX astropy-ply.py 1674 SHA256 9f58bcd0f6491aaebc6b6778314c8f3ac95f2dd10d01ff63c417ba77e5fd05c8 SHA512 ebf5a7ec8df3c62b2f7ba91a4c5138558583186dfb945c89cc1454f9cafadc0e11bb5390c2aa57a993ca98e04dd06167e94d54fb1acc4b49c16e90dbab6b63d7 WHIRLPOOL f3edcb0ca04d47e8368b9a287fcd1a55af7293230c37750ba0e4f7dbfb82efd33a6d1b1c284417707344a9ecc63dc4c958c79f151c7749f8b3e98272586061e0 +DIST astropy-1.2.1.tar.gz 8179665 SHA256 0d7ef702166f26fed239b59fc12edcd5243ca5bf562a36202fd8c6b0270d6e48 SHA512 2ef37537a4c6b2ec50a1d898f600978475c9c5d2cb66ba19d06782656e9ddcb4aa6a8e53217e318448cedac45dac0dce0d8cc2fe94cddc15ebb306b3b0794595 WHIRLPOOL d37374f23a0121fdc92fa572facc248f0a571dacb8edcf1a9d0987d6a40287de199262ec01f654bd6ea5aece826e5588d2869558152adffe9ab490fa46f2e36d +DIST astropy-1.3.3.tar.gz 8427036 SHA256 ed093e033fcbee5a3ec122420c3376f8a80f74663214560727d3defe82170a99 SHA512 15956d488a390ab3b4091146bffe6f192f22e7598d00e302c2bcf0ec9728911f48bef3ee4c71d331f58e57aec86292421d27f915ea16027a7f62c5d43f6a12e5 WHIRLPOOL a9246b1ba56ecda5eec42e89998f18da4987f611d1154ba8ef5d3480d398fd77c0fdad6c15614885ae722454b9c284b9281ee926fed0f39c314864a015bf658f +DIST astropy-2.0.1.tar.gz 8220097 SHA256 25e0881a392a2e03b4a705cf9592f01894d23f64797323b21387efa8ea9ec03e SHA512 0677b4f22a9eb7d3334109a639ec14ce904935dc58925d303dc98c27cbac2be7d0e95bd873cc21d3cd92e8e553481d203382c281f91cb7a4e41c27d1ff83aac7 WHIRLPOOL af4d78b88cf9ea7f536eb2d6b6a0cc46068ae5312de3f8f83f0ad3bea539112868f3704f6898be6da6e1a0a60caadd2d88335523c242f6156723dfd849c6ef76 +EBUILD astropy-1.2.1.ebuild 2722 SHA256 31000b83ca542af0b2e98b1538baf25e0d70f0e179c6c9fc2e94cf44cbacfd17 SHA512 5bfc876359230883412b57d3de9fa99d88d83cf5c3bf5df5a74e24e10a5e729bd8445a2a8cc3f20792c81cd9a4efead673c39272ef31acfe6c68f3e784d8717b WHIRLPOOL 71bf6cdf56ea37c2de9528a9b5406be17ea5e89e881260375987987082e4dcaf91287038e0f2badf93f717e81abcfe4c5511d6f3cee8a6945e1cf82126be5b31 +EBUILD astropy-1.3.3.ebuild 2517 SHA256 4a94397354f7a363b22630fad09a261da5859f79f6e413684f903d67430b9627 SHA512 e1a26616f59e57377acce5dac0e06ffa83cb2a627a7fc5143a7a8b1f9445ddad2d9833680bb29b39bd9a74b6f25321c3b3e616d59b30c3d65869db9327a2694c WHIRLPOOL c842940dbff2e3322a62dd051f64ee58c4fa64ebbce36924ba959b0b7ea1403d0013053230a15f0815c8ce5458b507f07ccbc4b31e7900a8638a7df83d1eaeeb +EBUILD astropy-2.0.1.ebuild 2490 SHA256 1249f4b42c25985d26a9425d7aa75266a3734effc5ecf403f824815c828d2b9b SHA512 480cd8e1d9ed9813eb42aea7b1839c421b67c2cb3f27ced79007ce5ea9bf47a73d28cd10f5af8ae1f1ae9f9baad3cbdcba779fabceffcaa7f330df1ee8a4a574 WHIRLPOOL a2eb41b972df05d84ebb4a307167c03a93145b10ee71bc1bfced353ecb64843a851b13d31fa515f3dd64b2d6292a66c295f2d056880e86b46d61ca150733ea19 +MISC ChangeLog 6917 SHA256 444c267ce4e2dbff8d0d2a3b072786dcc2ff2009c30ea7bb2c33c5eb40c2fadf SHA512 44ca7409313bd23606f4501470168a19f71da9976f050f700a19513051fd3793383c9f8dbf9604c293bde989962933e2cef674aa62af87a8b7e0cea3eda66f7e WHIRLPOOL 1febdd98889a209ae584cedf67ae4ed2de39da74dbc47710bb13397dd234f3093754bd68d0325bdfad0b19b9b163006fd7bfa18aa4c74bf0e8332eec7f6352ba +MISC ChangeLog-2015 3905 SHA256 0caa97d13b7b0a80d2f5b4ea1d60ab6ad79b751e13e86694e83b0d77a083936f SHA512 d1321808335b50433e13c3238130153bbf5803b22145796ccbbdccd58d4636bea2d762fa0f71eb799293227e4124cb5ef1fee769f05b70201c48120c7a008914 WHIRLPOOL d06117b036c97da9f9abd4b8b525b0d17fa4d508fccc2b079ca6adcd2cb5e48334f8e95a514b29ccf61615d4fbc6685996e39e323aa8b1137546f8806f6e9742 +MISC metadata.xml 573 SHA256 bdd68bcb0bf0c3ca0e5ebdb00f7b04b6c22f60cc4958eeeacfc9f0657683d5da SHA512 a8054d4eb431348c9840e37a5877c2ce7cd4b73f213c1a24f9d3548dfc63a6756d80ffb9f96f78a053fb4ae2a39a424dbe46257be2e9f892f42ec18ff44fad17 WHIRLPOOL 87d8d5f608325797299e4c6ed130f76b7446535d4355ec7b338dc5ce834ab7224f489519b5e27ce73b273a3f19226232a0be2e6e06bb4a2e9a9330d5f37c668d diff --git a/dev-python/astropy/astropy-1.2.1.ebuild b/dev-python/astropy/astropy-1.2.1.ebuild new file mode 100644 index 000000000000..2f2c8fcdb9d2 --- /dev/null +++ b/dev-python/astropy/astropy-1.2.1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit distutils-r1 xdg-utils + +DESCRIPTION="Core functionality for performing astrophysics with Python" +HOMEPAGE="http://astropy.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND=" + dev-libs/expat:0= + dev-python/configobj[${PYTHON_USEDEP}] + >=dev-python/numpy-1.10[${PYTHON_USEDEP}] + dev-python/ply[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + >=sci-astronomy/erfa-1.2:0= + >=sci-astronomy/wcslib-5:0= + sci-libs/cfitsio:0= + sys-libs/zlib:0=" +DEPEND="${RDEPEND} + >=dev-python/astropy-helpers-1.1[${PYTHON_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + virtual/pkgconfig + doc? ( + media-gfx/graphviz + $(python_gen_cond_dep 'dev-libs/libxml2[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/h5py[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/matplotlib[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/sphinx[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/wcsaxes[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'sci-libs/scipy[${PYTHON_USEDEP}]' python2_7) + ) + test? ( + dev-libs/libxml2[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/h5py[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + )" + +REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.4-system-six.patch" + "${FILESDIR}/${PN}-1.0.4-system-configobj.patch" + "${FILESDIR}/${PN}-1.1.1-mark-kown-failures.patch" + "${FILESDIR}/${PN}-1.2.1-cfitsio-338.patch" +) + +pkg_setup() { + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' ) +} + +python_prepare_all() { + export mydistutilsargs="--offline" + export ASTROPY_USE_SYSTEM_PYTEST=True + rm -r ${PN}_helpers || die + cp "${FILESDIR}"/astropy-ply.py astropy/extern/ply.py || die + rm -r cextern/{expat,erfa,cfitsio,wcslib} || die + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + cat >> setup.cfg <<-EOF + [build] + use_system_libraries=1 + EOF + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + python_setup "python2*" + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_sphinx + fi +} + +python_test() { + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/astropy/astropy-1.3.3.ebuild b/dev-python/astropy/astropy-1.3.3.ebuild new file mode 100644 index 000000000000..784a43072ae8 --- /dev/null +++ b/dev-python/astropy/astropy-1.3.3.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 xdg-utils + +DESCRIPTION="Core functionality for performing astrophysics with Python" +HOMEPAGE="http://astropy.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +# ply-3.10 incompatible, keep bundled (bug #622802) +#rdep: dev-python/ply[${PYTHON_USEDEP}] +#prep: cp "${FILESDIR}"/astropy-ply.py astropy/extern/ply.py || die + +RDEPEND=" + dev-libs/expat:0= + dev-python/configobj[${PYTHON_USEDEP}] + >=dev-python/numpy-1.10[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + >=sci-astronomy/erfa-1.3:0= + >=sci-astronomy/wcslib-5:0= + >=sci-libs/cfitsio-3.410:0= + sys-libs/zlib:0=" +DEPEND="${RDEPEND} + dev-python/astropy-helpers[${PYTHON_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + virtual/pkgconfig + doc? ( + media-gfx/graphviz + dev-libs/libxml2[${PYTHON_USEDEP}] + dev-python/h5py[${PYTHON_USEDEP}] + dev-python/jplephem[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP},jpeg] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/sphinx-gallery[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + ) + test? ( + dev-libs/libxml2[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP},jpeg] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-mpl[${PYTHON_USEDEP}] + dev-python/h5py[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.3.3-mark-known-failures.patch + "${FILESDIR}"/${PN}-1.3.3-external-python-pkgs.patch +) + +python_prepare_all() { + export mydistutilsargs="--offline" + export ASTROPY_USE_SYSTEM_PYTEST=True + #rm -r ${PN}_helpers || die + rm -r cextern/{expat,erfa,cfitsio,wcslib} || die + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + cat >> setup.cfg <<-EOF + [build] + use_system_libraries=1 + EOF + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + mkdir -p examples + touch examples/README.txt || die + python_setup + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_docs --no-intersphinx + fi +} + +python_test() { + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/astropy/astropy-2.0.1.ebuild b/dev-python/astropy/astropy-2.0.1.ebuild new file mode 100644 index 000000000000..65cd60ea569d --- /dev/null +++ b/dev-python/astropy/astropy-2.0.1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 xdg-utils + +MYPV=${PV/_/} +S=${WORKDIR}/${PN}-${MYPV} + +DESCRIPTION="Core functionality for performing astrophysics with Python" +HOMEPAGE="http://astropy.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MYPV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND=" + dev-libs/expat:0= + dev-python/beautifulsoup:4[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/h5py[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + >=dev-python/jinja-2.7[${PYTHON_USEDEP}] + dev-python/jplephem[${PYTHON_USEDEP}] + dev-libs/libxml2[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/mpmath[${PYTHON_USEDEP}] + >=dev-python/numpy-1.10[${PYTHON_USEDEP}] + dev-python/objgraph[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP},jpeg] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + >=sci-astronomy/erfa-1.3:0= + >=sci-astronomy/wcslib-5:0= + >=sci-libs/cfitsio-3.410:0= + sci-libs/scipy[${PYTHON_USEDEP}] + sci-libs/scikits_image[${PYTHON_USEDEP}] + sys-libs/zlib:0= +" +DEPEND=" + >=dev-python/astropy-helpers-2[${PYTHON_USEDEP}] + >=dev-python/cython-0.21[${PYTHON_USEDEP}] + >=dev-python/jinja-2.7[${PYTHON_USEDEP}] + >=dev-python/numpy-1.10[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + virtual/pkgconfig + doc? ( + ${RDEPEND} + media-gfx/graphviz + dev-python/pytest[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.6[${PYTHON_USEDEP}] + >=dev-python/sphinx-gallery-0.1.9[${PYTHON_USEDEP}] + ) + test? ( + ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-mpl[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + export mydistutilsargs="--offline" + export ASTROPY_USE_SYSTEM_PYTEST=True + rm -r ${PN}_helpers || die + rm -r cextern/{expat,erfa,cfitsio,wcslib} || die + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + cat >> setup.cfg <<-EOF + + [build] + use_system_libraries=1 + EOF + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + VARTEXFONTS="${T}"/fonts MPLCONFIGDIR="${T}" PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_docs --no-intersphinx + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + esetup.py test +} diff --git a/dev-python/astropy/files/astropy-1.0.4-system-configobj.patch b/dev-python/astropy/files/astropy-1.0.4-system-configobj.patch new file mode 100644 index 000000000000..9578c0d43571 --- /dev/null +++ b/dev-python/astropy/files/astropy-1.0.4-system-configobj.patch @@ -0,0 +1,14 @@ +diff -ur astropy-0.4.1/astropy/config/configuration.py astropy-0.4.1.configobj/astropy/config/configuration.py +--- astropy-0.4.1/astropy/config/configuration.py 2014-09-01 22:41:30.066853605 +0200 ++++ astropy-0.4.1.configobj/astropy/config/configuration.py 2014-09-01 22:40:50.793528942 +0200 +@@ -23,7 +23,8 @@ + import types + from warnings import warn + +-from ..extern.configobj import configobj, validate ++import configobj ++import validate + from ..utils.exceptions import AstropyWarning, AstropyDeprecationWarning + from ..utils import find_current_module + from ..utils.misc import InheritDocstrings + diff --git a/dev-python/astropy/files/astropy-1.0.4-system-six.patch b/dev-python/astropy/files/astropy-1.0.4-system-six.patch new file mode 100644 index 000000000000..8bfab98124b3 --- /dev/null +++ b/dev-python/astropy/files/astropy-1.0.4-system-six.patch @@ -0,0 +1,12 @@ +diff -ur astropy-0.4.1/astropy/extern/six.py astropy-0.4.1.six/astropy/extern/six.py +--- astropy-0.4.1/astropy/extern/six.py 2014-09-01 21:57:56.663393218 +0200 ++++ astropy-0.4.1.six/astropy/extern/six.py 2014-09-01 21:59:02.940933294 +0200 +@@ -13,7 +13,7 @@ + # Update this to prevent Astropy from using its bundled copy of six + # (but only if some other version of at least _SIX_MIN_VERSION can + # be provided) +-_SIX_SEARCH_PATH = ['astropy.extern.bundled.six', 'six'] ++_SIX_SEARCH_PATH = ['six', 'astropy.extern.bundled.six'] + + + def _find_module(name, path=None): diff --git a/dev-python/astropy/files/astropy-1.1.1-mark-kown-failures.patch b/dev-python/astropy/files/astropy-1.1.1-mark-kown-failures.patch new file mode 100644 index 000000000000..2e2c82af5416 --- /dev/null +++ b/dev-python/astropy/files/astropy-1.1.1-mark-kown-failures.patch @@ -0,0 +1,99 @@ +Author: Ole Streicher <olebole@debian.org> +Description: Mark all known test failures as xfail. + These failures have been discussed with upstream. +--- a/astropy/io/fits/tests/test_connect.py ++++ b/astropy/io/fits/tests/test_connect.py +@@ -136,6 +136,8 @@ + # while reading is to check whether col.null is present. For float columns, col.null + # is not initialized + ++# see https://github.com/astropy/astropy/issues/3415 ++ @pytest.mark.xfail() + def test_read_from_fileobj(self, tmpdir): + filename = str(tmpdir.join('test_read_from_fileobj.fits')) + hdu = BinTableHDU(self.data) +@@ -172,6 +174,8 @@ + def setup_method(self, method): + warnings.filterwarnings('always') + ++# see https://github.com/astropy/astropy/issues/3415 ++ @pytest.mark.xfail() + def test_read(self, tmpdir): + filename = str(tmpdir.join('test_read.fits')) + self.hdus.writeto(filename) +@@ -189,6 +193,8 @@ + Table.read(filename, hdu=0) + assert exc.value.args[0] == 'No table found in hdu=0' + ++# see https://github.com/astropy/astropy/issues/3415 ++ @pytest.mark.xfail() + @pytest.mark.parametrize('hdu', [1, 'first']) + def test_read_with_hdu_1(self, tmpdir, hdu): + filename = str(tmpdir.join('test_read_with_hdu_1.fits')) +--- a/astropy/wcs/wcs.py ++++ b/astropy/wcs/wcs.py +@@ -84,6 +84,8 @@ + if six.PY3 or platform.system() == 'Windows': + __doctest_skip__ = ['WCS.all_world2pix'] + ++# see https://github.com/astropy/astropy/issues/3380 ++__doctest_skip__ = ['WCS.all_world2pix'] + + if _wcs is not None: + WCSBase = _wcs._Wcs +--- a/astropy/tests/tests/test_socketblocker.py ++++ b/astropy/tests/tests/test_socketblocker.py +@@ -66,8 +66,8 @@ + def _square(x): + return x ** 2 + +- +-@pytest.mark.skipif('not PY3_4 or sys.platform == "win32" or sys.platform.startswith("gnu0")') ++# see https://github.com/astropy/astropy/issues/4193 ++@pytest.mark.skipif(True, reason="Blocks on Debian CI test") + def test_multiprocessing_forkserver(): + """ + Test that using multiprocessing with forkserver works. Perhaps +--- a/astropy/coordinates/tests/test_api_ape5.py ++++ b/astropy/coordinates/tests/test_api_ape5.py +@@ -319,7 +319,8 @@ + # coordinate object, and one that returns a cartesian matrix but does *not* + # require `newobj` or `fk5frame` - this allows optimization of the transform. + +- ++# Temporary mark until scipy/numpy is fully on 3.5 ++@pytest.mark.xfail() + def test_highlevel_api(): + J2001 = time.Time('J2001', scale='utc') + +--- a/astropy/visualization/tests/test_histogram.py ++++ b/astropy/visualization/tests/test_histogram.py +@@ -50,6 +50,8 @@ + assert patches2[0].axes is ax[1] + + ++# see https://github.com/astropy/astropy/issues/4329 ++@pytest.mark.xfail() + @pytest.mark.skipif('not HAS_PLT') + def test_hist_autobin(rseed=0): + rng = np.random.RandomState(rseed) +--- a/astropy/table/tests/test_info.py ++++ b/astropy/table/tests/test_info.py +@@ -6,6 +6,7 @@ + import warnings + import numpy as np + ++from ...tests.helper import pytest + from ...extern import six + from ... import units as u + from ... import time +@@ -225,7 +226,8 @@ + t.info(out=out) + assert out.getvalue().splitlines() == exp + +- ++# see https://github.com/astropy/astropy/issues/4336 ++@pytest.mark.xfail() + def test_ignore_warnings(): + t = table.Table([[np.nan, np.nan]]) + with warnings.catch_warnings(record=True) as warns: diff --git a/dev-python/astropy/files/astropy-1.2.1-cfitsio-338.patch b/dev-python/astropy/files/astropy-1.2.1-cfitsio-338.patch new file mode 100644 index 000000000000..9a688d959851 --- /dev/null +++ b/dev-python/astropy/files/astropy-1.2.1-cfitsio-338.patch @@ -0,0 +1,16 @@ +Author: Ole Streicher <olebole@debian.org> +Description: Make TFORMx check more flexible + The maximal column length in cfitsio changed between version 3370 and 3380. + This patch checks their syntax, without a specific length. +Bug: https://github.com/astropy/astropy/issues/4646 +--- a/astropy/io/fits/tests/test_image.py ++++ b/astropy/io/fits/tests/test_image.py +@@ -1070,7 +1070,7 @@ + hdu.writeto(self.temp('test.fits')) + + with fits.open(self.temp('test.fits')) as hdul: +- assert (hdul['SCI'].data == cube).all() ++ assert np.abs(hdul['SCI'].data - cube).max() < 1./15. + + def test_subtractive_dither_seed(self): + """ diff --git a/dev-python/astropy/files/astropy-1.3.3-external-python-pkgs.patch b/dev-python/astropy/files/astropy-1.3.3-external-python-pkgs.patch new file mode 100644 index 000000000000..5c69704df9b0 --- /dev/null +++ b/dev-python/astropy/files/astropy-1.3.3-external-python-pkgs.patch @@ -0,0 +1,119 @@ +Edit: bicatali@gentoo.org, ply-3.10 incompatible, so keep bundled. + +From: Ole Streicher <olebole@debian.org> +Date: Thu, 12 Jan 2017 11:37:47 +0100 +Subject: Use external python modules instead of convenience copies + +--- + astropy/coordinates/angle_utilities.py | 2 +- + astropy/extern/configobj.py | 5 ++++- + astropy/extern/six.py | 2 +- + astropy/table/jsviewer.py | 14 ++++++++------ + astropy/table/tests/test_jsviewer.py | 6 +++--- + astropy/tests/helper.py | 2 +- + astropy/units/format/cds.py | 4 ++-- + astropy/units/format/generic.py | 4 ++-- + astropy/units/format/ogip.py | 4 ++-- + 9 files changed, 24 insertions(+), 19 deletions(-) + +diff --git a/astropy/extern/configobj.py b/astropy/extern/configobj.py +index 8d1bd8c..e3bb0e0 100644 +--- a/astropy/extern/configobj.py ++++ b/astropy/extern/configobj.py +@@ -7,5 +7,8 @@ currently installed version of python. + Also, this should actually never actually show up as a docstring, because + it should get overwritten by the appropriate configobj docstring. + """ ++from __future__ import absolute_import ++import validate ++import configobj ++ + +-from .configobj import configobj, validate, __doc__ +diff --git a/astropy/extern/six.py b/astropy/extern/six.py +index 5398fc0..fb3a30c 100644 +--- a/astropy/extern/six.py ++++ b/astropy/extern/six.py +@@ -13,7 +13,7 @@ _SIX_MIN_VERSION = StrictVersion('1.10.0') + # Update this to prevent Astropy from using its bundled copy of six + # (but only if some other version of at least _SIX_MIN_VERSION can + # be provided) +-_SIX_SEARCH_PATH = ['astropy.extern.bundled.six', 'six'] ++_SIX_SEARCH_PATH = ['six'] + + + def _find_module(name, path=None): +diff --git a/astropy/table/jsviewer.py b/astropy/table/jsviewer.py +index d0cc380..9f686ea 100644 +--- a/astropy/table/jsviewer.py ++++ b/astropy/table/jsviewer.py +@@ -30,8 +30,8 @@ class Conf(_config.ConfigNamespace): + conf = Conf() + + +-EXTERN_JS_DIR = abspath(join(dirname(extern.__file__), 'js')) +-EXTERN_CSS_DIR = abspath(join(dirname(extern.__file__), 'css')) ++EXTERN_JS_DIR = '/usr/share/javascript' ++EXTERN_CSS_DIR = EXTERN_JS_DIR + + _SORTING_SCRIPT_PART_1 = """ + var astropy_sort_num = function(a, b) {{ +@@ -134,22 +134,24 @@ class JSViewer(object): + @property + def jquery_urls(self): + if self._use_local_files: +- return ['file://' + join(EXTERN_JS_DIR, 'jquery-3.1.1.min.js'), +- 'file://' + join(EXTERN_JS_DIR, 'jquery.dataTables.min.js')] ++ return ['file://' + join(EXTERN_JS_DIR, 'jquery', 'jquery.min.js'), ++ 'file://' + join(EXTERN_JS_DIR, 'jquery-datatables', ++ 'jquery.dataTables.min.js')] + else: + return [conf.jquery_url, conf.datatables_url] + + @property + def css_urls(self): + if self._use_local_files: +- return ['file://' + join(EXTERN_CSS_DIR, ++ return ['file://' + join(EXTERN_CSS_DIR, 'jquery-datatables', 'css', + 'jquery.dataTables.css')] + else: + return conf.css_urls + + def _jstable_file(self): + if self._use_local_files: +- return 'file://' + join(EXTERN_JS_DIR, 'jquery.dataTables.min') ++ return 'file://' + join(EXTERN_JS_DIR, 'jquery-datatables', ++ 'jquery.dataTables.min') + else: + return conf.datatables_url[:-3] + +diff --git a/astropy/table/tests/test_jsviewer.py b/astropy/table/tests/test_jsviewer.py +index 6a8b033..5018bd4 100644 +--- a/astropy/table/tests/test_jsviewer.py ++++ b/astropy/table/tests/test_jsviewer.py +@@ -145,9 +145,9 @@ def test_write_jsviewer_local(tmpdir): + table_id='test', + length='50', + display_length='10, 25, 50, 100, 500, 1000', +- datatables_css_url='file://' + join(EXTERN_DIR, 'css', 'jquery.dataTables.css'), +- datatables_js_url='file://' + join(EXTERN_DIR, 'js', 'jquery.dataTables.min.js'), +- jquery_url='file://' + join(EXTERN_DIR, 'js', 'jquery-3.1.1.min.js') ++ datatables_css_url='file:///usr/share/javascript/jquery-datatables/css/jquery.dataTables.css', ++ datatables_js_url='file:///usr/share/javascript/jquery-datatables/jquery.dataTables.min.js', ++ jquery_url='file:///usr/share/javascript/jquery/jquery.min.js' + ) + with open(tmpfile) as f: + assert f.read().strip() == ref.strip() +diff --git a/astropy/tests/helper.py b/astropy/tests/helper.py +index 9e88d1f..94bd40a 100644 +--- a/astropy/tests/helper.py ++++ b/astropy/tests/helper.py +@@ -40,7 +40,7 @@ __all__ = ['raises', 'enable_deprecations_as_exceptions', 'remote_data', + 'pickle_protocol', 'generic_recursive_equality_test'] + + +-if os.environ.get('ASTROPY_USE_SYSTEM_PYTEST') or '_pytest' in sys.modules: ++if True: + import pytest + + else: diff --git a/dev-python/astropy/files/astropy-1.3.3-mark-known-failures.patch b/dev-python/astropy/files/astropy-1.3.3-mark-known-failures.patch new file mode 100644 index 000000000000..1a30bc1d10ab --- /dev/null +++ b/dev-python/astropy/files/astropy-1.3.3-mark-known-failures.patch @@ -0,0 +1,84 @@ +From: Ole Streicher <olebole@debian.org> +Date: Tue, 13 Dec 2016 09:41:39 +0100 +Subject: Mark all known test failures as xfail. These failures have been + discussed with upstream. + +--- + astropy/table/tests/test_info.py | 4 +++- + astropy/tests/tests/test_socketblocker.py | 4 ++-- + astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py | 4 ++++ + astropy/vo/samp/tests/test_standard_profile.py | 2 ++ + 4 files changed, 11 insertions(+), 3 deletions(-) + +diff --git a/astropy/table/tests/test_info.py b/astropy/table/tests/test_info.py +index 2bbcc7a..50fbdb4 100644 +--- a/astropy/table/tests/test_info.py ++++ b/astropy/table/tests/test_info.py +@@ -8,6 +8,7 @@ from collections import OrderedDict + + import numpy as np + ++from ...tests.helper import pytest + from ...extern import six + from ...extern.six.moves import cStringIO as StringIO + from ... import units as u +@@ -229,7 +230,8 @@ def test_class_attribute(): + t.info(out=out) + assert out.getvalue().splitlines() == exp + +- ++# see https://github.com/astropy/astropy/issues/4336 ++@pytest.mark.xfail() + def test_ignore_warnings(): + t = table.Table([[np.nan, np.nan]]) + with warnings.catch_warnings(record=True) as warns: +diff --git a/astropy/tests/tests/test_socketblocker.py b/astropy/tests/tests/test_socketblocker.py +index c362fa5..783defe 100644 +--- a/astropy/tests/tests/test_socketblocker.py ++++ b/astropy/tests/tests/test_socketblocker.py +@@ -66,8 +66,8 @@ PY3_4 = sys.version_info[:2] >= (3, 4) + def _square(x): + return x ** 2 + +- +-@pytest.mark.skipif('not PY3_4 or sys.platform == "win32" or sys.platform.startswith("gnu0")') ++# see https://github.com/astropy/astropy/issues/4193 ++@pytest.mark.skipif(True, reason="Blocks on Debian CI test") + def test_multiprocessing_forkserver(): + """ + Test that using multiprocessing with forkserver works. Perhaps +diff --git a/astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py b/astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py +index 53436dd..4c710e7 100644 +--- a/astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py ++++ b/astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py +@@ -3,6 +3,8 @@ from ..core import WCSAxes + import matplotlib.pyplot as plt + from matplotlib.backend_bases import KeyEvent + ++import pytest ++ + from ....wcs import WCS + from ....extern import six + from ....coordinates import FK5 +@@ -93,6 +95,8 @@ class TestDisplayWorldCoordinate(BaseImageTests): + + assert string_world5 == six.u('267.652 -28\xb046\'23" (world, overlay 3)') + ++ # See https://github.com/astropy/astropy/issues/5601 ++ @pytest.mark.xfail() + def test_cube_coords(self, tmpdir): + wcs = WCS(self.cube_header) + +diff --git a/astropy/vo/samp/tests/test_standard_profile.py b/astropy/vo/samp/tests/test_standard_profile.py +index 325ac96..ac25e55 100644 +--- a/astropy/vo/samp/tests/test_standard_profile.py ++++ b/astropy/vo/samp/tests/test_standard_profile.py +@@ -62,6 +62,8 @@ class TestStandardProfile(object): + + self.hub.stop() + ++ # see https://github.com/astropy/astropy/issues/5460 ++ @pytest.mark.skipif(True, reason="Setup fails due to SSL problems") + def test_main(self): + + self.client1_id = self.client1.get_public_id() diff --git a/dev-python/astropy/files/astropy-ply.py b/dev-python/astropy/files/astropy-ply.py new file mode 100644 index 000000000000..19eb104c4ca0 --- /dev/null +++ b/dev-python/astropy/files/astropy-ply.py @@ -0,0 +1,58 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst + +""" +Handle loading ply package from system or from the bundled copy +""" + +import imp +from distutils.version import StrictVersion + + +def _find_module(name, path=None): + """ + Alternative to `imp.find_module` that can also search in subpackages. + """ + + parts = name.split('.') + + for part in parts: + if path is not None: + path = [path] + + fh, path, descr = imp.find_module(part, path) + + return fh, path, descr + +_PLY_MIN_VERSION = StrictVersion('3.4') + +# Update this to prevent Astropy from using its bundled copy of ply +# (but only if some other version of at least _PLY_MIN_VERSION can +# be provided) +_PLY_SEARCH_PATH = ['ply'] + + +for mod_name in _PLY_SEARCH_PATH: + try: + mod_info = _find_module(mod_name) + #mod_lex_info = _find_module(mod_name + '.lex') + except ImportError: + continue + + mod = imp.load_module(__name__, *mod_info) + #mod_lex = imp.load_module(__name__ + '.lex', *mod_lex_info) + + try: + # if StrictVersion(mod_lex.__version__) >= _PLY_MIN_VERSION: + # break + break + except (AttributeError, ValueError): + # Attribute error if the ply module isn't what it should be and doesn't + # have a .__version__; ValueError if the version string exists but is + # somehow bogus/unparseable + continue +else: + raise ImportError( + "Astropy requires the 'ply' module of minimum version {0}; " + "normally this is bundled with the astropy package so if you get " + "this warning consult the packager of your Astropy " + "distribution.".format(_PLY_MIN_VERSION)) diff --git a/dev-python/astropy/metadata.xml b/dev-python/astropy/metadata.xml new file mode 100644 index 000000000000..85615ff002ce --- /dev/null +++ b/dev-python/astropy/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-astronomy@gentoo.org</email> + <name>Gentoo Astronomy Project</name> + </maintainer> + <longdescription lang="en"> + Astropy is a community-driven package intended to contain much of + the core functionality and some common tools needed for performing + astronomy and astrophysics with Python. +</longdescription> + <upstream> + <remote-id type="pypi">astropy</remote-id> + </upstream> +</pkgmetadata> |