diff --git a/pyproject.toml b/pyproject.toml index 374b58c..da57422 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,65 @@ +[project] +name = "yamlprocessor" + +dynamic = ["version"] + +description = "Process values in YAML files" + +readme = "README.md" + +requires-python = ">=3.7" + +license = {file = "LICENSE"} + +maintainers = [ + {name = "Matt Shin", email = "matthew.shin@metoffice.gov.uk" } +] + +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Science/Research", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Scientific/Engineering", + "Topic :: Software Development", +] + +dependencies = [ + "jmespath", + "jsonschema", + "python-dateutil", + "ruamel.yaml", +] + +[project.optional-dependencies] +test = ["flake8", "pytest", "pytest-cov"] + +[project.urls] +"Homepage" = "https://github.com/JCSDA-internal/yamlprocessor/" +"Bug Reports" = "https://github.com/JCSDA-internal/yamlprocessor/issues" +"Source" = "https://github.com/JCSDA-internal/yamlprocessor/" + +[project.scripts] +yp-data = "yamlprocessor.dataprocess:main" +yp-schema = "yamlprocessor.schemaprocess:main" + +[tool.pytest.ini_options] +norecursedirs = [".git*", "build", "dist", "docs"] + +[tool.setuptools.dynamic] +version = {attr = "yamlprocessor.__version__"} + +[tool.setuptools.packages.find] +where = ["src"] + [build-system] requires = [ "setuptools>=42", diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 4e8a961..0000000 --- a/setup.cfg +++ /dev/null @@ -1,52 +0,0 @@ -[aliases] -test=pytest - -[metadata] -name = yamlprocessor -version = attr: yamlprocessor.__version__ -author = Matt Shin -author_email = matthew.shin@metoffice.gov.uk -description = Process values in YAML files -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/JCSDA-internal/yamlprocessor -project_urls = - Bug Tracker = https://github.com/JCSDA-internal/yamlprocessor/issues -classifiers = - Development Status :: 4 - Beta - Intended Audience :: Science/Research - Intended Audience :: Developers - License :: OSI Approved :: BSD License - Operating System :: OS Independent - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Topic :: Scientific/Engineering - Topic :: Software Development - -[options] -package_dir = - = src -packages = find: -python_requires = >=3.7 -install_requires = - jmespath - jsonschema - python-dateutil - ruamel.yaml -setup_require = - pytest-runner -tests_require = - flake8 - pytest - pytest-cov - -[options.entry_points] -console_scripts = - yp-data = yamlprocessor.dataprocess:main - yp-schema = yamlprocessor.schemaprocess:main - -[options.packages.find] -where = src