-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* mark package as typed * consolidate configuration in `pyproject.toml` * update build
- Loading branch information
Showing
5 changed files
with
70 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,61 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pye3dc" | ||
authors = [ | ||
{name = "Francesco Santini", email = "[email protected]"}, | ||
{name = "Christopher Banck", email = "[email protected]"}, | ||
] | ||
description = "E3/DC client for python" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = {text = "MIT"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Environment :: Web Environment", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
dependencies = [ | ||
"py3rijndael", | ||
"python-dateutil", | ||
"tzlocal", | ||
"websocket-client", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
develop = [ | ||
"jsbeautifier", | ||
"argparse", | ||
"docker", | ||
"black", | ||
"isort", | ||
"flake8", | ||
"flake8-docstrings", | ||
"flake8-pyproject", | ||
"pyright", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://python-e3dc.readthedocs.io" | ||
Repository = "https://github.com/fsantini/python-e3dc" | ||
|
||
[tool.setuptools] | ||
packages = ["e3dc"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "e3dc.__version__"} | ||
|
||
[tool.black] | ||
target-version = ['py38','py39','py310','py311','py312'] | ||
include = '\.pyi?$' | ||
|
@@ -10,6 +68,16 @@ exclude = ''' | |
)/ | ||
''' | ||
|
||
[tool.flake8] | ||
exclude = [".venv", ".git", "build", "docs"] | ||
max-line-length = 88 | ||
docstring-convention = "google" | ||
# E722 should be fixed | ||
extend-ignore = ["E203", "E302", "E501", "W293", "E722"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.pylint.messages_control] | ||
disable = "C0330, C0326" | ||
|
||
|