From a1544b1bfd8df9d7e5bef756e9a89af0ad54e5d0 Mon Sep 17 00:00:00 2001 From: "Carlos J. Puga Medina" Date: Tue, 28 May 2019 19:20:17 +0000 Subject: [PATCH] misc/py-socli: Update to 3.7 - Fix runtime dependency with python 2.7 - No need to declare data_files in setup.py --- misc/py-socli/Makefile | 5 +++-- misc/py-socli/distinfo | 6 +++--- misc/py-socli/files/patch-setup.py | 10 ++++++++++ 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 misc/py-socli/files/patch-setup.py diff --git a/misc/py-socli/Makefile b/misc/py-socli/Makefile index 49bfeb9c8825..406a34f2da8f 100644 --- a/misc/py-socli/Makefile +++ b/misc/py-socli/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= socli -PORTVERSION= 3.6 +PORTVERSION= 3.7 CATEGORIES= misc python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,7 +12,8 @@ COMMENT= Stack overflow command line interface LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}colorama>=0:devel/py-colorama@${PY_FLAVOR} \ +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports.functools_lru_cache>=0:devel/py-backports.functools_lru_cache@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}colorama>=0:devel/py-colorama@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}stackexchange>=0:devel/py-stackexchange@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}urwid>=0:devel/py-urwid@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup@${PY_FLAVOR} \ diff --git a/misc/py-socli/distinfo b/misc/py-socli/distinfo index 5279af9e78dc..500a842006e5 100644 --- a/misc/py-socli/distinfo +++ b/misc/py-socli/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1495725651 -SHA256 (gautamkrishnar-socli-3.6_GH0.tar.gz) = 6c7f9bd0554d25a1cd6f3415323a9d77ddf977202a9ff65eef24de095e71bff9 -SIZE (gautamkrishnar-socli-3.6_GH0.tar.gz) = 28595 +TIMESTAMP = 1559069951 +SHA256 (gautamkrishnar-socli-3.7_GH0.tar.gz) = c3368901f8c10d6a0b2c5708f6e30e9a70bfcbd97750c47d422878dfc2bae575 +SIZE (gautamkrishnar-socli-3.7_GH0.tar.gz) = 28678 diff --git a/misc/py-socli/files/patch-setup.py b/misc/py-socli/files/patch-setup.py new file mode 100644 index 000000000000..53a819fd1a5c --- /dev/null +++ b/misc/py-socli/files/patch-setup.py @@ -0,0 +1,10 @@ +--- setup.py.orig 2019-05-28 18:59:20 UTC ++++ setup.py +@@ -17,7 +17,6 @@ setup( + name='socli', + include_package_data=True, + packages=["socli"], +- data_files=[('socli', ['socli/user_agents.txt'])], + entry_points = {"console_scripts": ['socli = socli.socli:main']}, + install_requires=['BeautifulSoup4','requests','colorama','Py-stackExchange', 'urwid'], + requires=['BeautifulSoup4','requests','colorama','PyStackExchange', 'urwid'],