FreeBSD Bugzilla – Attachment 242802 Details for
Bug 272021
[NEW PORT] net/py-anonfile: Unofficial library that wraps the anonfile.com REST API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
py-anonfile-0.2.7.patch
0001-net-py-anonfile-New-port-Unofficial-library-that-wra.patch (text/plain), 6.35 KB, created by
Jesús Daniel Colmenares Oviedo
on 2023-06-16 06:59:56 UTC
(
hide
)
Description:
py-anonfile-0.2.7.patch
Filename:
MIME Type:
Creator:
Jesús Daniel Colmenares Oviedo
Created:
2023-06-16 06:59:56 UTC
Size:
6.35 KB
patch
obsolete
>From 3904c41551687b1f509de783f17b62e551c91615 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Jes=C3=BAs=20Daniel=20Colmenares=20Oviedo?= > <DtxdF@disroot.org> >Date: Fri, 16 Jun 2023 02:58:19 -0400 >Subject: [PATCH] net/py-anonfile: New port: Unofficial library that wraps the > anonfile.com REST API > >anonfile is an unofficial Python API created to make uploading and >downloading files from <anonfiles.com> simple and effective for >programming in Python. The goal of the project is to create an >intuitive library for anonymous file sharing. > >WWW: https://github.com/nstrydom2/anonfile-api/ >--- > net/py-anonfile/Makefile | 24 ++++++++++++++ > net/py-anonfile/distinfo | 3 ++ > net/py-anonfile/files/LICENSE | 21 ++++++++++++ > net/py-anonfile/files/patch-setup.py | 33 +++++++++++++++++++ > .../files/patch-src_anonfile_anonfile.py | 12 +++++++ > net/py-anonfile/pkg-descr | 4 +++ > 6 files changed, 97 insertions(+) > create mode 100644 net/py-anonfile/Makefile > create mode 100644 net/py-anonfile/distinfo > create mode 100644 net/py-anonfile/files/LICENSE > create mode 100644 net/py-anonfile/files/patch-setup.py > create mode 100644 net/py-anonfile/files/patch-src_anonfile_anonfile.py > create mode 100644 net/py-anonfile/pkg-descr > >diff --git a/net/py-anonfile/Makefile b/net/py-anonfile/Makefile >new file mode 100644 >index 0000000000..128e32eae8 >--- /dev/null >+++ b/net/py-anonfile/Makefile >@@ -0,0 +1,24 @@ >+PORTNAME= anonfile >+DISTVERSION= 0.2.7 >+CATEGORIES= net python >+MASTER_SITES= PYPI >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= DtxdF@disroot.org >+COMMENT= Unofficial library that wraps the anonfile.com REST API >+WWW= https://github.com/nstrydom2/anonfile-api/ >+ >+LICENSE= MIT >+LICENSE_FILE= ${FILESDIR}/LICENSE >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}requests-toolbelt>0:www/py-requests-toolbelt@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR} >+ >+USES= python:3.7+ >+USE_PYTHON= autoplist distutils >+ >+NO_ARCH= yes >+ >+.include <bsd.port.mk> >diff --git a/net/py-anonfile/distinfo b/net/py-anonfile/distinfo >new file mode 100644 >index 0000000000..0126184fde >--- /dev/null >+++ b/net/py-anonfile/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1686877067 >+SHA256 (anonfile-0.2.7.tar.gz) = 25357970d0e567208f4b07f6ebf036c4934b78f04f991b271bf89fe13252359d >+SIZE (anonfile-0.2.7.tar.gz) = 12086 >diff --git a/net/py-anonfile/files/LICENSE b/net/py-anonfile/files/LICENSE >new file mode 100644 >index 0000000000..ee20b2de14 >--- /dev/null >+++ b/net/py-anonfile/files/LICENSE >@@ -0,0 +1,21 @@ >+ The MIT License >+ >+ Copyright (c) 2020, Nicholas Bruce Strydom >+ >+ Permission is hereby granted, free of charge, to any person obtaining a copy >+ of this software and associated documentation files (the "Software"), to deal >+ in the Software without restriction, including without limitation the rights >+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell >+ copies of the Software, and to permit persons to whom the Software is >+ furnished to do so, subject to the following conditions: >+ >+ The above copyright notice and this permission notice shall be included in >+ all copies or substantial portions of the Software. >+ >+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR >+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, >+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE >+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER >+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, >+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN >+ THE SOFTWARE. >diff --git a/net/py-anonfile/files/patch-setup.py b/net/py-anonfile/files/patch-setup.py >new file mode 100644 >index 0000000000..91358e0d20 >--- /dev/null >+++ b/net/py-anonfile/files/patch-setup.py >@@ -0,0 +1,33 @@ >+--- setup.py.orig 2023-06-16 04:37:29 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'}, >diff --git a/net/py-anonfile/files/patch-src_anonfile_anonfile.py b/net/py-anonfile/files/patch-src_anonfile_anonfile.py >new file mode 100644 >index 0000000000..235d7c3aa0 >--- /dev/null >+++ b/net/py-anonfile/files/patch-src_anonfile_anonfile.py >@@ -0,0 +1,12 @@ >+--- 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: >diff --git a/net/py-anonfile/pkg-descr b/net/py-anonfile/pkg-descr >new file mode 100644 >index 0000000000..572f14dd7e >--- /dev/null >+++ b/net/py-anonfile/pkg-descr >@@ -0,0 +1,4 @@ >+anonfile is an unofficial Python API created to make uploading and >+downloading files from <anonfiles.com> simple and effective for >+programming in Python. The goal of the project is to create an >+intuitive library for anonymous file sharing. >-- >2.38.1 >
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 272021
:
242802
|
243085