FreeBSD Bugzilla – Attachment 243997 Details for
Bug 273038
net/py-anonfile: Update to 1.0.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
anonfile-1.0.0.patch
0001-net-py-anonfile-Update-to-1.0.0.patch (text/plain), 5.00 KB, created by
Jesús Daniel Colmenares Oviedo
on 2023-08-10 06:46:22 UTC
(
hide
)
Description:
anonfile-1.0.0.patch
Filename:
MIME Type:
Creator:
Jesús Daniel Colmenares Oviedo
Created:
2023-08-10 06:46:22 UTC
Size:
5.00 KB
patch
obsolete
>From 0ef8fd40f9423b1a495657d96b3062e3c05ff3c3 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Jes=C3=BAs=20Daniel=20Colmenares=20Oviedo?= > <DtxdF@disroot.org> >Date: Thu, 10 Aug 2023 02:27:30 -0400 >Subject: [PATCH] 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 >--- > net/py-anonfile/Makefile | 2 +- > net/py-anonfile/distinfo | 6 +- > net/py-anonfile/files/patch-setup.py | 61 +++++++++---------- > .../files/patch-src_anonfile_anonfile.py | 12 ---- > 4 files changed, 34 insertions(+), 47 deletions(-) > delete mode 100644 net/py-anonfile/files/patch-src_anonfile_anonfile.py > >diff --git a/net/py-anonfile/Makefile b/net/py-anonfile/Makefile >index bfbb6655b..9702cfae9 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} >diff --git a/net/py-anonfile/distinfo b/net/py-anonfile/distinfo >index 0126184fd..d6c93b761 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 91358e0d2..f20cd8c03 100644 >--- a/net/py-anonfile/files/patch-setup.py >+++ b/net/py-anonfile/files/patch-setup.py >@@ -1,33 +1,32 @@ >---- 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)) >- python_minor = int(re.search(r'python_minor = "(.*?)"', lines).group(1)) >- >--print("reading dependency file") >-- >--with open("requirements/release.txt", mode='r', encoding='utf-8') as requirements: >-- packages = requirements.read().splitlines() >-- >--with open("requirements/dev.txt", mode='r', encoding='utf-8') as requirements: >-- dev_packages = requirements.read().splitlines() >-- >- print("reading readme file") >- >- with open("README.md", "r") as fh: >-@@ -37,9 +29,13 @@ 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" >-+ ], >- extra_requires={ >-- 'dev': dev_packages[1:], >- 'test': ['pytest'] >- }, >- package_dir={'': 'src'}, >+ python_major = int(re.search(r'python_major = "(.*?)"', lines).group(1)) >+ python_minor = int(re.search(r'python_minor = "(.*?)"', lines).group(1)) >+ >+-print("reading dependency file") >+- >+-with open("requirements/release.txt", mode='r', encoding='utf-8') as requirements: >+- packages = requirements.read().splitlines() >+- >+-with open("requirements/dev.txt", mode='r', encoding='utf-8') as requirements: >+- dev_packages = requirements.read().splitlines() >+- >+ print("reading readme file") >+ >+ with open("README.md", "r") as fh: >+@@ -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" >++ ], >+ extra_requires={ >+- 'dev': dev_packages[1:], >+ 'test': ['pytest'] >+ }, >+ package_dir={'': 'src'}, >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 235d7c3aa..000000000 >--- 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: >-- >2.41.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
DtxdF
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 273038
: 243997