Skip to content

Commit a4da4b7

Browse files
committed
Migrate from setup.py to pyproject.toml format
- Add pyproject.toml with hatchling build backend - Add ruff and pyright dev dependencies - Configure ruff with line-length=100, target py38 - Configure pyright with basic type checking - Target Python 3.8+
1 parent 4cf4176 commit a4da4b7

3 files changed

Lines changed: 72 additions & 34 deletions

File tree

pyproject.toml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "libloader"
7+
version = "1.3.3"
8+
authors = [
9+
{name = "Christopher Toth", email = "q@q-continuum.net"},
10+
]
11+
description = "Quickly and easily load shared libraries on various platforms. Also includes a libloader.com module for loading com modules on Windows."
12+
readme = "README.md"
13+
license = {file = "LICENSE"}
14+
requires-python = ">=3.8"
15+
classifiers = [
16+
"Development Status :: 3 - Alpha",
17+
"Intended Audience :: Developers",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"License :: OSI Approved :: MIT License",
26+
"Topic :: Software Development :: Libraries",
27+
"Operating System :: OS Independent",
28+
]
29+
dependencies = [
30+
"pywin32; sys_platform == 'win32'",
31+
]
32+
33+
[dependency-groups]
34+
dev = [
35+
"ruff>=0.8.0",
36+
"pyright>=1.1.0",
37+
]
38+
39+
[tool.ruff]
40+
line-length = 100
41+
target-version = "py38"
42+
43+
[tool.ruff.lint]
44+
select = [
45+
"E", # pycodestyle errors
46+
"W", # pycodestyle warnings
47+
"F", # pyflakes
48+
"I", # isort
49+
"UP", # pyupgrade
50+
"B", # flake8-bugbear
51+
]
52+
ignore = []
53+
54+
[tool.pyright]
55+
pythonVersion = "3.8"
56+
typeCheckingMode = "basic"
57+
reportUnusedImport = "warning"
58+
reportUnusedVariable = "warning"
59+
reportDuplicateImport = "error"
60+
reportMissingTypeStubs = false
61+
reportMissingImports = "error"
62+
reportUnknownMemberType = false
63+
reportUnknownArgumentType = false
64+
reportUnknownVariableType = false
65+
reportPrivateUsage = "warning"
66+
reportConstantRedefinition = "error"
67+
exclude = [
68+
"**/__pycache__",
69+
"**/.git",
70+
"**/build",
71+
"**/dist",
72+
]

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)