Skip to content

Commit

Permalink
chore: depreciate setup.py in favour of pyproject.toml
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <[email protected]>
  • Loading branch information
ThibaultFy committed Mar 25, 2024
1 parent 2ddbdfe commit 3283a87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
20 changes: 9 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@

[build-system]
requires = ["setuptools>=61.0.0"]

[tool.setuptools]
include-package-data = true
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.setuptools.packages.find]
[tool.hatch.build.targets.sdist]
exclude = ["tests*"]

[tool.setuptools.dynamic]
version = { attr = "substra.__version__" }
[tool.hatch.version]
path = "substra/__version__.py"

[project]
name = "substra"
description = "Low-level Python library for interacting with a Substra network"
python_requires = ">=3.9"
dependencies = [
"requests",
"urllib3<2",
Expand All @@ -26,7 +22,6 @@ dependencies = [
]
keywords = ["substra"]
classifiers = [
"License :: Apache 2.0",
"Intended Audience :: Developers",
"Topic :: Utilities",
"Natural Language :: English",
Expand All @@ -37,7 +32,9 @@ classifiers = [
]
license = { file = "LICENSE" }
authors = [{ name = "Owkin, Inc." }]
dynamic = "version"
dynamic = ["version"]
requires-python = ">= 3.9"


[project.optional-dependencies]
dev = [
Expand All @@ -50,6 +47,7 @@ dev = [
"flake8",
"isort",
"docstring_parser",
"towncrier",
]

[project.urls]
Expand Down
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

0 comments on commit 3283a87

Please sign in to comment.