[arch-commits] Commit in python-requests-unixsocket/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 21:13:27 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:13:27
  Author: felixonmars
Revision: 1058878

archrelease: copy trunk to community-staging-any

Added:
  python-requests-unixsocket/repos/community-staging-any/
  python-requests-unixsocket/repos/community-staging-any/PKGBUILD
    (from rev 1058876, python-requests-unixsocket/trunk/PKGBUILD)
  python-requests-unixsocket/repos/community-staging-any/fix_setuptools_warnings.patch
    (from rev 1058876, python-requests-unixsocket/trunk/fix_setuptools_warnings.patch)

-------------------------------+
 PKGBUILD                      |   40 ++++++++++++++++++++++++++++++++++++++++
 fix_setuptools_warnings.patch |   17 +++++++++++++++++
 2 files changed, 57 insertions(+)

Copied: python-requests-unixsocket/repos/community-staging-any/PKGBUILD (from rev 1058876, python-requests-unixsocket/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 21:13:27 UTC (rev 1058878)
@@ -0,0 +1,40 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgname=python-requests-unixsocket
+_name="${pkgname#python-}"
+pkgver=0.2.0
+pkgrel=5
+pkgdesc="Use requests to talk HTTP via a UNIX domain socket"
+arch=('any')
+depends=('python' 'python-requests' 'python-urllib3')
+makedepends=('python-setuptools' 'python-pip' 'python-pbr')
+url="https://github.com/msabramo/requests-unixsocket"
+license=('Apache')
+options=('!emptydirs')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+        'fix_setuptools_warnings.patch')
+b2sums=('cda02b5d963b00fb06cf86819bcbf552ecc21e30064198da338f502f47547a1f93184fd06052047c6cb8a6181f0a2f7b7a7cc53183b18dc22165a41dc14144b5'
+        'fdb486b0916eb8293b21510aa9dcae9875eb8d6bcb00d1aa3b0278fbe25b12d97df35682199ba468c98ca2ae58b9281a7a44c815600e19e5ff796bbbdd27380a')
+
+prepare() {
+  cd "$_name-$pkgver"
+
+  patch --forward --input="${srcdir}/fix_setuptools_warnings.patch"
+}
+
+build() {
+  cd "$_name-$pkgver"
+
+  python setup.py build
+}
+
+package() {
+  cd "$_name-$pkgver"
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  # remove tests folder from package
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  rm -rf "$pkgdir$site_packages/${_name/-/_}/tests"
+}

Copied: python-requests-unixsocket/repos/community-staging-any/fix_setuptools_warnings.patch (from rev 1058876, python-requests-unixsocket/trunk/fix_setuptools_warnings.patch)
===================================================================
--- community-staging-any/fix_setuptools_warnings.patch	                        (rev 0)
+++ community-staging-any/fix_setuptools_warnings.patch	2021-11-30 21:13:27 UTC (rev 1058878)
@@ -0,0 +1,17 @@
+--- setup.cfg
++++ setup.cfg
+@@ -1,11 +1,11 @@
+ [metadata]
+ name = requests-unixsocket
+ author = Marc Abramowitz
+-author-email = marc at marc-abramowitz.com
++author_email = marc at marc-abramowitz.com
+ summary = Use requests to talk HTTP via a UNIX domain socket
+-description-file = README.rst
++description_file = README.rst
+ license = Apache-2
+-home-page = https://github.com/msabramo/requests-unixsocket
++home_page = https://github.com/msabramo/requests-unixsocket
+ classifier = 
+ 	Development Status :: 3 - Alpha
+ 	Intended Audience :: Developers



More information about the arch-commits mailing list