11[build-system ]
2- requires = [" setuptools" ]
2+ requires = [" setuptools>=61.0 " , " wheel " ]
33build-backend = " setuptools.build_meta"
44
5- [tool .black ]
5+ [project ]
6+ name = " cstruct"
7+ dynamic = [" version" ]
8+ description = " C-style structs for Python"
9+ readme = " README.md"
10+ license = " MIT"
11+ license-files = [" LICENSE" ]
12+ authors = [
13+ { name = " Andrea Bonomi" , email = " andrea.bonomi@gmail.com" }
14+ ]
15+ keywords = [" struct" , " cstruct" , " enum" , " binary" , " pack" , " unpack" ]
16+ requires-python = " >=3.7"
17+
18+ classifiers = [
19+ " Development Status :: 5 - Production/Stable" ,
20+ " Environment :: Console" ,
21+ " Intended Audience :: Developers" ,
22+ " Operating System :: OS Independent" ,
23+ " Programming Language :: Python" ,
24+ " Topic :: Software Development :: Libraries :: Python Modules" ,
25+ " Programming Language :: Python :: 3" ,
26+ ]
27+
28+ [project .urls ]
29+ Homepage = " http://github.com/andreax79/python-cstruct"
30+ Source = " http://github.com/andreax79/python-cstruct"
31+ Issues = " http://github.com/andreax79/python-cstruct/issues"
32+ Documentation = " https://python-cstruct.readthedocs.io/en/latest/"
33+
34+ [project .optional-dependencies ]
35+ dev = [
36+ " pytest" ,
37+ " pytest-cov" ,
38+ " codespell" ,
39+ " coverage[toml]" ,
40+ " ruff" ,
41+ " markdown_include" ,
42+ " mkdocs" ,
43+ " mkdocs-material" ,
44+ " mkdocstrings" ,
45+ " mkdocstrings-python" ,
46+ " mypy"
47+ ]
48+ test = [
49+ " pytest" ,
50+ " pytest-cov" ,
51+ " coverage[toml]"
52+ ]
53+
54+ [tool .setuptools ]
55+ zip-safe = true
56+ include-package-data = true
57+
58+ [tool .setuptools .dynamic ]
59+ version = { attr = " cstruct.__version__" }
60+
61+ [tool .setuptools .packages .find ]
62+ include = [" cstruct*" ]
63+ exclude = [" ez_setup" , " examples" , " tests" ]
64+
65+ [tool .ruff ]
666line-length = 132
767
68+ [tool .ruff .lint ]
69+ ignore = [ " E731" , " E711" ]
70+
871[tool .coverage .run ]
972source = [" cstruct" ]
1073
@@ -13,3 +76,6 @@ exclude_lines = [ "# pragma: no cover", "if TYPE_CHECKING:" ]
1376
1477[tool .isort ]
1578profile = " black"
79+
80+ [tool .black ]
81+ line-length = 132
0 commit comments