Date: Wednesday, May 25, 2022 @ 08:15:01 Author: grawlinson Revision: 1210333
archrelease: copy trunk to community-any Added: python-pydyf/repos/community-any/PKGBUILD (from rev 1210332, python-pydyf/trunk/PKGBUILD) python-pydyf/repos/community-any/remove-unnecessary-test-args.patch (from rev 1210332, python-pydyf/trunk/remove-unnecessary-test-args.patch) Deleted: python-pydyf/repos/community-any/PKGBUILD ------------------------------------+ PKGBUILD | 126 ++++++++++++++++++----------------- remove-unnecessary-test-args.patch | 21 +++++ 2 files changed, 86 insertions(+), 61 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-05-25 08:14:15 UTC (rev 1210332) +++ PKGBUILD 2022-05-25 08:15:01 UTC (rev 1210333) @@ -1,61 +0,0 @@ -# Maintainer: Caleb Maclennan <ca...@alerque.com> -# Maintainer: George Rawlinson <grawlin...@archlinux.org> - -pkgname=python-pydyf -pkgver=0.1.2 -pkgrel=3 -pkgdesc='A low-level PDF generator' -arch=('any') -url='https://www.courtbouillon.org/pydyf' -license=('BSD') -depends=('python') -makedepends=( - 'git' - 'python-build' - 'python-flit-core' - 'python-installer' -) -checkdepends=( - 'python-pytest' - 'python-pillow' - 'ghostscript' -) -_commit='9dd8e99b0093dad2b34fbc1a348c7e144cba4e4a' -source=("$pkgname::git+https://github.com/CourtBouillon/pydyf.git#commit=$_commit") -md5sums=('SKIP') - -pkgver() { - cd "$pkgname" - - git describe --tags | sed 's/^v//' -} - -prepare() { - cd "$pkgname" - - # thou shalt not lint coding style in integration tests - sed -i 's/--isort --flake8 --cov --no-cov-on-fail//' pyproject.toml -} - -build() { - cd "$pkgname" - - python -m build --wheel --no-isolation -} - -check() { - cd "$pkgname" - - # skip failing tests - pytest \ - --deselect tests/test_pydyf.py::test_transform \ - --deselect tests/test_pydyf.py::test_text -} - -package() { - cd "$pkgname" - - python -m installer --destdir="$pkgdir" dist/*.whl - - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE -} Copied: python-pydyf/repos/community-any/PKGBUILD (from rev 1210332, python-pydyf/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-05-25 08:15:01 UTC (rev 1210333) @@ -0,0 +1,65 @@ +# Maintainer: Caleb Maclennan <ca...@alerque.com> +# Maintainer: George Rawlinson <grawlin...@archlinux.org> + +pkgname=python-pydyf +pkgver=0.2.0 +pkgrel=1 +pkgdesc='A low-level PDF generator' +arch=('any') +url='https://www.courtbouillon.org/pydyf' +license=('BSD') +depends=('python') +makedepends=( + 'git' + 'python-build' + 'python-flit-core' + 'python-installer' +) +checkdepends=( + 'python-pytest' + 'python-pillow' + 'ghostscript' +) +_commit='1ab5cbacc5ef9004fbf783634a86e94edcc4c2c1' +source=( + "$pkgname::git+https://github.com/CourtBouillon/pydyf.git#commit=$_commit" + 'remove-unnecessary-test-args.patch' +) +b2sums=('SKIP' + 'eac0ff06b669ccdf0b1ebf55b314fde5c8dd7e0f7f02559681f7ad485ba13db2ba07e5b7a4ec06dbf39bf823d6f7a67c6cab8ebd87630334de6ae6b8745d9e7b') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +prepare() { + cd "$pkgname" + + # thou shalt not lint coding style in integration tests + patch -p1 -i ../remove-unnecessary-test-args.patch +} + +build() { + cd "$pkgname" + + python -m build --wheel --no-isolation +} + +check() { + cd "$pkgname" + + # skip failing tests + pytest \ + --deselect tests/test_pydyf.py::test_transform \ + --deselect tests/test_pydyf.py::test_text +} + +package() { + cd "$pkgname" + + python -m installer --destdir="$pkgdir" dist/*.whl + + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} Copied: python-pydyf/repos/community-any/remove-unnecessary-test-args.patch (from rev 1210332, python-pydyf/trunk/remove-unnecessary-test-args.patch) =================================================================== --- remove-unnecessary-test-args.patch (rev 0) +++ remove-unnecessary-test-args.patch 2022-05-25 08:15:01 UTC (rev 1210333) @@ -0,0 +1,21 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -42,18 +42,3 @@ test = ['pytest', 'pytest-xdist', 'pytest-flake8', 'pytest-isort', 'pytest-cov', + + [tool.flit.sdist] + exclude = ['.*'] +- +-[tool.pytest.ini_options] +-addopts = '--isort --flake8 --numprocesses=auto' +- +-[tool.coverage.run] +-branch = true +-include = ['tests/*', 'pydyf/*'] +- +-[tool.coverage.report] +-exclude_lines = ['pragma: no cover', 'def __repr__', 'raise NotImplementedError'] +-omit = ['.*'] +- +-[tool.isort] +-default_section = 'FIRSTPARTY' +-multi_line_output = 4