Skip to content

Pip 23 compatibility #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@

dist: clean-dist
python3 setup.py sdist
pip3 install --upgrade pip build twine
python3 -m build .

setup: venv

venv: dev-packages.txt
virtualenv venv --python=${PYTHON_VERSION}
. venv/bin/activate; pip3 install \
-r dev-packages.txt
. venv/bin/activate && \
pip3 install --upgrade pip && \
pip3 install --requirement dev-packages.txt

.PHONY: test
test: venv
@ . venv/bin/activate && PYTHONPATH=src/ pytest -rsx -s --flake8 tests/ src/ --cov ./src/json_normalize/ --no-cov-on-fail --cov-report term-missing --doctest-modules --doctest-continue-on-failure
@ . venv/bin/activate && PYTHONPATH=src/ pytest -vv -rsx tests/ src/ --cov ./src/json_normalize/ --no-cov-on-fail --cov-report term-missing --doctest-modules --doctest-continue-on-failure
@ . venv/bin/activate && flake8 src --exclude '#*,~*,.#*'

.PHONY: clean
Expand Down
2 changes: 1 addition & 1 deletion dev-packages.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
flake8
black
pytest
pytest-flake8
pytest-clarity
pytest-cov
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
35 changes: 34 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,37 @@
universal = 0

[flake8]
max-line-length = 100
max-line-length = 100

[metadata]
name = json-normalize
version = attr: json_normalize.__version__
author = The Funnel Dev Team
author_email = [email protected]
description = Recursively flattens a JSON-like structure into a list of flat dicts.
classifiers =
Development Status :: 5 - Production/Stable
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Software Development :: Libraries
keywords = JSON
license = MIT
long_description = file: README.md
long_description_content_type = text/markdown
requires_python = ~=3.7
project_urls =
Bug Reports = https://github.com/funnel-io/json-normalize/issues
Source = https://github.com/funnel-io/json-normalize
url = https://github.com/funnel-io/json-normalize

[options]
package_dir =
=src
packages=find:

[options.packages.find]
where = src
42 changes: 0 additions & 42 deletions setup.py

This file was deleted.

6 changes: 4 additions & 2 deletions src/json_normalize/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from .main import json_normalize
from .key_joiners import last_node_name

VERSION = "1.0.0"

__all__ = [
json_normalize,
last_node_name,
]

__version__ = "1.0.1"

VERSION = __version__