Skip to content

Commit

Permalink
Merge pull request #36 from ganehag/pyproject
Browse files Browse the repository at this point in the history
Migrated from setup.py to Pyproject
  • Loading branch information
ganehag authored Jan 22, 2025
2 parents f0d6ae2 + 07c5a5f commit bb8f58e
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.9, "3.10", "3.11"]
os: [ubuntu-latest]

steps:
Expand Down
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "pyMeterBus"
version = "0.0.0" # Will be dynamically loaded from __init__.py
description = "Python implementation of the Meter-Bus protocol"
authors = [
{ name = "Mikael Ganehag Brorsson", email = "[email protected]" }
]
license = { text = "BSD-3-Clause" }
readme = "README.md"
requires-python = ">=3.6"
dependencies = [
"pyaml",
"pycryptodome",
"pyserial",
"simplejson"
]

classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries"
]

[project.urls]
Homepage = "https://github.com/ganehag/pyMeterBus"

[project.scripts]
mbus-serial-scan-primary = "meterbus.tools:serial_scan_primary"
mbus-serial-scan-secondary = "meterbus.tools:serial_scan_secondary"
mbus-serial-req-single = "meterbus.tools:serial_request_single"
mbus-serial-req-multi = "meterbus.tools:serial_request_multi"

[tool.setuptools.packages.find]
where = ["."]
include = ["meterbus"]
exclude = ["tests", "examples"]

[tool.setuptools.dynamic]
version = { attr = "meterbus.__version__" }
64 changes: 0 additions & 64 deletions setup.py

This file was deleted.

0 comments on commit bb8f58e

Please sign in to comment.