Date: Thu, 18 Feb 2021 20:20:26 +0000 (UTC) From: Mateusz Piotrowski <0mp@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r565976 - in head/devel: . py-dotty-dict py-dotty-dict/files Message-ID: <202102182020.11IKKQ3k082201@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: 0mp Date: Thu Feb 18 20:20:25 2021 New Revision: 565976 URL: https://svnweb.freebsd.org/changeset/ports/565976 Log: 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 Added: head/devel/py-dotty-dict/ head/devel/py-dotty-dict/Makefile (contents, props changed) head/devel/py-dotty-dict/distinfo (contents, props changed) head/devel/py-dotty-dict/files/ head/devel/py-dotty-dict/files/patch-setup.py (contents, props changed) head/devel/py-dotty-dict/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Thu Feb 18 20:04:21 2021 (r565975) +++ head/devel/Makefile Thu Feb 18 20:20:25 2021 (r565976) @@ -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 Added: head/devel/py-dotty-dict/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-dotty-dict/Makefile Thu Feb 18 20:20:25 2021 (r565976) @@ -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> Added: head/devel/py-dotty-dict/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-dotty-dict/distinfo Thu Feb 18 20:20:25 2021 (r565976) @@ -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 Added: head/devel/py-dotty-dict/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-dotty-dict/files/patch-setup.py Thu Feb 18 20:20:25 2021 (r565976) @@ -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=[ Added: head/devel/py-dotty-dict/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-dotty-dict/pkg-descr Thu Feb 18 20:20:25 2021 (r565976) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102182020.11IKKQ3k082201>