From nobody Tue Apr 26 15:05:12 2022 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 D2981199EE29; Tue, 26 Apr 2022 15:05:12 +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 4KnlYN66ZCz3R05; Tue, 26 Apr 2022 15:05:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650985512; 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=1rhxHMlkZi9G2VEXnjioZ7TJPLB6a4aAZSKNsfgJ9QM=; b=vkZMi6qCUb2ajI6n0UBKqRF3ItMxrCe1qySRfHuyQlxJtJKGctvmsXC59gq3YQFGu/eCH5 rlCLbzn9zJ+40YEPHd5KiU7UiaoVqpRtrdVKPe0kxjZILBSn729fRNa45PhTYCdExo67Fr ukRybm+W3J9SclFH2Yi4HdAI9oJr7Yg3qERzRn7OzHfBbc27DHHi+DaPRmbbWU68dm0g9z K97hS3RiTZOEyvMDMPwepnKiIzv7CtCn22Hy4d/+qblzBVJtzcS1HjF8b7ucvQknatgiBe xjAQiolmfSws1QDIofaYm7FF5CBkzrhPZkTqCFuraF5UHCwTtnjMrYfpH+Hy6A== 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 ACD6911932; Tue, 26 Apr 2022 15:05:12 +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 23QF5Cjn038670; Tue, 26 Apr 2022 15:05:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23QF5CCN038669; Tue, 26 Apr 2022 15:05:12 GMT (envelope-from git) Date: Tue, 26 Apr 2022 15:05:12 GMT Message-Id: <202204261505.23QF5CCN038669@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: a0265e10800f - main - devel/py-platformdirs: Update to 2.5.2 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a0265e10800f0b041679529eec3b106c6f7ca07a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650985512; 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=1rhxHMlkZi9G2VEXnjioZ7TJPLB6a4aAZSKNsfgJ9QM=; b=OKeexVfN4rULBwck7Opn0lpLjzAD06diVvLMgodwHtTOhbkF6i8+CTpLArnATYHebi2heD 2/VOh+9saCgbmH6i2BzvHlkGknDkLEeSonz694KFtMAUO7s39YSLW/Q1DMon5PnaSum1lB W8b9a+UiiDz86Dl5ankEFBW64UExiLzJHwZ5eyJWM1MbyyFBHFB4sXhHklrhxz9kE4xrP8 y15ycV2czWRdFIfR9wXDsiLUvMtZXWPnrOXk88Lgdi6142NehGFB1NG37PPi9Sdg1WUJNh dS1R5RBtR+b4HBBCrB0IZ4q/2wBSSOZjRu39Go1GrWCgIspobevqKyF9XPnGYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650985512; a=rsa-sha256; cv=none; b=e4sbMk3gIVOJDGS+eN0Dg2BTIq6ntIraGqB4vhwDppuEM9nfwOLnynMANTXVXu55rfdt7G yyrFItuWFibG1WUkROZA3NS8t7brJ+XAKWPXCeHYoWHqK6OUPjL4fqW3Kz+L1pWFnTXmXg hUUZ34pWITEprnZ8KdNBpxlULja45tkJPHTlZXVcb5h6QS3xWuEhmLQlBYSpKDMp2y+low ROfqhTYgaK9I0ZLPZChU++MG+8eOcny1AbF20MhylfaVoKI09j3IKJ8z7OBms9+vFQcyli IQUVWICSz4P5FooWAiuDV29Ww1pVbw5oq4rERM1VkEh9PuvSdNxeir7Hax4u4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a0265e10800f0b041679529eec3b106c6f7ca07a commit a0265e10800f0b041679529eec3b106c6f7ca07a Author: Po-Chuan Hsieh AuthorDate: 2022-04-26 14:53:38 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-04-26 15:01:25 +0000 devel/py-platformdirs: Update to 2.5.2 Changes: https://github.com/platformdirs/platformdirs/releases https://github.com/platformdirs/platformdirs/blob/main/CHANGES.rst --- devel/py-platformdirs/Makefile | 5 ++-- devel/py-platformdirs/distinfo | 6 ++-- devel/py-platformdirs/files/patch-setup.cfg | 9 ------ devel/py-platformdirs/files/setup.py | 43 +++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 14 deletions(-) diff --git a/devel/py-platformdirs/Makefile b/devel/py-platformdirs/Makefile index d7c5daaee151..7e374d4d6c61 100644 --- a/devel/py-platformdirs/Makefile +++ b/devel/py-platformdirs/Makefile @@ -1,7 +1,7 @@ # Created by: Po-Chuan Hsieh PORTNAME= platformdirs -PORTVERSION= 2.5.1 +PORTVERSION= 2.5.2 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -18,6 +18,7 @@ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes post-patch: - @${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/setup.cfg + @${RM} ${WRKSRC}/pyproject.toml + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py .include diff --git a/devel/py-platformdirs/distinfo b/devel/py-platformdirs/distinfo index fa4ad438db34..f3059c928284 100644 --- a/devel/py-platformdirs/distinfo +++ b/devel/py-platformdirs/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1646058014 -SHA256 (platformdirs-2.5.1.tar.gz) = 7535e70dfa32e84d4b34996ea99c5e432fa29a708d0f4e394bbcb2a8faa4f16d -SIZE (platformdirs-2.5.1.tar.gz) = 24720 +TIMESTAMP = 1650970123 +SHA256 (platformdirs-2.5.2.tar.gz) = 58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19 +SIZE (platformdirs-2.5.2.tar.gz) = 22529 diff --git a/devel/py-platformdirs/files/patch-setup.cfg b/devel/py-platformdirs/files/patch-setup.cfg deleted file mode 100644 index b8653264fe36..000000000000 --- a/devel/py-platformdirs/files/patch-setup.cfg +++ /dev/null @@ -1,9 +0,0 @@ ---- 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/files/setup.py b/devel/py-platformdirs/files/setup.py new file mode 100644 index 000000000000..aa5c9455ca96 --- /dev/null +++ b/devel/py-platformdirs/files/setup.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +setup( + name='platformdirs', + version='%%PORTVERSION%%', + description='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".', + long_description='The problem\n===========\n\n.. image:: https://github.com/platformdirs/platformdirs/workflows/Test/badge.svg\n :target: https://github.com/platformdirs/platformdirs/actions?query=workflow%3ATest\n\nWhen writing desktop application, finding the right location to store user data\nand configuration varies per platform. Even for single-platform apps, there\nmay by plenty of nuances in figuring out the right location.\n\nFor example, if running on macOS, you should use::\n\n ~/Library/Application Support/\n\nIf on Windows (at least English Win XP) that should be::\n\n C:\\Documents and Settings\\\\Application Data\\Local Settings\\\\\n\nor possibly::\n\n C:\\Documents and Settings\\\\Application Data\\\\\n\nfor `roaming profiles `_ but that is another story.\n\nOn Linux (and other Unices), accordin g to the `XDG Basedir Spec`_, it should be::\n\n ~/.local/share/\n\n.. _XDG Basedir Spec: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html\n\n``platformdirs`` to the rescue\n==============================\n\nThis kind of thing is what the ``platformdirs`` module is for.\n``platformdirs`` will help you choose an appropriate:\n\n- user data dir (``user_data_dir``)\n- user config dir (``user_config_dir``)\n- user cache dir (``user_cache_dir``)\n- site data dir (``site_data_dir``)\n- site config dir (``site_config_dir``)\n- user log dir (``user_log_dir``)\n- user documents dir (``user_documents_dir``)\n- user runtime dir (``user_runtime_dir``)\n\nAnd also:\n\n- Is a single module so other Python packages can vendor their own private copy.\n- Is slightly opinionated on the directory names used. Look for "OPINION" in\n documentation and code for when an opinion is being applied.\n\nExample output\n==============\n\nOn macOS:\n\n.. code-block:: pyco n\n\n >>> from platformdirs import *\n ! >>> appname = "SuperApp"\n >>> appauthor = "Acme"\n >>> user_data_dir(appname, appauthor)\n \'/Users/trentm/Library/Application Support/SuperApp\'\n >>> site_data_dir(appname, appauthor)\n \'/Library/Application Support/SuperApp\'\n >>> user_cache_dir(appname, appauthor)\n \'/Users/trentm/Library/Caches/SuperApp\'\n >>> user_log_dir(appname, appauthor)\n \'/Users/trentm/Library/Logs/SuperApp\'\n >>> user_documents_dir()\n \'/Users/trentm/Documents\'\n >>> user_runtime_dir(appname, appauthor)\n \'/Users/trentm/Library/Caches/TemporaryItems/SuperApp\'\n\nOn Windows 7:\n\n.. code-block:: pycon\n\n >>> from platformdirs import *\n >>> appname = "SuperApp"\n >>> appauthor = "Acme"\n >>> user_data_dir(appname, appauthor)\n \'C:\\\\Users\\\\trentm\\\\AppData\\\\Local\\\\Acme\\\\SuperApp\'\n >>> user_data_dir(appname, appauthor, roaming=True)\n \'C:\\\\Users\\\\trentm\\\\AppData\\\\Roaming\\\\Acme\\\\SuperApp\'\n >>> user_cache _dir(appname, appauthor)\n \'C:\\\\Users\\\\trentm\\\\AppData\\\\Local\\\\Acme\\\\SuperApp\\\\Cache\'\n >>> user_log_dir(appname, appauthor)\n \'C:\\\\Users\\\\trentm\\\\AppData\\\\Local\\\\Acme\\\\SuperApp\\\\Logs\'\n >>> user_documents_dir()\n \'C:\\\\Users\\\\trentm\\\\Documents\'\n >>> user_runtime_dir(appname, appauthor)\n \'C:\\\\Users\\\\trentm\\\\AppData\\\\Local\\\\Temp\\\\Acme\\\\SuperApp\'\n\nOn Linux:\n\n.. code-block:: pycon\n\n >>> from platformdirs import *\n >>> appname = "SuperApp"\n >>> appauthor = "Acme"\n >>> user_data_dir(appname, appauthor)\n \'/home/trentm/.local/share/SuperApp\'\n >>> site_data_dir(appname, appauthor)\n \'/usr/local/share/SuperApp\'\n >>> site_data_dir(appname, appauthor, multipath=True)\n \'/usr/local/share/SuperApp:/usr/share/SuperApp\'\n >>> user_cache_dir(appname, appauthor)\n \'/home/trentm/.cache/SuperApp\'\n >>> user_log_dir(appname, appauthor)\n \'/home/trentm/.cache/SuperApp /log\'\n >>> user_config_dir(appname)\n ! \'/home! /trentm/..config/SuperApp\'\n >>> user_documents_dir()\n \'/home/trentm/Documents\'\n >>> user_runtime_dir(appname, appauthor)\n \'/run/user/{os.getuid()}/SuperApp\'\n >>> site_config_dir(appname)\n \'/etc/xdg/SuperApp\'\n >>> os.environ["XDG_CONFIG_DIRS"] = "/etc:/usr/local/etc"\n >>> site_config_dir(appname, multipath=True)\n \'/etc/SuperApp:/usr/local/etc/SuperApp\'\n\nOn Android::\n\n >>> from platformdirs import *\n >>> appname = "SuperApp"\n >>> appauthor = "Acme"\n >>> user_data_dir(appname, appauthor)\n \'/data/data/com.myApp/files/SuperApp\'\n >>> user_cache_dir(appname, appauthor)\n \'/data/data/com.myApp/cache/SuperApp\'\n >>> user_log_dir(appname, appauthor)\n \'/data/data/com.myApp/cache/SuperApp/log\'\n >>> user_config_dir(appname)\n \'/data/data/com.myApp/shared_prefs/SuperApp\'\n >>> user_documents_dir()\n \'/storage/emulated/0/Documents\'\n >>> user_runtime_dir(appname, appauthor)\n \'/data/data /com.myApp/cache/SuperApp/tmp\'\n\nNote: Some android apps like Termux and Pydroid are used as shells. These\napps are used by the end user to emulate Linux environment. Presence of\n``SHELL`` environment variable is used by Platformdirs to differentiate\nbetween general android apps and android apps used as shells. Shell android\napps also support ``XDG_*`` environment variables.\n\n\n``PlatformDirs`` for convenience\n================================\n\n.. code-block:: pycon\n\n >>> from platformdirs import PlatformDirs\n >>> dirs = PlatformDirs("SuperApp", "Acme")\n >>> dirs.user_data_dir\n \'/Users/trentm/Library/Application Support/SuperApp\'\n >>> dirs.site_data_dir\n \'/Library/Application Support/SuperApp\'\n >>> dirs.user_cache_dir\n \'/Users/trentm/Library/Caches/SuperApp\'\n >>> dirs.user_log_dir\n \'/Users/trentm/Library/Logs/SuperApp\'\n >>> dirs.user_documents_dir\n \'/Users/trentm/Documents\'\n >>> dirs.user_runtime_dir\n \'/Us ers/trentm/Library/Caches/TemporaryItems/Sup! erApp\'\n\! nPer-version isolation\n=====================\n\nIf you have multiple versions of your app in use that you want to be\nable to run side-by-side, then you may want version-isolation for these\ndirs::\n\n >>> from platformdirs import PlatformDirs\n >>> dirs = PlatformDirs("SuperApp", "Acme", version="1.0")\n >>> dirs.user_data_dir\n \'/Users/trentm/Library/Application Support/SuperApp/1.0\'\n >>> dirs.site_data_dir\n \'/Library/Application Support/SuperApp/1.0\'\n >>> dirs.user_cache_dir\n \'/Users/trentm/Library/Caches/SuperApp/1.0\'\n >>> dirs.user_log_dir\n \'/Users/trentm/Library/Logs/SuperApp/1.0\'\n >>> dirs.user_documents_dir\n \'/Users/trentm/Documents\'\n >>> dirs.user_runtime_dir\n \'/Users/trentm/Library/Caches/TemporaryItems/SuperApp/1.0\'\n\nBe wary of using this for configuration files though; you\'ll need to handle\nmigrating configuration files manually.\n\nWhy this Fork?\n==============\n\nThis repository is a friendly fork of the wonderful work started by\n`ActiveState `_ who created\n``appdirs``, this package\'s ancestor.\n\nMaintaining an open source project is no easy task, particularly\nfrom within an organization, and the Python community is indebted\nto ``appdirs`` (and to Trent Mick and Jeff Rouse in particular) for\ncreating an incredibly useful simple module, as evidenced by the wide\nnumber of users it has attracted over the years.\n\nNonetheless, given the number of long-standing open issues\nand pull requests, and no clear path towards `ensuring\nthat maintenance of the package would continue or grow\n`_, this fork was\ncreated.\n\nContributions are most welcome.\n', + maintainer_email='Bernát Gábor , Julian Berman , Ofek Lev , Ronny Pfannschmidt ', + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], + extras_require={ + 'docs': [ + 'furo>=2021.7.5b38', + 'proselint>=0.10.2', + 'sphinx-autodoc-typehints>=1.12', + 'sphinx>=4', + ], + 'test': [ + 'appdirs==1.4.4', + 'pytest-cov>=2.7', + 'pytest-mock>=3.6', + 'pytest>=6', + ], + }, + packages=[ + 'src.platformdirs', + ], +)