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 514d05a commit d3a7f2c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 55 deletions.
47 changes: 44 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,49 @@
[build-system]
requires = [
"setuptools",
"wheel",
requires = ["setuptools"]

[project]
name = "asteroid-filterbanks"
authors = [
{name = "Manuel Pariente", email="pariente.mnl@gmail.com"}
]
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",
]
requires-python = ">=3.9"
dependencies = [
"numpy",
"torch>=1.8.0",
"typing-extensions",
]
dynamic = [
"readme",
"version",
]

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

[tool.setuptools]
packages = ["asteroid_filterbanks"]

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

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

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

This file was deleted.

0 comments on commit d3a7f2c

Please sign in to comment.