BSD Ports

devel/py-platformdirs 4.11.12 FreeBSD

Python module for determining appropriate platform-specific dirs

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
20d219bf4a
License
MIT
Categories
devel, python
Package size
47.5 KiB, 416.0 KiB installed

Description

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.

In the other systems

SystemPortVersion
FreeBSDdevel/py-platformdirs4.11.12
DragonFlydevel/py-platformdirs4.3.6
MidnightBSDdevel/py-platformdirs4.3.6_1

Install

Binary package:

pkg install py312-platformdirs

From the ports tree:

cd /usr/ports/devel/py-platformdirs/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-platformdirs>0:devel/py-platformdirs

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.11.124.11.122.5.44.3.84.11.12
FreeBSD:14:quarterly4.11.124.11.12n/a4.3.84.11.12
FreeBSD:15:latest4.11.124.11.12n/a4.3.84.3.8
FreeBSD:15:quarterly4.11.124.11.12n/an/an/a
FreeBSD:16:latest4.11.124.11.12n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

The full lists below include those, and their dependencies in turn.

Build dependencies 22
Run dependencies 7
Required by 377

The first 100 are listed.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
platformdirs-4.11.12.tar.gz40016e8dc1cb58f1153fd7f61db1374317770baababec2480b37b8f01c6cc25b45267
Master sites 1
  • PYPI

Commit history 6

DateCommitCreditsLog message
20d219bf4a Po-Chuan Hsieh devel/py-platformdirs: Update to 4.11.12
Changes: https://github.com/tox-dev/platformdirs/releases
dd98e609b4 Po-Chuan Hsieh devel/py-platformdirs: Update to 4.11.11
Changes: https://github.com/tox-dev/platformdirs/releases
1333cd0f2e Po-Chuan Hsieh devel/py-platformdirs: Update to 4.11.8
Changes: https://github.com/tox-dev/platformdirs/releases
89e3f233a3 Po-Chuan Hsieh devel/py-platformdirs: Update to 4.11.6
Changes: https://github.com/tox-dev/platformdirs/releases
355809cd5c Po-Chuan Hsieh devel/py-platformdirs: Update to 4.11.3
Changes: https://github.com/tox-dev/platformdirs/releases

The latest 5 of 6 in the history this site was built from.