Skip to content

Commit

Permalink
Merge pull request #63 from GPla/pyproject.toml
Browse files Browse the repository at this point in the history
Migration to pyproject.toml
  • Loading branch information
mpkocher authored Jul 28, 2024
2 parents 22b6e43 + 1282f4a commit 353d982
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 73 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r REQUIREMENTS.txt
pip install shtab
pip install -r REQUIREMENTS-TEST.txt
pip install .[test,shtab]
- name: Test with pytest
run: |
pytest --cov
5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

4 changes: 0 additions & 4 deletions REQUIREMENTS-TEST.txt

This file was deleted.

1 change: 0 additions & 1 deletion REQUIREMENTS.txt

This file was deleted.

41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[project]
name = "pydantic_cli"
description = "Turn Pydantic defined Data Models into CLI Tools"
authors = [{ name = "M. Kocher", email = "[email protected]" }]
dependencies = ["pydantic>=2.8.2"]
readme = "README.md"
requires-python = ">= 3.10"
dynamic = ['version']
urls = { 'Source Code' = 'http://github.com/mpkocher/pydantic-cli' }
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Utilities",
"Topic :: Software Development",
"Typing :: Typed",
]

[project.optional-dependencies]
test = ["pytest>=8.2.2", "pytest-cov>=4.0.0", "mypy>=1.10.1", "black>=24.4.2"]
shtab = ["shtab>=1.3.1"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ['pydantic_cli', 'pydantic_cli.examples']

[tool.hatch.version]
path = "pydantic_cli/_version.py"

[tool.hatch.build]
include = ['CHANGELOG.md']
60 changes: 0 additions & 60 deletions setup.py

This file was deleted.

0 comments on commit 353d982

Please sign in to comment.