re #1 - modernized packaging

This commit is contained in:
Jamie Cockburn 2021-07-01 12:38:55 +01:00
parent 420eeabb57
commit b27de834b0
5 changed files with 45 additions and 54 deletions

View file

@ -225,6 +225,16 @@ generate SAX style events while parsing JSON.
* It's not pure python
* It does not provide a pythonic `dict`/`list`-like interface
# Build
```bash
cd ~/sources/json-stream/
python3 -m venv ~/build/
. ~/build/bin/activate
pip install --upgrade build twine
python -m build
twine upload dist/*
```
# Acknowledgements
The JSON tokenizer used in the project was taken from the

4
pyproject.toml Normal file
View file

@ -0,0 +1,4 @@
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

View file

@ -1,3 +0,0 @@
requests
wheel
twine

31
setup.cfg Normal file
View file

@ -0,0 +1,31 @@
[metadata]
name = json-stream
version = 1.0.1
author = Jamie Cockburn
author_email = jamie_cockburn@hotmail.co.uk
description = Streaming JSON decoder
keywords = json, stream, decoder, encoder
url = https://github.com/daggaz/json-stream
long_description = file: README.md
long_description_content_type = text/markdown
project_urls =
Bug Tracker = https://github.com/daggaz/json-stream/issues
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
Topic :: Software Development :: Libraries
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
[options]
package_dir =
= src
packages = find:
setup_requires = wheel
python_requires = >=3.5, <4
install_requires =
requests
[options.packages.find]
where = src

View file

@ -1,51 +0,0 @@
from setuptools import setup, find_packages
import pathlib
here = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
long_description = (here / 'README.md').read_text(encoding='utf-8')
setup(
name='json-stream',
version='1.0.0',
description='Streaming JSON decoder',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/daggaz/json-stream',
author='Jamie Cockburn',
author_email='jamie_cockburn@hotmail.co.uk', # Optional
classifiers=[ # Optional
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
# Pick your license as you wish
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate you support Python 3. These classifiers are *not*
# checked by 'pip install'. See instead 'python_requires' below.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
],
keywords='sample, setuptools, development',
package_dir={'': 'src'},
packages=find_packages(where='src'),
setup_requires=['wheel'],
python_requires='>=3.5, <4',
project_urls={
'Bug Reports': 'https://github.com/daggaz/json-stream/issues',
'Source': 'https://github.com/daggaz/json-stream/',
},
)