From owner-dev-commits-ports-all@freebsd.org Sun Sep 19 06:06:43 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C8E516ABC34; Sun, 19 Sep 2021 06:06:43 +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 4HBxz754YVz3MYK; Sun, 19 Sep 2021 06:06:43 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 8300C18273; Sun, 19 Sep 2021 06:06:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18J66hAB052302; Sun, 19 Sep 2021 06:06:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18J66h1q052301; Sun, 19 Sep 2021 06:06:43 GMT (envelope-from git) Date: Sun, 19 Sep 2021 06:06:43 GMT Message-Id: <202109190606.18J66h1q052301@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: d299ed7b4863 - main - devel/py-platformdirs: Add py-platformdirs 2.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d299ed7b4863645178fa3cb315cb46668f41433d Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Sep 2021 06:06:44 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d299ed7b4863645178fa3cb315cb46668f41433d commit d299ed7b4863645178fa3cb315cb46668f41433d Author: Po-Chuan Hsieh AuthorDate: 2021-09-19 05:25:35 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-09-19 05:40:30 +0000 devel/py-platformdirs: Add py-platformdirs 2.3.0 When writing desktop application, finding the right location to store user data and configuration varies per platform. Even for single-platform apps, there may by plenty of nuances in figuring out the right location. This kind of thing is what the platformdirs module is for. platformdirs will help you choose an appropriate: - user data dir (user_data_dir) - user config dir (user_config_dir) - user cache dir (user_cache_dir) - site data dir (site_data_dir) - site config dir (site_config_dir) - user log dir (user_log_dir) - user runtime dir (user_runtime_dir) And also: - Is a single module so other Python packages can vendor their own private copy. - Is slightly opinionated on the directory names used. Look for "OPINION" in documentation and code for when an opinion is being applied. WWW: https://github.com/platformdirs/platformdirs --- devel/Makefile | 1 + devel/py-platformdirs/Makefile | 23 +++++++++++++++++++++++ devel/py-platformdirs/distinfo | 3 +++ devel/py-platformdirs/files/patch-setup.cfg | 9 +++++++++ devel/py-platformdirs/pkg-descr | 20 ++++++++++++++++++++ 5 files changed, 56 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d7efb1388c32..cb7ffabacaf5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4862,6 +4862,7 @@ SUBDIR += py-pkgconfig SUBDIR += py-plac SUBDIR += py-plan + SUBDIR += py-platformdirs SUBDIR += py-plette SUBDIR += py-plex SUBDIR += py-pluggy diff --git a/devel/py-platformdirs/Makefile b/devel/py-platformdirs/Makefile new file mode 100644 index 000000000000..c4909e3357fd --- /dev/null +++ b/devel/py-platformdirs/Makefile @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= platformdirs +PORTVERSION= 2.3.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python module for determining appropriate platform-specific dirs + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/setup.cfg + +.include diff --git a/devel/py-platformdirs/distinfo b/devel/py-platformdirs/distinfo new file mode 100644 index 000000000000..a89a28c744ab --- /dev/null +++ b/devel/py-platformdirs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1629364646 +SHA256 (platformdirs-2.3.0.tar.gz) = 15b056538719b1c94bdaccb29e5f81879c7f7f0f4a153f46086d155dffcd4f0f +SIZE (platformdirs-2.3.0.tar.gz) = 22730 diff --git a/devel/py-platformdirs/files/patch-setup.cfg b/devel/py-platformdirs/files/patch-setup.cfg new file mode 100644 index 000000000000..b8653264fe36 --- /dev/null +++ b/devel/py-platformdirs/files/patch-setup.cfg @@ -0,0 +1,9 @@ +--- setup.cfg.orig 2021-08-30 23:00:55 UTC ++++ setup.cfg +@@ -1,5 +1,6 @@ + [metadata] + name = platformdirs ++version = %%PORTVERSION%% + description = A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". + long_description = file: README.rst + long_description_content_type = text/x-rst diff --git a/devel/py-platformdirs/pkg-descr b/devel/py-platformdirs/pkg-descr new file mode 100644 index 000000000000..7955a6728618 --- /dev/null +++ b/devel/py-platformdirs/pkg-descr @@ -0,0 +1,20 @@ +When writing desktop application, finding the right location to store user data +and configuration varies per platform. Even for single-platform apps, there may +by plenty of nuances in figuring out the right location. + +This kind of thing is what the platformdirs module is for. platformdirs will +help you choose an appropriate: +- user data dir (user_data_dir) +- user config dir (user_config_dir) +- user cache dir (user_cache_dir) +- site data dir (site_data_dir) +- site config dir (site_config_dir) +- user log dir (user_log_dir) +- user runtime dir (user_runtime_dir) + +And also: +- Is a single module so other Python packages can vendor their own private copy. +- Is slightly opinionated on the directory names used. Look for "OPINION" in + documentation and code for when an opinion is being applied. + +WWW: https://github.com/platformdirs/platformdirs