Skip to content

Commit

Permalink
switch to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
MayNiklas committed Aug 25, 2024
1 parent 55d54a2 commit 5d83f5a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 47 deletions.
4 changes: 3 additions & 1 deletion nixos/pkgs/whisper_api/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ python3.pkgs.buildPythonApplication {
''
(builtins.readFile "${self}/src/whisper_api/version.py")));

format = "setuptools";
pyproject = true;
src = self;

nativeBuildInputs = with python3.pkgs; [ setuptools ];

propagatedBuildInputs = with python3.pkgs; [
fastapi
ffmpeg-python
Expand Down
39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "whisper_api"
version = "20240825"
description = "A simple API for whisper"
readme = "README.md"
requires-python = ">=3.7"
license = { text = "" }
authors = [{name = "MayNiklas", email = "info@niklas-steffen.de"}]

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }

[project.urls]
homepage = "https://github.com/MayNiklas/whisper_api"

[project.scripts]
whisper_api = "whisper_api:start"

[project.optional-dependencies]
dev = ["black", "httpx", "pre-commit"]

[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*"]

[tool.isort]
profile = "black"
force_single_line = "true"

[tool.black]
line-length = 120
46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

0 comments on commit 5d83f5a

Please sign in to comment.