modified: .gitignore

new file:   Makefile
	modified:   README.rst
	modified:   nested_lookup/lookup_api.py
	new file:   nested_lookup/tests/__init__.py
	renamed:    test_lookup_api.py -> nested_lookup/tests/test_lookup_api.py
	renamed:    test_nested_lookup.py -> nested_lookup/tests/test_nested_lookup.py
	new file:   requirements-test.txt
	modified:   setup.py
This commit is contained in:
Russell Ballestrini 2022-07-06 14:47:54 -04:00
parent a8c790d60e
commit 1c6dbd32f8
9 changed files with 31 additions and 16 deletions

3
.gitignore vendored
View file

@ -8,4 +8,5 @@ nested_lookup.egg-info/*
.cache .cache
.vscode .vscode
git_commit.sh git_commit.sh
venv venv/*
env/*

9
Makefile Normal file
View file

@ -0,0 +1,9 @@
env:
python3 -m venv env
. env/bin/activate
env/bin/pip install --upgrade pip
test: env
env/bin/pip install --upgrade -r requirements-test.txt
env/bin/py.test
#env/bin/py.test --lf

View file

@ -1,11 +1,6 @@
nested_lookup nested_lookup
############# #############
.. image:: https://img.shields.io/badge/pypi-0.2.23-green.svg
:target: https://pypi.python.org/pypi/nested-lookup
.. image:: https://travis-ci.org/rameshrvr/nested-lookup.svg?branch=master
:target: https://travis-ci.org/rameshrvr/nested-lookup
Make working with JSON, YAML, and XML document responses fun again! Make working with JSON, YAML, and XML document responses fun again!
The `nested_lookup` package provides many Python functions for working with deeply nested documents. The `nested_lookup` package provides many Python functions for working with deeply nested documents.
@ -322,7 +317,7 @@ misc
* Matheus Lins * Matheus Lins
:web: :web:
* http://russell.ballestrini.net * https://russell.ballestrini.net
* http://douglasmiranda.com (https://gist.github.com/douglasmiranda/5127251) * http://douglasmiranda.com (https://gist.github.com/douglasmiranda/5127251)
* https://github.com/Salfiii * https://github.com/Salfiii
* https://github.com/matheuslins * https://github.com/matheuslins

View file

@ -1,7 +1,7 @@
import copy import copy
import warnings import warnings
from six import iteritems from six import iteritems
from nested_lookup import nested_lookup from .nested_lookup import nested_lookup
def nested_delete(document, key, in_place=False): def nested_delete(document, key, in_place=False):

View file

View file

@ -1,7 +1,11 @@
from unittest import TestCase from unittest import TestCase
from nested_lookup import nested_lookup, nested_update from .. import (
from nested_lookup import nested_delete, nested_alter nested_lookup,
nested_update,
nested_delete,
nested_alter,
)
class BaseLookUpApi(TestCase): class BaseLookUpApi(TestCase):

View file

@ -1,6 +1,6 @@
from unittest import TestCase from unittest import TestCase
from nested_lookup import ( from .. import (
nested_lookup, nested_lookup,
get_all_keys, get_all_keys,
get_occurrence_of_key, get_occurrence_of_key,

5
requirements-test.txt Normal file
View file

@ -0,0 +1,5 @@
# testing.
pytest
pytest-cov
nose
twine

View file

@ -23,16 +23,16 @@ print(requirements())
setup( setup(
name="nested-lookup", name="nested-lookup",
version="0.2.23", version="0.2.24",
description="Python functions for working with deeply nested documents (lists and dicts) ", description="Python functions for working with deeply nested documents (lists and dicts) ",
keywords="nested document dictionary dict list lookup schema json xml yaml", keywords="nested document dictionary dict list lookup schema json xml yaml",
long_description=open("README.rst").read(), long_description=open("README.rst").read(),
author="Russell Ballestrini", author="Russell Ballestrini",
author_email="russell@ballestrini.net", author_email="russell.ballestrini@gmail.com",
url="https://github.com/russellballestrini/nested-lookup", url="https://git.unturf.com/python/nested-lookup",
platforms=["All"], platforms=["All"],
license="Public Domain", license="Public Domain",
packages=find_packages(), packages=find_packages(exclude="tests"),
include_package_data=True, include_package_data=True,
install_requires=requirements(), install_requires=requirements(),
classifiers=[ classifiers=[
@ -44,6 +44,7 @@ setup(
"Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
], ],
) )
@ -51,5 +52,5 @@ setup(
# build package: # build package:
# pip install twine # pip install twine
# python setup.py sdist # python setup.py sdist bdist_egg
# twine upload dist/* # twine upload dist/*