Add devel/py-dotty-dict

Dotty Dict is a wrapper around builtin dictionary. Provides quick access to
deeply nested keys and values with dot notation. Dotty Dict expose dictionary
public API as proxy to dict implemented underneath and should work with all
dict-like objects which are instances of Mapping.

WWW: https://github.com/pawelzny/dotty_dict
This commit is contained in:
Mateusz Piotrowski 2021-02-18 20:20:25 +00:00
parent fdf4f869f9
commit fa68db94b8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=565976
5 changed files with 60 additions and 0 deletions

View file

@ -4356,6 +4356,7 @@
SUBDIR += py-dogpile.cache
SUBDIR += py-doit
SUBDIR += py-dotted
SUBDIR += py-dotty-dict
SUBDIR += py-dpcontracts
SUBDIR += py-dtfabric
SUBDIR += py-durus

View file

@ -0,0 +1,31 @@
# $FreeBSD$
PORTNAME= dotty-dict
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.0
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Dictionary wrapper for quick access to deeply nested keys
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
USES= python
# Use GitHub instead of CHEESESHOP to get the test files.
USE_GITHUB= yes
GH_ACCOUNT= pawelzny
GH_PROJECT= ${PORTNAME:S/-/_/}
USE_PYTHON= autoplist distutils
NO_ARCH= yes
do-test:
# Call the pytest module directly instead of using the official "test"
# make target in order to avoid calling pipenv.
(cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1613648650
SHA256 (pawelzny-dotty_dict-v1.3.0_GH0.tar.gz) = 23d28c35e698e68678dd904297e26bb0d8c1f7aa5c5d64279a0b9b05cfbb37e8
SIZE (pawelzny-dotty_dict-v1.3.0_GH0.tar.gz) = 31748

View file

@ -0,0 +1,19 @@
--- setup.py.orig 2021-02-18 20:19:33 UTC
+++ setup.py
@@ -45,7 +45,6 @@ class TestCommand(test):
setup(
name='dotty_dict',
- version=get_version('dotty_dict', '__init__.py'),
description="Dictionary wrapper for quick access to deeply nested keys.",
long_description=readme,
license="MIT license",
@@ -55,8 +54,6 @@ setup(
packages=find_packages(exclude=('tests', 'docs', 'bin', 'example')),
package_dir={'dotty_dict': 'dotty_dict'},
include_package_data=True,
- use_scm_version=True,
- install_requires=['setuptools_scm'],
zip_safe=False,
keywords='dot notation dict wrapper helper utils lib',
classifiers=[

View file

@ -0,0 +1,6 @@
Dotty Dict is a wrapper around builtin dictionary. Provides quick access to
deeply nested keys and values with dot notation. Dotty Dict expose dictionary
public API as proxy to dict implemented underneath and should work with all
dict-like objects which are instances of Mapping.
WWW: https://github.com/pawelzny/dotty_dict