From nobody Wed Jul 05 17:25:31 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qx64X17Zgz4lpMg; Wed, 5 Jul 2023 17:25:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qx64X0RPPz4V0l; Wed, 5 Jul 2023 17:25:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688577932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=k8HpcM+LyQdAUEOefn1UIGm6N0kVE6idQ9VLxL2ARGw=; b=MWFS1Wx9UmAKcJ2SlX8X7Pm1JCIP6jaUd+06ATEZAgclz1Q0xHEmcA3btxwH8Pi+hg+lsP nhNBtT8qQOgxkAsPSWby0TzaFB3sARihfquQ0cFXGRaR8FSz14KeXulhEgXKx6RCyOjkHo AoQlcS8agIdEhE2Iv82bgAqDSjUlVb1Us3YShsPOtXbeQVytUIjMPjoWFjWVakgLnINpxu hRmbSY60Wm+0Fi64soLZpKVFZsdrKR0Mg6zPegWEP28+VEbMgpUT7KbujSJfaMNbhUPT7I eJjHjdffTa4etdd6CWlrm8UEPkpcAUgjpOpwtFmw6wAIuJai9rwbce2sCDTf+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688577932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=k8HpcM+LyQdAUEOefn1UIGm6N0kVE6idQ9VLxL2ARGw=; b=YSuvIJloFSJDqXhuvgiKPVbR0cb5YRuGAou2Q++w0kVRhI6AmQxuBZOGmImi8r+AkVCDNT C98wC8SbEQxe4B837snv8Siz0mTy6ZJlCrWtH2UHR+jER1LpFEDfYabgQqGExgykCERqZL 7P0101wNlmjWWyiIh0bOXWUCq3lc7myB8H+5O9MZeNokhWcFUXugfbG49gml2Anfn9I4Bt 8GGNTcVDPZV9GTpgzjWur160p/aL6Nkf1OqVvg56LIWyZuzT+F9E1jgdPBHSMely2drTqP K6fHD9yG2p2N6ctwKt/uVFiTCB9LKyGoJBNYQouDZ8DPxdDOvpk4yrmaEb8jzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688577932; a=rsa-sha256; cv=none; b=qMio2RH6+7Qs2iRgUksJIVeXtexfDn43m1B/vG8af3ZIBen0wMIRWNR4RfDDaYY9ZmeZEB jW5kAsb/+YhlD2SxC29fqV3gaIlLdZsFkT1GsCqwVQFNgB4Xkb+KV9xpqOk/lmTTeaZKfO ks5PcEZAZl1V4TfMHz5bRQAv8gsLS4jqumzmXaeaFBFGiuZdQ0NqXFPaxioHBb+lt2e+7a Zllsbp1u6Ozb9so/tVHeXJQiguOnBWfbM9gJZNe+JBM4h35U5GFNL53mvmNwwD/GsBXhBT xN78nUT8uTge92OMSlMC3QIXx/O0NtVxs6a3sSlIQKODAf9YZ6HqGqVnfTPGpw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qx64W6VYlzNv1; Wed, 5 Jul 2023 17:25:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 365HPV8D099270; Wed, 5 Jul 2023 17:25:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 365HPVd4099269; Wed, 5 Jul 2023 17:25:31 GMT (envelope-from git) Date: Wed, 5 Jul 2023 17:25:31 GMT Message-Id: <202307051725.365HPVd4099269@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 55b68f21474e - main - net/py-anonfile: New port: Unofficial library that wraps the anonfile.com REST API List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 55b68f21474e20e69bae407af0d10be8746a103a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=55b68f21474e20e69bae407af0d10be8746a103a commit 55b68f21474e20e69bae407af0d10be8746a103a Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2023-06-30 21:41:46 +0000 Commit: Robert Clausecker CommitDate: 2023-07-05 17:21:09 +0000 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 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 PR: 272021 --- net/Makefile | 1 + net/py-anonfile/Makefile | 23 +++++++++++++++ net/py-anonfile/distinfo | 3 ++ net/py-anonfile/files/patch-setup.py | 33 ++++++++++++++++++++++ .../files/patch-src_anonfile_anonfile.py | 12 ++++++++ net/py-anonfile/pkg-descr | 4 +++ 6 files changed, 76 insertions(+) diff --git a/net/Makefile b/net/Makefile index e8c543b9a1da..3c190239cb5a 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1038,6 +1038,7 @@ SUBDIR += py-aiohttp-socks SUBDIR += py-amqp SUBDIR += py-amqplib + SUBDIR += py-anonfile SUBDIR += py-avahi SUBDIR += py-bonsai SUBDIR += py-cepa diff --git a/net/py-anonfile/Makefile b/net/py-anonfile/Makefile new file mode 100644 index 000000000000..bfbb6655b116 --- /dev/null +++ b/net/py-anonfile/Makefile @@ -0,0 +1,23 @@ +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 + +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.9+ +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include diff --git a/net/py-anonfile/distinfo b/net/py-anonfile/distinfo new file mode 100644 index 000000000000..0126184fde4d --- /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/patch-setup.py b/net/py-anonfile/files/patch-setup.py new file mode 100644 index 000000000000..91358e0d20c5 --- /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 000000000000..235d7c3aa0ff --- /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 000000000000..572f14dd7ef5 --- /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 simple and effective for +programming in Python. The goal of the project is to create an +intuitive library for anonymous file sharing.