From 00c128df12b4c76ac9894139dba7e8e54d43c92d Mon Sep 17 00:00:00 2001 From: Rob Berwick Date: Mon, 1 Apr 2024 10:06:02 +0100 Subject: [PATCH] Switch to pyproject.toml for packaging Switch to using a pyproject.toml configuration file to define the build system requirements (see https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/). This change will also enable the ability to easily and concisely store and configure development dependencies going forward. --- pyproject.toml | 21 +++++++++++++++++++++ setup.cfg | 2 -- setup.py | 20 -------------------- 3 files changed, 21 insertions(+), 22 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..edcba18 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,21 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "pySerialTransfer" +description = "Python package used to transmit and receive low overhead byte packets - especially useful for PC<-->Arduino USB communication (compatible with https://github.com/PowerBroker2/SerialTransfer)" +readme = "README.md" +version = "2.6.10" +authors = [ + { name = "Power_Broker", email = "gitstuff2@gmail.com" }, +] +license = { file = "LICENSE" } +dependencies = ["pySerial"] +requires-python = ">=3.8" +classifiers = [] +keywords = ["Arduino", "serial", "usb", "protocol", "communication"] + +[project.urls] +Homepage = "https://github.com/PowerBroker2/pySerialTransfer" +"Latest Release" = "https://github.com/PowerBroker2/pySerialTransfer/archive/2.6.10.tar.gz" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index a2f3748..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[metadata] -description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 82934f2..0000000 --- a/setup.py +++ /dev/null @@ -1,20 +0,0 @@ -from setuptools import setup - -with open("README.md", "r") as fh: - long_description = fh.read() - -setup( - name = 'pySerialTransfer', - packages = ['pySerialTransfer'], - version = '2.6.10', - description = 'Python package used to transmit and receive low overhead byte packets - especially useful for PC<-->Arduino USB communication (compatible with https://github.com/PowerBroker2/SerialTransfer)', - long_description = long_description, - long_description_content_type = "text/markdown", - author = 'Power_Broker', - author_email = 'gitstuff2@gmail.com', - url = 'https://github.com/PowerBroker2/pySerialTransfer', - download_url = 'https://github.com/PowerBroker2/pySerialTransfer/archive/2.6.10.tar.gz', - keywords = ['Arduino', 'serial', 'usb', 'protocol', 'communication'], - classifiers = [], - install_requires = ['pyserial'] -)