Skip to content

Commit

Permalink
Merge pull request #142 from kddubey/pyprojecttoml
Browse files Browse the repository at this point in the history
setup.py -> pyproject.toml, and mv tap to src
  • Loading branch information
martinjm97 authored Jul 7, 2024
2 parents b6505ff + 9f90ea1 commit af4b7db
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 68 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ __pycache__
.DS_Store
*.json
*.egg-info
build
.eggs
.coverage
dist
68 changes: 68 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[build-system]
requires = ["setuptools >= 61.0.0", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "typed-argument-parser"
dynamic = ["version"]
authors = [
{name = "Jesse Michel", email = "[email protected]" },
{name = "Kyle Swanson", email = "[email protected]" },
]
maintainers = [
{name = "Jesse Michel", email = "[email protected]" },
{name = "Kyle Swanson", email = "[email protected]" },
]
description = "Typed Argument Parser"
readme = "README.md"
license = { file = "LICENSE.txt" }
dependencies = [
"docstring-parser >= 0.15",
"packaging",
"typing-inspect >= 0.7.1",
]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"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",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Typing :: Typed",
]
keywords = [
"typing",
"argument parser",
"python",
]

[project.optional-dependencies]
dev-no-pydantic = [
"pytest",
"pytest-cov",
"flake8",
]
dev = [
"typed-argument-parser[dev-no-pydantic]",
"pydantic >= 2.5.0",
]

[tool.setuptools]
package-dir = {"" = "src"}

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.dynamic]
version = {attr = "tap.__version__"}

[tool.setuptools.package-data]
tap = ["py.typed"]

[project.urls]
Homepage = "https://github.com/swansonk14/typed-argument-parser"
Issues = "https://github.com/swansonk14/typed-argument-parser/issues"
# download_url=f"https://github.com/swansonk14/typed-argument-parser/archive/refs/tags/v_{__version__}.tar.gz"
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

58 changes: 0 additions & 58 deletions setup.py

This file was deleted.

7 changes: 6 additions & 1 deletion tap/__init__.py → src/tap/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
"""
Typed Argument Parser
"""

__version__ = "1.10.0"

from argparse import ArgumentError, ArgumentTypeError
from tap._version import __version__
from tap.tap import Tap
from tap.tapify import tapify, to_tap_class

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions tap/_version.py

This file was deleted.

0 comments on commit af4b7db

Please sign in to comment.