pkgsrc-WIP-changes archive

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

py-awslogs: more setup.py patching for these days Python



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Mon May 22 11:14:02 2023 +0200
Changeset:	1af855bd266464b6aa329f52a9f68fe0024a76d3

Modified Files:
	py-awslogs/distinfo
	py-awslogs/patches/patch-setup.py

Log Message:
py-awslogs: more setup.py patching for these days Python

- jmespath>=1.0 is now present in pkgsrc, be more liberal about requirements
- python_requires string seems no longer valid, i.e. setup.py errors out with:
   error in awslogs setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.5.*'
  ...remove it entirely given that we already specify that this is only for
  Python 3.x in pkgsrc

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

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

diffstat:
 py-awslogs/distinfo               |  2 +-
 py-awslogs/patches/patch-setup.py | 23 ++++++++++++++++++-----
 2 files changed, 19 insertions(+), 6 deletions(-)

diffs:
diff --git a/py-awslogs/distinfo b/py-awslogs/distinfo
index a895f3c4aa..e2af4d0cfb 100644
--- a/py-awslogs/distinfo
+++ b/py-awslogs/distinfo
@@ -3,4 +3,4 @@ $NetBSD: distinfo,v 1.79 2021/09/12 10:36:47 leot Exp $
 RMD160 (awslogs-0.14.0.tar.gz) = 45cf1ed94c387c615d4bf01754ffc0eaaff0620f
 SHA512 (awslogs-0.14.0.tar.gz) = a7079d8960b589d819b63060a5a9cf067da2c8e190dccfc0ba95fa5260e5ce5db0952ecadcb58402644701a134643f4e3ad577b8f73bf96698f22608dbbfbaae
 Size (awslogs-0.14.0.tar.gz) = 15634 bytes
-SHA1 (patch-setup.py) = 17aef8711bbfbf5a422614fbacf9dfb487c75e73
+SHA1 (patch-setup.py) = 594b1cc189b3873811005ad5aa00ad12db1f20f8
diff --git a/py-awslogs/patches/patch-setup.py b/py-awslogs/patches/patch-setup.py
index 3530cf2f32..0ed65677c8 100644
--- a/py-awslogs/patches/patch-setup.py
+++ b/py-awslogs/patches/patch-setup.py
@@ -1,17 +1,30 @@
 $NetBSD$
 
-Do not install tests.
-
-Also shared upstream via <https://github.com/jorgebastida/awslogs/pull/324>.
+- Be more liberal about requirements
+- Do not install tests.
+  Also shared upstream via <https://github.com/jorgebastida/awslogs/pull/324>.
+- Remove no longer valid `python_requires'. We already specify that it is only
+  for Python 3.x in pkgsrc.
 
 --- setup.py.orig	2020-07-10 07:01:23.000000000 +0000
 +++ setup.py
-@@ -19,7 +19,7 @@ setup(
+@@ -3,7 +3,7 @@ from setuptools import setup, find_packa
+ 
+ install_requires = [
+     'boto3>=1.5.0',
+-    'jmespath>=0.7.1,<1.0.0',
++    'jmespath>=0.7.1',
+     'termcolor>=1.1.0',
+     'python-dateutil>=2.4.0'
+ ]
+@@ -19,9 +19,8 @@ setup(
      description='awslogs is a simple command line tool to read aws cloudwatch logs.',
      long_description='awslogs is a simple command line tool to read aws cloudwatch logs.',
      keywords="aws logs cloudwatch",
 -    packages=find_packages(),
 +    packages=find_packages(exclude=('tests',)),
      platforms='any',
-     python_requires=">=3.5.*",
+-    python_requires=">=3.5.*",
      install_requires=install_requires,
+     test_suite='tests',
+     classifiers=[


Home | Main Index | Thread Index | Old Index