Skip to content

Commit b7d0c60

Browse files
committed
migrate setup.py to pyproject.toml
1 parent 0a223c7 commit b7d0c60

File tree

7 files changed

+39
-33
lines changed

7 files changed

+39
-33
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# setup.py output
1+
# build output
22
build/
33
dist/
44
simplegist.egg-info/

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Python module to convert `JSON` into a human readable `HTML Table` representatio
4646
pip install json2html
4747
```
4848
49-
Or, Download [here](https://github.com/softvar/json2html/releases) and run `python setup.py install` after changing directory to `/json2html`
49+
Or, Download [here](https://github.com/softvar/json2html/releases) and run `pip install .` after changing directory to `/json2html`
5050
5151
## Example Usage
5252

json2html/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
from .jsonconv import *
77

88
__author__ = 'Varun Malhotra'
9-
__version__ = '1.3.0'
9+
__version__ = '1.3.1'
1010
__license__ = 'MIT'

pyproject.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[build-system]
2+
requires = ["setuptools >= 42.0.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "json2html"
7+
authors = [{ name = "Varun Malhotra", email = "[email protected]" }]
8+
description = "JSON to HTML Table Representation"
9+
readme = "README.md"
10+
requires-python = ">=3.6"
11+
keywords = ["json", "HTML", "Table"]
12+
license = "MIT"
13+
license-files = ["LICENSE"]
14+
classifiers = [
15+
"Programming Language :: Python :: 3.6",
16+
"Programming Language :: Python :: 3.7",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
23+
'Programming Language :: Python :: Implementation :: CPython',
24+
]
25+
dynamic = ["version"]
26+
27+
[project.urls]
28+
Homepage = "https://github.com/softvar/json2html"
29+
Repository = "https://github.com/softvar/json2html.git"
30+
Issues = "https://github.com/softvar/json2html/issues"
31+
32+
[tool.setuptools]
33+
packages = ["json2html"]
34+
35+
[tool.setuptools.dynamic]
36+
version = {attr = "json2html.__version__"}

setup.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)