From 192e7e0ef00f7833b9fcf1f1344c30b6972551c5 Mon Sep 17 00:00:00 2001 From: Ross Smyth <18294397+RossSmyth@users.noreply.github.com> Date: Tue, 3 Feb 2026 18:08:58 -0500 Subject: [PATCH] build: Migrate to pyproject.toml --- pyproject.toml | 45 +++++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 1 - setup.cfg | 2 -- setup.py | 32 -------------------------------- 4 files changed, 45 insertions(+), 35 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements.txt delete mode 100755 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..13bc70e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,45 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +dynamic = [ "version" ] +name = "udsoncan" +description = "Implementation of the Unified Diagnostic Service (UDS) protocol (ISO-14229) used in the automotive industry." +readme = "README.rst" +authors = [ + { name = "Pier-Yves Lessard", email = "py.lessard@gmail.com" } +] +license = "MIT" +keywords = [ + "uds", + "14229", + "iso-14229", + "diagnostic", + "automotive", +] +classifiers = [ + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Development Status :: 4 - Beta", + "Operating System :: POSIX :: Linux", + "Intended Audience :: Developers", + "Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator" +] +requires-python = ">= 3.7" + +[project.optional-dependencies] +test = [ + "mypy", + "coverage", + "aioisotp", +] +dev = [ + "mypy", + "ipdb", + "autopep8", + "coverage", +] + +[project.urls] +Homepage = "https://github.com/pylessard/python-udsoncan" diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 22c9d68..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -aioisotp@git+https://github.com/christiansandberg/aioisotp.git diff --git a/setup.cfg b/setup.cfg deleted file mode 100755 index 69c69e3..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[metadata] -description_file = README.rst \ No newline at end of file diff --git a/setup.py b/setup.py index 11d27dd..0883e86 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ from setuptools import setup, find_packages -from codecs import open from os import path import sys @@ -8,37 +7,6 @@ sys.path.insert(0, here) import udsoncan -with open(path.join(here, 'README.rst'), encoding='utf-8') as f: - long_description = f.read() - setup( - name='udsoncan', - packages=find_packages(exclude=["test", "test.*"], include=['udsoncan', "udsoncan.*"]), - package_data={ - '': ['*.conf'], - 'udsoncan' : ['py.typed'] - }, - extras_require={ - 'test': ['mypy', 'coverage'], - 'dev': ['mypy', 'ipdb', 'autopep8', 'coverage'] - }, version=udsoncan.__version__, - description='Implementation of the Unified Diagnostic Service (UDS) protocol (ISO-14229) used in the automotive industry.', - long_description=long_description, - author='Pier-Yves Lessard', - author_email='py.lessard@gmail.com', - license='MIT', - url='https://github.com/pylessard/python-udsoncan', - download_url=f'https://github.com/pylessard/python-udsoncan/archive/v{udsoncan.__version__}.tar.gz', - keywords=['uds', '14229', 'iso-14229', 'diagnostic', 'automotive'], - python_requires='>=3.7', - classifiers=[ - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Development Status :: 4 - Beta", - "Operating System :: POSIX :: Linux", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator", - ], )