Skip to content

Commit

Permalink
nix-update: convert to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 30, 2023
1 parent 109090c commit ff46484
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 47 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
pkgs.python311.pkgs.buildPythonApplication {
name = "nix-update";
src = ./.;
format = "pyproject";
buildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.python311.pkgs.setuptools ];
nativeCheckInputs = [
pkgs.python311.pkgs.pytest
# technically not test inputs, but we need it for development in PATH
Expand Down
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "nix-update"
description = "Swiss-knife for updating nix packages"
version = "2.10.2"
authors = [{ name = "Jörg Thalheim", email = "[email protected]" }]
license = { text = "MIT" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Topic :: Utilities",
"Intended Audience :: Developers",
]

[project.urls]
Homepage = "https://github.com/Mic92/nix-update"

[project.scripts]
nix-update = "nix_update:main"

[tool.ruff]
target-version = "py311"
line-length = 88
Expand All @@ -7,6 +30,7 @@ ignore = [ "E501" ]

[tool.mypy]
python_version = "3.11"
pretty = true
warn_redundant_casts = true
disallow_untyped_calls = true
disallow_untyped_defs = true
Expand Down
42 changes: 0 additions & 42 deletions setup.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions setup.py

This file was deleted.

0 comments on commit ff46484

Please sign in to comment.