From 930c36c086dcb74f083123a62fdaca6714ce0f1b Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Thu, 9 Nov 2023 11:23:11 -0600 Subject: [PATCH] consolidated build info --- CHANGELOG.md | 1 + pyproject.toml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 45 --------------------------------------------- 3 files changed, 49 insertions(+), 45 deletions(-) delete mode 100644 setup.cfg diff --git a/CHANGELOG.md b/CHANGELOG.md index c16b779..e2f743b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - changed valid Python versions from 3.7 < 3.11. Issues currently on 3.11 installs running on Raspberry Pi OS 12 (Bookworm) - pinned Waveshare repo to [4822c07](https://github.com/waveshareteam/e-Paper/commit/4822c075f5df714f88b02e10c336b4eeff7e603e). This is known to work with Python 3.7 < 3.10. - pinned IT8951 repo to [6721516](https://github.com/GregDMeyer/IT8951/commit/67215164a7fc471bc6904f72ad55e51030905a97). This is known to work with Python 3.7 < 3.10. +- all build information moved from `setup.cfg` to `pyproject.toml` ### Fixed diff --git a/pyproject.toml b/pyproject.toml index 236c211..4e48d40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,4 +3,52 @@ requires = [ "setuptools>=42", "wheel" ] + build-backend = "setuptools.build_meta" + +[project] +name = "omni_epd" +version = "0.3.5" +requires-python = ">=3.7, <3.11" +authors = [ + {name = "Rob Weber", email = "robweberjr@gmail.com"} +] +description = "An EPD class abstraction to simplify communications across multiple display types." +readme = "README.md" +license = {file = "LICENSE"} +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: POSIX :: Linux" +] + +dependencies = [ + "Pillow>=9.1.0", + "waveshare-epd @ git+https://github.com/waveshare/e-Paper.git@4822c075f5df714f88b02e10c336b4eeff7e603e#subdirectory=RaspberryPi_JetsonNano/python&egg=waveshare-epd", + "inky[rpi]>=1.3.1", + "IT8951[rpi] @ git+https://github.com/GregDMeyer/IT8951.git" +] + +[project.optional-dependencies] +dev = [ + "flake8", + "Flake8-pyproject", + "pytest" +] + +[project.scripts] +omni-epd-test = "omni_epd.test_utility:main" + +[project.urls] +"Homepage" = "https://github.com/robweber/omni-epd" +"Bug Reports" = "https://github.com/robweber/omni-epd/issues" + +[tool.setuptools.packages.find] +where = ["src"] + +[tool.setuptools.package-data] +omni_epd = ["didder"] + +[tool.flake8] +max-line-length = 150 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 776bb8e..0000000 --- a/setup.cfg +++ /dev/null @@ -1,45 +0,0 @@ -[metadata] -name = omni_epd -version = 0.3.5 -author = Rob Weber -author_email = robweberjr@gmail.com -description = An EPD class abstraction to simplify communications across multiple display types. -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/robweber/omni-epd -project_urls = - Bug Tracker = https://github.com/robweber/omni-epd/issues -classifiers = - Development Status :: 5 - Production/Stable - Programming Language :: Python :: 3 - License :: OSI Approved :: GNU General Public License v3 (GPLv3) - Operating System :: POSIX :: Linux - -[options] -install_requires = - Pillow>=9.1.0 - waveshare-epd @ git+https://github.com/waveshare/e-Paper.git@4822c075f5df714f88b02e10c336b4eeff7e603e#subdirectory=RaspberryPi_JetsonNano/python&egg=waveshare-epd - inky[rpi]>=1.3.1 - IT8951[rpi] @ git+https://github.com/GregDMeyer/IT8951.git -package_dir = - = src -packages = find: -python_requires = >=3.7, <3.11 - -[options.entry_points] -console_scripts = - omni-epd-test = omni_epd.test_utility:main - -[options.extras_require] -dev = - flake8 - pytest - -[options.packages.find] -where = src - -[options.package_data] -omni_epd = didder - -[flake8] -max-line-length = 150