Skip to content

Commit f9a5c9f

Browse files
committed
switch to pyproject.toml
1 parent cca6650 commit f9a5c9f

File tree

4 files changed

+48
-27
lines changed

4 files changed

+48
-27
lines changed

default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ with pythonPackages;
99
version = "1.0-rc2";
1010
src = ./.;
1111
doCheck = true;
12-
nativeBuildInputs = [pkgs.scdoc];
12+
format = "pyproject";
13+
nativeBuildInputs = [pkgs.scdoc setuptools];
1314
propagatedBuildInputs = [pyxdg click];
1415
checkInputs = [pytest];
1516
postInstall = ''

mypy.ini

Lines changed: 0 additions & 13 deletions
This file was deleted.

pyproject.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[project]
2+
name = "qbpm"
3+
version = "1.0-rc2"
4+
description = "qutebrowser profile manager"
5+
license = { file = "LICENSE" }
6+
readme = "README.md"
7+
authors = [{ name = "Peter Rice", email = "[email protected]" }]
8+
classifiers = [
9+
"Development Status :: 4 - Beta",
10+
"Environment :: Console",
11+
"Intended Audience :: End Users/Desktop",
12+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
13+
"Operating System :: MacOS",
14+
"Operating System :: POSIX :: Linux",
15+
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3.9",
17+
"Programming Language :: Python :: 3.10",
18+
"Typing :: Typed",
19+
]
20+
requires-python = ">= 3.9"
21+
dependencies = ["pyxdg", "click"]
22+
23+
[project.urls]
24+
repository = "https://github.com/pvsr/qbpm"
25+
26+
[project.scripts]
27+
qbpm = "qbpm.main:main"
28+
29+
[tool.setuptools]
30+
packages = ["qbpm"]
31+
32+
[tool.mypy]
33+
disallow_untyped_defs = true
34+
disallow_any_unimported = true
35+
no_implicit_optional = true
36+
check_untyped_defs = true
37+
warn_return_any = true
38+
warn_unused_ignores = true
39+
40+
[[tool.mypy.overrides]]
41+
module = "xdg.*"
42+
ignore_missing_imports = true
43+
44+
[[tool.mypy.overrides]]
45+
module = "tests.*"
46+
disallow_untyped_defs = false

setup.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)