Skip to content

Commit

Permalink
Migrate to pyproject.toml format for setup
Browse files Browse the repository at this point in the history
  • Loading branch information
willthames committed Sep 25, 2023
1 parent 47471a6 commit 23a8ef9
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 32 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prune tests
prune .github
34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "kubernetes-validate"
authors = [
{name = "Will Thames", email = "[email protected]"},
]
description = "validates kubernetes resource definitions against schemas"
requires-python = ">=3.7"
keywords = ["kubernetes", "schema", "validate", "validator"]
license = {text = "Apache"}
dependencies = [
"PyYAML",
'jsonschema',
]
dynamic = ["version", "readme"]

[project.urls]
Homepage = "https://github.com/willthames/kubernetes-validate"

[project.scripts]
kubernetes-validate = "kubernetes_validate.__main__:main"

[tool.setuptools.dynamic]
version = {attr = "kubernetes_validate.version.__version__"}
readme = {file = ["README.md"]}

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

[tool.setuptools.package-data]
"*" = ['kubernetes-json-schema/*-local/*.json', 'kubernetes-json-schema/*-local-strict/*.json']
31 changes: 0 additions & 31 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/kubernetes_validate/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.27.0'
__version__ = '1.27.1rc1'

0 comments on commit 23a8ef9

Please sign in to comment.