diff options
author | Keith Maxwell <keith.maxwell@gmail.com> | 2020-01-26 00:01:39 +0000 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-27 20:55:59 +0100 |
commit | 6437555d0d0c1ab2bae149f7424fe2f1a45c77bf (patch) | |
tree | 7a9e91728084878ecf21d32d451e20cc47f68094 | |
parent | 377a336d997fd781f08f437c576c1c3d7bbfc7a1 (diff) | |
download | aports-6437555d0d0c1ab2bae149f7424fe2f1a45c77bf.zip |
community/py3-ruamel.yaml: upgrade to 0.16.6
The previous homepage responds with 404. The upstream project, including
a mercurial repository, has moved from BitBucket to Sourceforge.
The [Sourceforge page] listed several files to download including:
https://downloads.sourceforge.net/ruamel-yaml/ruamel.yaml-0.16.6.tar.xz
fc305499241de6cf5c2fa694a53762d853dce44af34f4aff1774d0ee772620cea7398591d1f8f4c43573d276ffd8cfd147dae0e98764e1a5a6045542514dcc42
Which was enough to make sure check() succeeds:
The issue was that python failed to import ruamel.yaml: the solution is
to call `pytest-3` rather than `python3 -m pytest`
According to the [pytest documentation], a difference between running
pytest as `pytest` vs `python3 -m pytest` is that the later will also
add the current directory, in this case `$builddir` to sys.path.
Somehow if `$builddir` is on `sys.path` the package to test is not
found.
The Sourceforge download URL above now 404s and the project's files page
is now empty. PyPI can be used as `$source` instead. The artifact on
PyPI does not include the tests, so these are again disabled.
The C module is now distributed separately.
[Sourceforge page]: https://sourceforge.net/projects/ruamel-yaml/files/
[pytest documentation]: https://docs.pytest.org/en/latest/usage.html#calling-pytest-through-python-m-pytest
-rw-r--r-- | community/py3-ruamel.yaml/APKBUILD | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/community/py3-ruamel.yaml/APKBUILD b/community/py3-ruamel.yaml/APKBUILD index 63ba8008ae0..b7ae3165f14 100644 --- a/community/py3-ruamel.yaml/APKBUILD +++ b/community/py3-ruamel.yaml/APKBUILD @@ -1,19 +1,21 @@ # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: Keith Maxwell <keith.maxwell@gmail.com> pkgname=py3-ruamel.yaml -pkgver=0.16.5 -pkgrel=1 +_pyname=ruamel.yaml +pkgver=0.16.6 +pkgrel=0 pkgdesc="A YAML parser/emitter" -options="!check" # Tests fail to import ruamel.yaml -url="https://bitbucket.org/ruamel/yaml" -arch="all" +options="!check" # tests are not included in the latest artifact on PyPI +url="https://sourceforge.net/projects/ruamel-yaml/" +arch="noarch" license="MIT" replaces="py-ruamel py3-ruamel" provides="py-ruamel=$pkgver-r$pkgrel py3-ruamel=$pkgver-r$pkgrel" +depends="py3-ruamel.yaml.clib" makedepends="python3-dev py3-setuptools" checkdepends="py3-pytest py3-ruamel.std.pathlib" -source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/ruamel/yaml/get/$pkgver.tar.gz" -builddir="$srcdir/ruamel-yaml-ff02b83b8f91" +source="https://files.pythonhosted.org/packages/source/r/$_pyname/$_pyname-$pkgver.tar.gz" +builddir="$srcdir/$_pyname-$pkgver" build() { python3 setup.py build @@ -25,17 +27,13 @@ package() { } check() { - PYTHONPATH="$PWD/build/lib" python3 -m pytest \ + PYTHONPATH="$PWD/build/lib" pytest-3 \ --deselect=_test/test_issues.py::TestIssues::test_issue_82 \ --deselect=_test/test_issues.py::TestIssues::test_issue_220 \ --deselect=_test/test_issues.py::TestIssues::test_issue_238 \ --deselect=_test/test_yamlobject.py::test_monster \ --deselect=_test/test_yamlobject.py::test_qualified_name00 \ - --deselect=_test/test_cyaml.py::test_load_cyaml \ - --deselect=_test/test_cyaml.py::test_dump_cyaml \ - --deselect=_test/test_cyaml.py::test_load_cyaml_1_2 \ - --deselect=_test/test_cyaml.py::test_dump_cyaml_1_2 \ _test/test_*.py } -sha512sums="ce08ae50b9084d56c8e0f5a546cb3a23d4cdad643836aa60a44a995459d3d90057d14fa79493c36f415d7bc22936806d0b4f9b34f93192ac536526a314024c45 py3-ruamel.yaml-0.16.5.tar.gz" +sha512sums="3e919f1cd438483d9a4310506a456bc1e30beabb384f29d9d8c5c24b1e4250bdfd5137aa295efad48f3ad7fc11d2a183c8069986be35c6c3e1a92339e4ecfd75 ruamel.yaml-0.16.6.tar.gz" |