git: 7dbdc9f4bfb9 - main - net/py-anonfile: Update to 1.0.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Aug 2023 09:41:31 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=7dbdc9f4bfb9b1f28fb868ce4417cc76e2fdb52b commit 7dbdc9f4bfb9b1f28fb868ce4417cc76e2fdb52b Author: Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org> AuthorDate: 2023-08-10 06:27:30 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-08-13 09:32:55 +0000 net/py-anonfile: Update to 1.0.0 ChangeLog: https://github.com/nstrydom2/anonfile-api/blob/v1.0.0/CHANGELOG.md * drops support for Python 3.7 and makes 3.8 the new baseline for further development * updates all dependencies * adds size_readable property to ParseResponse * improves the testing methodology of the library * fixes a bug in which the config directory was set incorrectly on FreeBSD * refactors and future proofs CLI code PR: 273038 --- net/py-anonfile/Makefile | 4 ++-- net/py-anonfile/distinfo | 6 +++--- net/py-anonfile/files/patch-setup.py | 9 ++++----- net/py-anonfile/files/patch-src_anonfile_anonfile.py | 12 ------------ 4 files changed, 9 insertions(+), 22 deletions(-) diff --git a/net/py-anonfile/Makefile b/net/py-anonfile/Makefile index bfbb6655b116..2850f96004f0 100644 --- a/net/py-anonfile/Makefile +++ b/net/py-anonfile/Makefile @@ -1,5 +1,5 @@ PORTNAME= anonfile -DISTVERSION= 0.2.7 +DISTVERSION= 1.0.0 CATEGORIES= net python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -15,7 +15,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-meta ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR} -USES= python:3.9+ +USES= dos2unix python:3.9+ USE_PYTHON= autoplist distutils NO_ARCH= yes diff --git a/net/py-anonfile/distinfo b/net/py-anonfile/distinfo index 0126184fde4d..d6c93b761591 100644 --- a/net/py-anonfile/distinfo +++ b/net/py-anonfile/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1686877067 -SHA256 (anonfile-0.2.7.tar.gz) = 25357970d0e567208f4b07f6ebf036c4934b78f04f991b271bf89fe13252359d -SIZE (anonfile-0.2.7.tar.gz) = 12086 +TIMESTAMP = 1691647723 +SHA256 (anonfile-1.0.0.tar.gz) = d64f5180d6d400098ae32eeb62a0b82b7095f1cdcda0bcacfe71d91ac3bc03ec +SIZE (anonfile-1.0.0.tar.gz) = 14082 diff --git a/net/py-anonfile/files/patch-setup.py b/net/py-anonfile/files/patch-setup.py index 91358e0d20c5..41fb788e12e2 100644 --- a/net/py-anonfile/files/patch-setup.py +++ b/net/py-anonfile/files/patch-setup.py @@ -1,4 +1,4 @@ ---- setup.py.orig 2023-06-16 04:37:29 UTC +--- setup.py.orig 2023-08-10 06:12:11 UTC +++ setup.py @@ -9,14 +9,6 @@ with open("src/anonfile/anonfile.py", encoding='utf-8' python_major = int(re.search(r'python_major = "(.*?)"', lines).group(1)) @@ -15,16 +15,15 @@ print("reading readme file") with open("README.md", "r") as fh: -@@ -37,9 +29,13 @@ setup( +@@ -37,9 +29,12 @@ setup( 'Changelog': "https://github.com/nstrydom2/anonfile-api/blob/master/CHANGELOG.md" - }, + }, python_requires=">=%d.%d" % (python_major, python_minor), - install_requires=packages, + install_requires=[ + "requests", + "requests-toolbelt", -+ "tqdm", -+ "importlib-metadata" ++ "tqdm" + ], extra_requires={ - 'dev': dev_packages[1:], diff --git a/net/py-anonfile/files/patch-src_anonfile_anonfile.py b/net/py-anonfile/files/patch-src_anonfile_anonfile.py deleted file mode 100644 index 235d7c3aa0ff..000000000000 --- a/net/py-anonfile/files/patch-src_anonfile_anonfile.py +++ /dev/null @@ -1,12 +0,0 @@ ---- src/anonfile/anonfile.py.orig 2023-06-16 05:34:29 UTC -+++ src/anonfile/anonfile.py -@@ -65,7 +65,8 @@ def get_config_dir() -> Path: - return { - 'Windows': Path(os.path.expandvars('%LOCALAPPDATA%')), - 'Darwin': Path.home().joinpath('Library').joinpath('Application Support'), -- 'Linux': Path.home().joinpath('.config') -+ 'Linux': Path.home().joinpath('.config'), -+ 'FreeBSD': Path.home().joinpath('.config') - }[platform.system()].joinpath(package_name) - - def get_logfile_path() -> Path: