Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update build #101

Merged
merged 3 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.