Skip to content

Commit af4b7db

Browse files
authored
Merge pull request #142 from kddubey/pyprojecttoml
setup.py -> pyproject.toml, and mv tap to src
2 parents b6505ff + 9f90ea1 commit af4b7db

File tree

10 files changed

+75
-68
lines changed

10 files changed

+75
-68
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ __pycache__
44
.DS_Store
55
*.json
66
*.egg-info
7+
build
78
.eggs
89
.coverage
910
dist

pyproject.toml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[build-system]
2+
requires = ["setuptools >= 61.0.0", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "typed-argument-parser"
7+
dynamic = ["version"]
8+
authors = [
9+
{name = "Jesse Michel", email = "jessem.michel@gmail.com" },
10+
{name = "Kyle Swanson", email = "swansonk.14@gmail.com" },
11+
]
12+
maintainers = [
13+
{name = "Jesse Michel", email = "jessem.michel@gmail.com" },
14+
{name = "Kyle Swanson", email = "swansonk.14@gmail.com" },
15+
]
16+
description = "Typed Argument Parser"
17+
readme = "README.md"
18+
license = { file = "LICENSE.txt" }
19+
dependencies = [
20+
"docstring-parser >= 0.15",
21+
"packaging",
22+
"typing-inspect >= 0.7.1",
23+
]
24+
requires-python = ">=3.8"
25+
classifiers = [
26+
"Programming Language :: Python :: 3",
27+
"Programming Language :: Python :: 3.8",
28+
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
31+
"Programming Language :: Python :: 3.12",
32+
"License :: OSI Approved :: MIT License",
33+
"Operating System :: OS Independent",
34+
"Typing :: Typed",
35+
]
36+
keywords = [
37+
"typing",
38+
"argument parser",
39+
"python",
40+
]
41+
42+
[project.optional-dependencies]
43+
dev-no-pydantic = [
44+
"pytest",
45+
"pytest-cov",
46+
"flake8",
47+
]
48+
dev = [
49+
"typed-argument-parser[dev-no-pydantic]",
50+
"pydantic >= 2.5.0",
51+
]
52+
53+
[tool.setuptools]
54+
package-dir = {"" = "src"}
55+
56+
[tool.setuptools.packages.find]
57+
where = ["src"]
58+
59+
[tool.setuptools.dynamic]
60+
version = {attr = "tap.__version__"}
61+
62+
[tool.setuptools.package-data]
63+
tap = ["py.typed"]
64+
65+
[project.urls]
66+
Homepage = "https://github.com/swansonk14/typed-argument-parser"
67+
Issues = "https://github.com/swansonk14/typed-argument-parser/issues"
68+
# download_url=f"https://github.com/swansonk14/typed-argument-parser/archive/refs/tags/v_{__version__}.tar.gz"

setup.cfg

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

setup.py

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

tap/__init__.py renamed to src/tap/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
"""
2+
Typed Argument Parser
3+
"""
4+
5+
__version__ = "1.10.0"
6+
17
from argparse import ArgumentError, ArgumentTypeError
2-
from tap._version import __version__
38
from tap.tap import Tap
49
from tap.tapify import tapify, to_tap_class
510

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tap/_version.py

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

0 commit comments

Comments
 (0)