diff --git a/pyproject.toml b/pyproject.toml index 0e409fddbe..b79f3f5a70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,36 @@ +[build-system] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta" + +[project] +name = "gluonts" +authors = [ + {name = "Amazon", email = "gluon-ts-dev@amazon.com"}, +] +maintainers = [ + {name = "Amazon", email = "gluon-ts-dev@amazon.com"}, +] +description = "Probabilistic time series modeling in Python." +readme = "README.md" +requires-python = ">=3.7" +keywords = ["deep learning", "machine learning", "AI", "TS"] +license = {text = "Apache-2.0"} +classifiers = [ + "Programming Language :: Python :: 3", +] +#dependencies = [] # todo: consider adding +dynamic = ["version"] + +[tool.setuptools] +package-dir = {"" = "src"} # directory containing all the packages (e.g. src/mypkg1, src/mypkg2) + +[project.urls] +documentation = " https://ts.gluon.ai/stable/" +repository = "https://github.com/awslabs/gluonts/" + +[tool.setuptools.dynamic] +version = {attr = "gluonts.__version__"} + [tool.black] target-version = ['py38'] line-length = 79 @@ -20,13 +53,9 @@ filterwarnings = "ignore" [tool.ruff] line-length = 79 - -lint.ignore = [ - # line-length is handled by black - "E501", - - # TODO: remove usage of `l` - "E741" +ignore = [ + "E501", # line-length is handled by black + "E741", # TODO: remove usage of `l` ] exclude = ["src/gluonts/nursery"] @@ -38,6 +67,7 @@ make-summary-multi-line = true wrap-descriptions = 79 [tool.mypy] +plugins = ["pydantic.mypy"] ignore_missing_imports = true allow_redefinition = true follow_imports = "silent" @@ -55,4 +85,4 @@ known_third_party = [ "lightning", ] line_length = 79 -profile = "black" +profile = "black" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 684537fd43..65115f7ce1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,29 +1,3 @@ -[metadata] -name = gluonts -version = attr: gluonts.__version__ -url = https://github.com/awslabs/gluonts/ -project_urls = - Documentation = https://ts.gluon.ai/stable/ - Source Code = https://github.com/awslabs/gluonts/ -license = Apache License 2.0 -license_file = LICENSE -author = Amazon -author_email = gluon-ts-dev@amazon.com -maintainer_email = gluon-ts-dev@amazon.com -description = Probabilistic time series modeling in Python. -long_description = file: README.md -long_description_content_type = text/markdown - -[options] -python_requires = >= 3.7 -packages = find_namespace: -package_dir = = src -include_package_data = True - -[options.packages.find] -where = src -include = gluonts* - [options.entry_points] pygments.styles = gluonts-dark = gluonts.meta.style:Dark