Skip to content

Commit

Permalink
Replace setup.py with pyproject.toml (PEP621)
Browse files Browse the repository at this point in the history
This is required for using uv I'm afraid, but the changes should increase
the QoL of the life, since we can rely on a no-code approach to define
the package.

This is based on https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
  • Loading branch information
mweinelt committed Jan 12, 2025
1 parent cfff3b8 commit 2bdf3b1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 55 deletions.
44 changes: 41 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,47 @@
[build-system]
requires = [
"setuptools",
"wheel",
requires = ["setuptools"]

[project]
name = "asteroid-filterbanks"
authors = [
{name = "Manuel Pariente", email="[email protected]"}
]
description = "Asteroid's filterbanks"
license = {text = "MIT"}
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
]
dependencies = [
"numpy",
"torch>=1.8.0",
"typing-extensions",
]

[project.optional-dependencies]
all = [
"librosa",
"scipy",
]

dynamic = [
"readme",
"version",
]

[tools.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}
version = {attr = "asteroid_filterbanks.__version__"}

[project.urls]
changelog = "https://github.com/asteroid-team/asteroid-filterbanks/releases"
homepage = "https://github.com/asteroid-team/asteroid-filterbanks"

[tool.black]
# https://github.com/psf/black
line-length = 100
Expand Down
52 changes: 0 additions & 52 deletions setup.py

This file was deleted.

0 comments on commit 2bdf3b1

Please sign in to comment.