diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..63632389 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +prune tests +prune .github diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..d3bba201 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "kubernetes-validate" +authors = [ + {name = "Will Thames", email = "will@thames.id.au"}, +] +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'] diff --git a/setup.py b/setup.py deleted file mode 100644 index 39cf1ef4..00000000 --- a/setup.py +++ /dev/null @@ -1,31 +0,0 @@ -import os -from setuptools import setup, find_packages -import sys - - -sys.path.insert(0, os.path.abspath('lib')) - -exec(open('src/kubernetes_validate/version.py').read()) - -setup( - name='kubernetes-validate', - version=__version__, - description=('validates kubernetes resource definitions against schemas'), - keywords='kubernetes, schema, validate, validator', - author='Will Thames', - url='https://github.com/willthames/kubernetes-validate', - packages=find_packages('src'), - package_dir={'': 'src'}, - package_data={ - '': ['kubernetes-json-schema/*-local/*.json', 'kubernetes-json-schema/*-local-strict/*.json'] - }, - zip_safe=False, - install_requires=['PyYAML', 'jsonschema'], - entry_points={ - 'console_scripts': [ - 'kubernetes-validate=kubernetes_validate.__main__:main' - ] - }, - license='Apache', - test_suite="test" -) diff --git a/src/kubernetes_validate/version.py b/src/kubernetes_validate/version.py index e2ba8ba3..0687fc71 100644 --- a/src/kubernetes_validate/version.py +++ b/src/kubernetes_validate/version.py @@ -1 +1 @@ -__version__ = '1.27.0' +__version__ = '1.27.1rc1'