Skip to content

Commit

Permalink
use pyproject.toml instead of setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and mergify[bot] committed Aug 6, 2023
1 parent b9271c1 commit c3d6a3e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 37 deletions.
4 changes: 3 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
}:

with pkgs;
python3.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication {
name = "nixpkgs-review";
src = ./.;
format = "pyproject";
buildInputs = [ makeWrapper ];
nativeCheckInputs = [
mypy
python3.pkgs.setuptools
python3.pkgs.black
ruff
glibcLocales
Expand Down
34 changes: 33 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,40 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "nixpkgs-review"
description = "Review nixpkgs pull requests"
version = "2.9.3"
authors = [{ name = "Jörg Thalheim", email = "joerg@thalheim.io" }]
license = { text = "MIT" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Topic :: Utilities",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
]

[project.urls]
Homepage = "https://github.com/Mic92/nixpkgs-review"

[project.scripts]
nixpkgs_review = "nixpkgs_review:main"
nix_review = "nixpkgs_review:main"

[tool.setuptools.packages]
find = {}

[tool.setuptools.package-data]
nixpkgs_review = ["nix/*.nix"]


[tool.ruff]
line-length = 88

select = ["E", "F", "I"]
ignore = [ "E501" ]
ignore = ["E501"]

[tool.black]
line-length = 88
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

33 changes: 0 additions & 33 deletions setup.py

This file was deleted.

0 comments on commit c3d6a3e

Please sign in to comment.