diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f00b633 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,50 @@ +[build-system] +requires = ["setuptools>=75", "setuptools_scm>=7", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "python-jsonstore" +description = "Map JSON files onto Python attributes for simple configuration storage" +readme = "README.rst" +requires-python = ">=2.7" +license = {text = "MIT"} +authors = [ + {name = "Oliver Bristow", email = "github+pypi@oliverbristow.co.uk"}, +] +keywords = ["json", "key", "value", "store"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", + "Topic :: Database", + "Topic :: Software Development", +] +dependencies = [] +dynamic = ["version"] + +[project.urls] +Homepage = "https://github.com/Code0x58/python-jsonstore/" + +[tool.setuptools] +py-modules = ["jsonstore"] +license-files = ["LICENCE.md"] + +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 3c6e79c..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 6aadfcd..0000000 --- a/setup.py +++ /dev/null @@ -1,51 +0,0 @@ -import codecs -from os import path -from textwrap import dedent - -from setuptools import setup - -here = path.abspath(path.dirname(__file__)) - -with codecs.open(path.join(here, "README.rst"), encoding='utf-8') as f: - long_description = f.read() - -setup( - name='python-jsonstore', - use_scm_version=True, - description="", - long_description=long_description, - long_description_content_type='text/x-rst', - author="Oliver Bristow", - author_email='github+pypi@oliverbristow.co.uk', - license='MIT', - classifiers=dedent(""" - Development Status :: 5 - Production/Stable - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Operating System :: OS Independent - Programming Language :: Python :: 2 - Programming Language :: Python :: 2.7 - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.3 - Programming Language :: Python :: 3.4 - Programming Language :: Python :: 3.5 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: 3.13 - Programming Language :: Python :: Implementation :: CPython - Programming Language :: Python :: Implementation :: PyPy - Topic :: Database - Topic :: Software Development - """).strip().split('\n'), - keywords='json key value store', - url='https://github.com/Code0x58/python-jsonstore/', - py_modules=dedent(""" - jsonstore - """).strip().split('\n'), - setup_requires=["setuptools_scm", "wheel"], -)