[arch-commits] Commit in twine/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Mon Feb 14 22:56:26 UTC 2022


    Date: Monday, February 14, 2022 @ 22:56:26
  Author: felixonmars
Revision: 1133278

archrelease: copy trunk to community-any

Added:
  twine/repos/community-any/PKGBUILD
    (from rev 1133277, twine/trunk/PKGBUILD)
Deleted:
  twine/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   93 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 48 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-14 22:56:14 UTC (rev 1133277)
+++ PKGBUILD	2022-02-14 22:56:26 UTC (rev 1133278)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Chris Warrick <aur at chriswarrick.com>
-
-pkgname=twine
-pkgver=3.5.0
-pkgrel=1
-pkgdesc='Collection of utilities for interacting with PyPI'
-arch=('any')
-url='https://pypi.python.org/pypi/twine'
-license=('Apache')
-depends=('python-pkginfo' 'python-readme-renderer' 'python-requests' 'python-requests-toolbelt'
-         'python-packaging' 'python-importlib-metadata' 'python-tqdm' 'python-keyring'
-         'python-rfc3986' 'python-colorama')
-makedepends=('python-dephell' 'python-setuptools-scm')
-checkdepends=('git' 'python-munch' 'python-jaraco.envs' 'python-portend' 'python-pretend'
-              'python-pytest-cov' 'python-pytest-services' 'python-pytest-socket')
-provides=('python-twine')
-conflicts=('python-twine')
-replaces=('python-twine')
-source=("https://github.com/pypa/twine/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('37219c1078bb7209123aee79c2d2bd73390c8ce4ab2bf6b5493a54e4ccb9c714a6422ee4a782b3c19d3a5344c1431285c666230729f44615b7761c7a5aff07d6')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-prepare() {
-  cd twine-$pkgver
-  dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build() {
-  cd twine-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd twine-$pkgver
-  python setup.py egg_info
-  python -m pytest
-}
-
-package() {
-  cd twine-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  ln -s twine "$pkgdir"/usr/bin/twine3
-}

Copied: twine/repos/community-any/PKGBUILD (from rev 1133277, twine/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-14 22:56:26 UTC (rev 1133278)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Chris Warrick <aur at chriswarrick.com>
+
+pkgname=twine
+pkgver=3.6.0
+pkgrel=1
+pkgdesc='Collection of utilities for interacting with PyPI'
+arch=('any')
+url='https://pypi.python.org/pypi/twine'
+license=('Apache')
+depends=('python-pkginfo' 'python-readme-renderer' 'python-requests' 'python-requests-toolbelt'
+         'python-packaging' 'python-importlib-metadata' 'python-tqdm' 'python-keyring'
+         'python-rfc3986' 'python-colorama')
+makedepends=('python-pyproject2setuppy' 'python-setuptools-scm')
+checkdepends=('git' 'python-munch' 'python-jaraco.envs' 'python-portend' 'python-pretend'
+              'python-pytest-cov' 'python-pytest-services' 'python-pytest-socket')
+provides=('python-twine')
+conflicts=('python-twine')
+replaces=('python-twine')
+source=("https://github.com/pypa/twine/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('41da4d89ac69c692a98545aefffd9afd4c7b0287179807906504b4121bf9257095b227ec2966d98983939fa76fb8509f6ffa2577c0e7b4c7f43f614f44745460')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cd twine-$pkgver
+  # This is needed because twine uses setuptools-scm's file finder hook to include package data,
+  # but the git checkout we use don't contain the needed SCM info.
+  # dephell generates a pattern for this automatically.
+  echo "recursive-include twine *.typed" > MANIFEST.in
+}
+
+build() {
+  cd twine-$pkgver
+  python -m pyproject2setuppy build
+}
+
+check() {
+  cd twine-$pkgver
+  python -m pyproject2setuppy egg_info
+  python -m pytest
+}
+
+package() {
+  cd twine-$pkgver
+  python -m pyproject2setuppy install --root="$pkgdir" --optimize=1
+  ln -s twine "$pkgdir"/usr/bin/twine3
+}



More information about the arch-commits mailing list