mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
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
This commit is contained in:
parent
a67dd0b07a
commit
7dbdc9f4bf
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:],
|
||||
|
@ -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:
|
Loading…
Reference in New Issue
Block a user