pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Update py-napalm-base to version 1.0.0.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Tue Jun 26 22:18:13 2018 +0200
Changeset:	c2c2b07071aa8d169145b69b08f3e35d3670b32c

Modified Files:
	py-napalm-base/Makefile
	py-napalm-base/distinfo
Added Files:
	py-napalm-base/patches/patch-setup.py

Log Message:
Update py-napalm-base to version 1.0.0.

Get rid of use of pip in setup.py, it's not best practice.
Use a cheesy fix to ingest requirements.txt, it's also slightly dubious...

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c2c2b07071aa8d169145b69b08f3e35d3670b32c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-napalm-base/Makefile               |  2 +-
 py-napalm-base/distinfo               |  9 +++++----
 py-napalm-base/patches/patch-setup.py | 24 ++++++++++++++++++++++++
 3 files changed, 30 insertions(+), 5 deletions(-)

diffs:
diff --git a/py-napalm-base/Makefile b/py-napalm-base/Makefile
index 9675792d5d..432d2e0bfb 100644
--- a/py-napalm-base/Makefile
+++ b/py-napalm-base/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	napalm-base-0.23.3
+DISTNAME=	napalm-base-1.0.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	net
 MASTER_SITES=	${MASTER_SITE_GITHUB:=napalm-automation/}
diff --git a/py-napalm-base/distinfo b/py-napalm-base/distinfo
index 6a28e1dc9a..b380b64903 100644
--- a/py-napalm-base/distinfo
+++ b/py-napalm-base/distinfo
@@ -1,6 +1,7 @@
 $NetBSD$
 
-SHA1 (napalm-base-0.23.3.tar.gz) = c21cc2933ccde05cea15b2e1579e13fbbbf29eef
-RMD160 (napalm-base-0.23.3.tar.gz) = dcd6134af1639535aa1a2f07f3b21570d506f874
-SHA512 (napalm-base-0.23.3.tar.gz) = 73cfb1c5cd7cf2122375a718123beaf1f3882812841e9b40a3d069d09d8f718a2fa818772b691036b50602833f81c478f88f7d4443305bfe28492cd0cf425a87
-Size (napalm-base-0.23.3.tar.gz) = 47721 bytes
+SHA1 (napalm-base-1.0.0.tar.gz) = 927f9b2f9de24a4577318f638b3d2e213f754dbd
+RMD160 (napalm-base-1.0.0.tar.gz) = a07e67aab3311f41721d9d9d64667e04ff38d788
+SHA512 (napalm-base-1.0.0.tar.gz) = c2d54d9286d9d02251b65f47e6039340900cf973d9a23b84b237f380f477b6731d8584eba48693d4bbf886f2efb79a98851a18ecd411b7c885e3060d67789e25
+Size (napalm-base-1.0.0.tar.gz) = 54365 bytes
+SHA1 (patch-setup.py) = 3c5d97eece80abb94db361cba10df9f6c2e70e0f
diff --git a/py-napalm-base/patches/patch-setup.py b/py-napalm-base/patches/patch-setup.py
new file mode 100644
index 0000000000..ac13d9a759
--- /dev/null
+++ b/py-napalm-base/patches/patch-setup.py
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Don't use pip in setup.py, it's not best practice.
+Also, using requirements.txt to define install_reqs is
+also dubious.
+
+--- setup.py.orig	2017-11-23 10:23:04.000000000 +0000
++++ setup.py
+@@ -2,12 +2,12 @@
+ import uuid
+ 
+ from setuptools import setup, find_packages
+-from pip.req import parse_requirements
+ 
+ __author__ = 'David Barroso <dbarrosop%dravetech.com@localhost>'
+ 
+-install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
+-reqs = [str(ir.req) for ir in install_reqs]
++with open("requirements.txt") as reqs_file:
++    install_reqs = reqs_file.readlines()
++reqs = install_reqs
+ 
+ 
+ setup(


Home | Main Index | Thread Index | Old Index