Skip to content

Commit

Permalink
update build (#101)
Browse files Browse the repository at this point in the history
* mark package as typed
* consolidate configuration in `pyproject.toml`
* update build
  • Loading branch information
vchrisb authored Oct 31, 2023
1 parent 5d3ea9e commit 75d3d41
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 62 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/make_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@ jobs:
python-version: '3.10'

- name: Install python dependencies
run: pip install wheel twine
run: pip install build

- name: Checkout repository
uses: actions/checkout@v4

- name: Build wheel
run: |
python setup.py sdist bdist_wheel
ls dist
twine check dist/*
run: python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
Empty file added e3dc/py.typed
Empty file.
68 changes: 68 additions & 0 deletions pyproject.toml
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?$'
Expand All @@ -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"

Expand Down
53 changes: 0 additions & 53 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

0 comments on commit 75d3d41

Please sign in to comment.