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 9674c69 commit 639661b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 82 deletions.
19 changes: 8 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 Down
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

66 changes: 0 additions & 66 deletions setup.py

This file was deleted.

0 comments on commit 639661b

Please sign in to comment.