[arch-commits] Commit in python-cachecontrol/repos/community-any (4 files)

Eli Schwartz eschwartz at archlinux.org
Fri Dec 27 06:29:08 UTC 2019


    Date: Friday, December 27, 2019 @ 06:29:07
  Author: eschwartz
Revision: 542964

archrelease: copy trunk to community-any

Added:
  python-cachecontrol/repos/community-any/0001-Remove-unnecessary-console-script.patch
    (from rev 542963, python-cachecontrol/trunk/0001-Remove-unnecessary-console-script.patch)
  python-cachecontrol/repos/community-any/PKGBUILD
    (from rev 542963, python-cachecontrol/trunk/PKGBUILD)
Deleted:
  python-cachecontrol/repos/community-any/0001-Remove-unnecessary-console-script.patch
  python-cachecontrol/repos/community-any/PKGBUILD

----------------------------------------------+
 0001-Remove-unnecessary-console-script.patch |   52 +++++------
 PKGBUILD                                     |  111 ++++++++++++-------------
 2 files changed, 80 insertions(+), 83 deletions(-)

Deleted: 0001-Remove-unnecessary-console-script.patch
===================================================================
--- 0001-Remove-unnecessary-console-script.patch	2019-12-27 06:28:49 UTC (rev 542963)
+++ 0001-Remove-unnecessary-console-script.patch	2019-12-27 06:29:07 UTC (rev 542964)
@@ -1,26 +0,0 @@
-From 5949227996ba403eecaf6fb961c2f2a6aca4d3e2 Mon Sep 17 00:00:00 2001
-From: Eli Schwartz <eschwartz93 at gmail.com>
-Date: Thu, 7 Jun 2018 12:39:59 -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 | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/setup.py b/setup.py
-index 34f5f44..95e1741 100644
---- a/setup.py
-+++ b/setup.py
-@@ -19,7 +19,6 @@ setup_params = dict(
-     long_description=long_description,
-     install_requires=["requests", "msgpack"],
-     extras_require={"filecache": ["lockfile>=0.9"], "redis": ["redis>=2.10.5"]},
--    entry_points={"console_scripts": ["doesitcache = cachecontrol._cmd:main"]},
-     python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
-     classifiers=[
-         "Development Status :: 4 - Beta",
--- 
-2.17.1
-

Copied: python-cachecontrol/repos/community-any/0001-Remove-unnecessary-console-script.patch (from rev 542963, python-cachecontrol/trunk/0001-Remove-unnecessary-console-script.patch)
===================================================================
--- 0001-Remove-unnecessary-console-script.patch	                        (rev 0)
+++ 0001-Remove-unnecessary-console-script.patch	2019-12-27 06:29:07 UTC (rev 542964)
@@ -0,0 +1,26 @@
+From 5949227996ba403eecaf6fb961c2f2a6aca4d3e2 Mon Sep 17 00:00:00 2001
+From: Eli Schwartz <eschwartz93 at gmail.com>
+Date: Thu, 7 Jun 2018 12:39:59 -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 | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 34f5f44..95e1741 100644
+--- a/setup.py
++++ b/setup.py
+@@ -19,7 +19,6 @@ setup_params = dict(
+     long_description=long_description,
+     install_requires=["requests", "msgpack"],
+     extras_require={"filecache": ["lockfile>=0.9"], "redis": ["redis>=2.10.5"]},
+-    entry_points={"console_scripts": ["doesitcache = cachecontrol._cmd:main"]},
+     python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
+     classifiers=[
+         "Development Status :: 4 - Beta",
+-- 
+2.17.1
+

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-27 06:28:49 UTC (rev 542963)
+++ PKGBUILD	2019-12-27 06:29:07 UTC (rev 542964)
@@ -1,57 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=cachecontrol
-pkgbase=python-cachecontrol
-pkgname=('python-cachecontrol' 'python2-cachecontrol')
-pkgver=0.12.5
-pkgrel=6
-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"
-         cachecontrol-pytest4.patch::"https://github.com/ionrock/cachecontrol/commit/2b886af2.patch")
-sha256sums=('d3876bbd614968e0d82c95734b380fca648661416fb14dc1a50514256e521089'
-            'a2c93d4852887152027140bdd54030d5363876b02e5eabee6a018d4e946a87b1'
-            '83273fc1a39baa46a504f54457997f5301947a82989853f9b2c6c19bfb6ecdfc')
-
-prepare() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    patch -p1 -i ../0001-Remove-unnecessary-console-script.patch
-    patch -p1 -i ../cachecontrol-pytest4.patch # Fix tests with pytest 4
-}
-
-build() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py build
-    python2 setup.py build
-}
-
-check() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python -m pytest
-    python2 -m pytest
-}
-
-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=('python2-msgpack' 'python2-requests')
-    optdepends=('python2-lockfile: for the FileCache')
-
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-}

Copied: python-cachecontrol/repos/community-any/PKGBUILD (from rev 542963, python-cachecontrol/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-27 06:29:07 UTC (rev 542964)
@@ -0,0 +1,54 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=cachecontrol
+pkgbase=python-cachecontrol
+pkgname=('python-cachecontrol' 'python2-cachecontrol')
+pkgver=0.12.6
+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=('2ec120838f445bff473cd8b8206ddae3650679142976927179743fabb876f3e3'
+            'a2c93d4852887152027140bdd54030d5363876b02e5eabee6a018d4e946a87b1')
+
+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}
+
+    python -m pytest
+    python2 -m pytest
+}
+
+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=('python2-msgpack' 'python2-requests')
+    optdepends=('python2-lockfile: for the FileCache')
+
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list