Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate package meta to pyproject.toml #3110

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 38 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "gluonts"
authors = [
{name = "Amazon", email = "[email protected]"},
]
maintainers = [
{name = "Amazon", email = "[email protected]"},
]
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
Expand All @@ -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"]
Expand All @@ -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"
Expand All @@ -55,4 +85,4 @@ known_third_party = [
"lightning",
]
line_length = 79
profile = "black"
profile = "black"
26 changes: 0 additions & 26 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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 = [email protected]
maintainer_email = [email protected]
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
Expand Down
Loading