Skip to content

Commit 75d3d41

Browse files
authored
update build (#101)
* mark package as typed * consolidate configuration in `pyproject.toml` * update build
1 parent 5d3ea9e commit 75d3d41

5 files changed

Lines changed: 70 additions & 62 deletions

File tree

.github/workflows/make_wheel.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,13 @@ jobs:
1818
python-version: '3.10'
1919

2020
- name: Install python dependencies
21-
run: pip install wheel twine
21+
run: pip install build
2222

2323
- name: Checkout repository
2424
uses: actions/checkout@v4
2525

2626
- name: Build wheel
27-
run: |
28-
python setup.py sdist bdist_wheel
29-
ls dist
30-
twine check dist/*
27+
run: python -m build
3128

3229
- name: Publish to PyPI
3330
uses: pypa/gh-action-pypi-publish@release/v1

e3dc/py.typed

Whitespace-only changes.

pyproject.toml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,61 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "pye3dc"
7+
authors = [
8+
{name = "Francesco Santini", email = "francesco.santini@gmail.com"},
9+
{name = "Christopher Banck", email = "christopher@banck.net"},
10+
]
11+
description = "E3/DC client for python"
12+
readme = "README.md"
13+
requires-python = ">=3.8"
14+
license = {text = "MIT"}
15+
classifiers = [
16+
"Development Status :: 4 - Beta",
17+
"Environment :: Web Environment",
18+
"Environment :: Console",
19+
"Intended Audience :: Developers",
20+
"License :: OSI Approved :: MIT License",
21+
"Operating System :: OS Independent",
22+
"Programming Language :: Python :: 3.8",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
]
28+
dependencies = [
29+
"py3rijndael",
30+
"python-dateutil",
31+
"tzlocal",
32+
"websocket-client",
33+
]
34+
dynamic = ["version"]
35+
36+
[project.optional-dependencies]
37+
develop = [
38+
"jsbeautifier",
39+
"argparse",
40+
"docker",
41+
"black",
42+
"isort",
43+
"flake8",
44+
"flake8-docstrings",
45+
"flake8-pyproject",
46+
"pyright",
47+
]
48+
49+
[project.urls]
50+
Documentation = "https://python-e3dc.readthedocs.io"
51+
Repository = "https://github.com/fsantini/python-e3dc"
52+
53+
[tool.setuptools]
54+
packages = ["e3dc"]
55+
56+
[tool.setuptools.dynamic]
57+
version = {attr = "e3dc.__version__"}
58+
159
[tool.black]
260
target-version = ['py38','py39','py310','py311','py312']
361
include = '\.pyi?$'
@@ -10,6 +68,16 @@ exclude = '''
1068
)/
1169
'''
1270

71+
[tool.flake8]
72+
exclude = [".venv", ".git", "build", "docs"]
73+
max-line-length = 88
74+
docstring-convention = "google"
75+
# E722 should be fixed
76+
extend-ignore = ["E203", "E302", "E501", "W293", "E722"]
77+
78+
[tool.isort]
79+
profile = "black"
80+
1381
[tool.pylint.messages_control]
1482
disable = "C0330, C0326"
1583

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)