[arch-commits] Commit in (5 files)

Eli Schwartz eschwartz at archlinux.org
Wed May 16 19:30:07 UTC 2018


    Date: Wednesday, May 16, 2018 @ 19:30:06
  Author: eschwartz
Revision: 323140

Add new package required for devendoring pip

Added:
  python-cachecontrol/
  python-cachecontrol/repos/
  python-cachecontrol/trunk/
  python-cachecontrol/trunk/0001-Remove-unnecessary-console-script.patch
  python-cachecontrol/trunk/PKGBUILD

----------------------------------------------+
 0001-Remove-unnecessary-console-script.patch |   30 +++++++++++++
 PKGBUILD                                     |   55 +++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

Added: python-cachecontrol/trunk/0001-Remove-unnecessary-console-script.patch
===================================================================
--- python-cachecontrol/trunk/0001-Remove-unnecessary-console-script.patch	                        (rev 0)
+++ python-cachecontrol/trunk/0001-Remove-unnecessary-console-script.patch	2018-05-16 19:30:06 UTC (rev 323140)
@@ -0,0 +1,30 @@
+From 17d27a39b8542cb16cb18335ea490944bd63c54b Mon Sep 17 00:00:00 2001
+From: Eli Schwartz <eschwartz93 at gmail.com>
+Date: Wed, 16 May 2018 15:24:11 -0400
+Subject: [PATCH] Remove unnecessary console script
+
+The purpose of this  module is to cache things, not to test if they
+*can* be cached. This clutters up the $PATH.
+---
+ setup.py | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 07f8b5c..79ca493 100644
+--- a/setup.py
++++ b/setup.py
+@@ -25,11 +25,6 @@ setup_params = dict(
+         'filecache': ['lockfile>=0.9'],
+         'redis': ['redis>=2.10.5'],
+     },
+-    entry_points={
+-        'console_scripts': [
+-            'doesitcache = cachecontrol._cmd:main',
+-        ]
+-    },
+     classifiers=[
+         'Development Status :: 4 - Beta',
+         'Environment :: Web Environment',
+-- 
+2.17.0
+

Added: python-cachecontrol/trunk/PKGBUILD
===================================================================
--- python-cachecontrol/trunk/PKGBUILD	                        (rev 0)
+++ python-cachecontrol/trunk/PKGBUILD	2018-05-16 19:30:06 UTC (rev 323140)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=cachecontrol
+pkgbase='python-cachecontrol'
+pkgname=('python-cachecontrol' 'python2-cachecontrol')
+pkgver=0.12.4
+pkgrel=1
+pkgdesc="httplib2 caching for requests"
+arch=('any')
+url="https://github.com/ionrock/${_pkgname}"
+license=('Apache')
+makedepends=('python-msgpack' 'python-requests' 'python2-msgpack' 'python2-requests')
+checkdepends=('python-mock' 'python-pytest' 'python-lockfile' 'python-cherrypy'
+              'python2-mock' 'python2-pytest' 'python2-lockfile' 'python2-cherrypy')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+        "0001-Remove-unnecessary-console-script.patch")
+sha256sums=('99face8fb57c6b4d2a9a9e35671a25f3522b359cc83477084f9e8a0a57d4e996'
+            '8aa781f3c25f0538a26614870c3feead4ba3f8ef0a9d1cff0a9abda8c300cea1')
+
+prepare() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    patch -p1 -i ../0001-Remove-unnecessary-console-script.patch
+}
+
+build() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+    python2 setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    pytest
+    pytest2
+}
+
+package_python-cachecontrol() {
+    depends=('python-msgpack' 'python-requests')
+    optdepends=('python-lockfile: for the FileCache')
+
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+package_python2-cachecontrol() {
+    depends=('python-msgpack' 'python2-requests')
+    optdepends=('python2-lockfile: for the FileCache')
+
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}


Property changes on: python-cachecontrol/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list