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:
parent
a8c790d60e
commit
1c6dbd32f8
9 changed files with 31 additions and 16 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -8,4 +8,5 @@ nested_lookup.egg-info/*
|
|||
.cache
|
||||
.vscode
|
||||
git_commit.sh
|
||||
venv
|
||||
venv/*
|
||||
env/*
|
||||
|
|
|
|||
9
Makefile
Normal file
9
Makefile
Normal 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
|
||||
|
|
@ -1,11 +1,6 @@
|
|||
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!
|
||||
|
||||
The `nested_lookup` package provides many Python functions for working with deeply nested documents.
|
||||
|
|
@ -322,7 +317,7 @@ misc
|
|||
* Matheus Lins
|
||||
|
||||
:web:
|
||||
* http://russell.ballestrini.net
|
||||
* https://russell.ballestrini.net
|
||||
* http://douglasmiranda.com (https://gist.github.com/douglasmiranda/5127251)
|
||||
* https://github.com/Salfiii
|
||||
* https://github.com/matheuslins
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import copy
|
||||
import warnings
|
||||
from six import iteritems
|
||||
from nested_lookup import nested_lookup
|
||||
from .nested_lookup import nested_lookup
|
||||
|
||||
|
||||
def nested_delete(document, key, in_place=False):
|
||||
|
|
|
|||
0
nested_lookup/tests/__init__.py
Normal file
0
nested_lookup/tests/__init__.py
Normal file
|
|
@ -1,7 +1,11 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from nested_lookup import nested_lookup, nested_update
|
||||
from nested_lookup import nested_delete, nested_alter
|
||||
from .. import (
|
||||
nested_lookup,
|
||||
nested_update,
|
||||
nested_delete,
|
||||
nested_alter,
|
||||
)
|
||||
|
||||
|
||||
class BaseLookUpApi(TestCase):
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from nested_lookup import (
|
||||
from .. import (
|
||||
nested_lookup,
|
||||
get_all_keys,
|
||||
get_occurrence_of_key,
|
||||
5
requirements-test.txt
Normal file
5
requirements-test.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# testing.
|
||||
pytest
|
||||
pytest-cov
|
||||
nose
|
||||
twine
|
||||
11
setup.py
11
setup.py
|
|
@ -23,16 +23,16 @@ print(requirements())
|
|||
|
||||
setup(
|
||||
name="nested-lookup",
|
||||
version="0.2.23",
|
||||
version="0.2.24",
|
||||
description="Python functions for working with deeply nested documents (lists and dicts) ",
|
||||
keywords="nested document dictionary dict list lookup schema json xml yaml",
|
||||
long_description=open("README.rst").read(),
|
||||
author="Russell Ballestrini",
|
||||
author_email="russell@ballestrini.net",
|
||||
url="https://github.com/russellballestrini/nested-lookup",
|
||||
author_email="russell.ballestrini@gmail.com",
|
||||
url="https://git.unturf.com/python/nested-lookup",
|
||||
platforms=["All"],
|
||||
license="Public Domain",
|
||||
packages=find_packages(),
|
||||
packages=find_packages(exclude="tests"),
|
||||
include_package_data=True,
|
||||
install_requires=requirements(),
|
||||
classifiers=[
|
||||
|
|
@ -44,6 +44,7 @@ setup(
|
|||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
@ -51,5 +52,5 @@ setup(
|
|||
|
||||
# build package:
|
||||
# pip install twine
|
||||
# python setup.py sdist
|
||||
# python setup.py sdist bdist_egg
|
||||
# twine upload dist/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue