diff --git a/.gitignore b/.gitignore index 433acc2..6d31cdd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# setup.py output +# build output build/ dist/ simplegist.egg-info/ diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 3e677d0..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,2 +0,0 @@ -include README.md -include LICENSE.txt diff --git a/README.md b/README.md index 9d418ec..7ae73cc 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Python module to convert `JSON` into a human readable `HTML Table` representatio pip install json2html ``` -Or, Download [here](https://github.com/softvar/json2html/releases) and run `python setup.py install` after changing directory to `/json2html` +Or, Download [here](https://github.com/softvar/json2html/releases) and run `pip install .` after changing directory to `/json2html` ## Example Usage diff --git a/json2html/__init__.py b/json2html/__init__.py index fc739c7..a3d493d 100644 --- a/json2html/__init__.py +++ b/json2html/__init__.py @@ -6,5 +6,5 @@ from .jsonconv import * __author__ = 'Varun Malhotra' -__version__ = '1.3.0' +__version__ = '1.3.1' __license__ = 'MIT' diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d8b6a53 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[build-system] +requires = ["setuptools >= 77.0.3"] +build-backend = "setuptools.build_meta" + +[project] +name = "json2html" +authors = [{ name = "Varun Malhotra", email = "varun2902@gmail.com" }] +description = "JSON to HTML Table Representation" +readme = "README.md" +requires-python = ">=3.6" +keywords = ["json", "HTML", "Table"] +license = "MIT" +license-files = ["LICENSE"] +classifiers = [ + "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', +] +dynamic = ["version"] + +[project.urls] +Homepage = "https://github.com/softvar/json2html" +Repository = "https://github.com/softvar/json2html.git" +Issues = "https://github.com/softvar/json2html/issues" + +[tool.setuptools] +packages = ["json2html"] + +[tool.setuptools.dynamic] +version = {attr = "json2html.__version__"} \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index fc4253a..0000000 --- a/setup.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[metadata] -description_file = README.md -max_line_length = 120 diff --git a/setup.py b/setup.py deleted file mode 100644 index d35259d..0000000 --- a/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -from setuptools import setup - -setup( - name = 'json2html', - packages = ['json2html'], - version = '1.3.0', - description = 'JSON to HTML Table Representation', - long_description=open('README.md').read(), - author = 'Varun Malhotra', - author_email = 'varun2902@gmail.com', - url = 'https://github.com/softvar/json2html', - download_url = 'https://github.com/softvar/json2html/tarball/1.3.0', - keywords = ['json', 'HTML', 'Table'], - license = 'MIT', - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', - classifiers = [ - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: Implementation :: CPython', - ], -)