Date: Monday, June 28, 2021 @ 00:38:47 Author: felixonmars Revision: 967631
archrelease: copy trunk to community-any Added: dns-lexicon/repos/community-any/PKGBUILD (from rev 967630, dns-lexicon/trunk/PKGBUILD) Deleted: dns-lexicon/repos/community-any/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-06-28 00:38:32 UTC (rev 967630) +++ PKGBUILD 2021-06-28 00:38:47 UTC (rev 967631) @@ -1,55 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=dns-lexicon -pkgver=3.6.0 -pkgrel=1 -pkgdesc="Manipulate DNS records on various DNS providers in a standardized/agnostic way" -arch=('any') -url="https://github.com/AnalogJ/lexicon" -license=('MIT') -depends=('python-beautifulsoup4' 'python-cryptography' 'python-future' 'python-yaml' - 'python-requests' 'python-tldextract') -makedepends=('python-dephell') -optdepends=('python-pynamecheap: for Namecheap support' - 'python-boto3: for Route53 support' - 'python-softlayer: for SoftLayer support' - 'python-xmltodict: for Plesk support' - 'python-localzone: for localzone support' - 'python-zeep: for Gransy support') -checkdepends=('python-pytest-runner' 'python-vcrpy' 'python-softlayer' 'python-boto3' 'python-mock' - 'python-pynamecheap' 'python-zeep' 'python-xmltodict' 'python-beautifulsoup4' - 'python-localzone' 'python-html5lib' 'python-dnspython' 'bind-tools') -source=("https://github.com/AnalogJ/lexicon/archive/v$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('a361b3d60d0bf2d171c2fe715cac9daa42aa7fcc86263ad08d5ef05417a44cf2faa11a3f2b57498cbb058ad41ede292418d97651acf6cebbc55e89f216bcbac8') - -prepare() { - cd lexicon-$pkgver - - # Wait for a proper fix - sed -i 's/cache_file=TLDEXTRACT_CACHE_FILE, //' lexicon/client.py - sed -i 's/tldextract = "\^2"/tldextract = ">=2"/' pyproject.toml - - # poetry-generated setup.py is badly broken in several ways, including - # distribution of tests in the built package as well as using distutils for - # bad metadata. See https://github.com/sdispater/poetry/issues/866 - dephell deps convert --from pyproject.toml --to setup.py -} - -build() { - cd lexicon-$pkgver - python setup.py build -} - -check() { - cd lexicon-$pkgver - python setup.py pytest --addopts '--deselect lexicon/tests/providers/test_transip.py' -} - -package() { - cd lexicon-$pkgver - python setup.py install -O1 --prefix=/usr --root="$pkgdir" - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -# vim:set ts=2 sw=2 et: Copied: dns-lexicon/repos/community-any/PKGBUILD (from rev 967630, dns-lexicon/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-06-28 00:38:47 UTC (rev 967631) @@ -0,0 +1,55 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=dns-lexicon +pkgver=3.6.1 +pkgrel=1 +pkgdesc="Manipulate DNS records on various DNS providers in a standardized/agnostic way" +arch=('any') +url="https://github.com/AnalogJ/lexicon" +license=('MIT') +depends=('python-beautifulsoup4' 'python-cryptography' 'python-future' 'python-yaml' + 'python-requests' 'python-tldextract') +makedepends=('python-dephell') +optdepends=('python-pynamecheap: for Namecheap support' + 'python-boto3: for Route53 support' + 'python-softlayer: for SoftLayer support' + 'python-xmltodict: for Plesk support' + 'python-localzone: for localzone support' + 'python-zeep: for Gransy support') +checkdepends=('python-pytest-runner' 'python-vcrpy' 'python-softlayer' 'python-boto3' 'python-mock' + 'python-pynamecheap' 'python-zeep' 'python-xmltodict' 'python-beautifulsoup4' + 'python-localzone' 'python-html5lib' 'python-dnspython' 'bind-tools') +source=("https://github.com/AnalogJ/lexicon/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('6ec7d61857e6da8925fc0c1ec27957bd5d2c53c35f2af3956101854a3c40aec1f25a9b25bffb1ded018ea3006157af4a64b3844edf8baed7a12361e9a9a43a92') + +prepare() { + cd lexicon-$pkgver + + # Wait for a proper fix + sed -i 's/cache_file=TLDEXTRACT_CACHE_FILE, //' lexicon/client.py + sed -i 's/tldextract = "\^2"/tldextract = ">=2"/' pyproject.toml + + # poetry-generated setup.py is badly broken in several ways, including + # distribution of tests in the built package as well as using distutils for + # bad metadata. See https://github.com/sdispater/poetry/issues/866 + dephell deps convert --from pyproject.toml --to setup.py +} + +build() { + cd lexicon-$pkgver + python setup.py build +} + +check() { + cd lexicon-$pkgver + python setup.py pytest --addopts '--deselect lexicon/tests/providers/test_transip.py' +} + +package() { + cd lexicon-$pkgver + python setup.py install -O1 --prefix=/usr --root="$pkgdir" + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: