From 3e47d65945252393f1844a1286c58d1f614a6ae1 Mon Sep 17 00:00:00 2001 From: mmahacek Date: Tue, 12 May 2026 10:48:08 -0700 Subject: [PATCH 1/3] Change dependencies format in pyproject.toml --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9e6a8e6..afeb2d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,8 @@ description = "A Python library for accessing the OpenNMS REST API." readme = "README.md" license = { file = "LICENSE.txt" } authors = [{ name = "Mark Mahacek", email = "mmahacek@opennms.com" }] -dependencies = ["requests", "python-dotenv", "xmltodict", "tqdm"] +dependencies = {file = ["requirements.txt"]} +optional-dependencies = {dev = { file = ["requirements-dev.txt"] }} classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", From e61e26f8a60091e0b7ef39d3c936304e29953e84 Mon Sep 17 00:00:00 2001 From: mmahacek Date: Tue, 12 May 2026 17:21:58 -0700 Subject: [PATCH 2/3] update build definition --- .gitignore | 5 +---- CHANGELOG.md | 1 + pyproject.toml | 8 +++++--- requirements-dev.txt | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 2289854..68d5b9d 100755 --- a/.gitignore +++ b/.gitignore @@ -112,10 +112,7 @@ venv/ ENV/ env.bak/ venv.bak/ -venv39/ -venv38/ -venv310/ -venv311/ +venv*/ # Spyder project settings .spyderproject diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d41013..e44b4fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [0.1.4] TBD * Split `requirements.txt` to just the necessary packages for operation and created `requirements-dev.txt` for development. +* Update pyproject to use `requirements.txt` for dependencies. * Fix processing of `Info` endpoint services. * Update pytest to use environment variables for server credentials. * Address pylint and mypy findings. diff --git a/pyproject.toml b/pyproject.toml index afeb2d0..45d3071 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,16 +2,18 @@ requires = ["hatchling"] build-backend = "hatchling.build" +[tool.setuptools.dynamic] +dependencies = { file = ["requirements.txt"] } +optional-dependencies = { dev = { file = ["requirements-dev.txt"] } } + [project] -dynamic = ["version"] +dynamic = ["version", "dependencies", "optional-dependencies"] name = "pyonms" requires-python = ">=3.8" description = "A Python library for accessing the OpenNMS REST API." readme = "README.md" license = { file = "LICENSE.txt" } authors = [{ name = "Mark Mahacek", email = "mmahacek@opennms.com" }] -dependencies = {file = ["requirements.txt"]} -optional-dependencies = {dev = { file = ["requirements-dev.txt"] }} classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", diff --git a/requirements-dev.txt b/requirements-dev.txt index 926bc44..ea153cf 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,14 +1,14 @@ -requests +-r requirements.txt python-dotenv -pytz pytest pytest-cov pytest-vcr -xmltodict -tqdm pdoc tox coverage mypy black pylint +types-xmltodict +types-requests +types-pytz From 2e10dc49b2ae9c1de2ec2af906504cac4bf33fac Mon Sep 17 00:00:00 2001 From: mmahacek Date: Tue, 12 May 2026 17:33:56 -0700 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e44b4fc..3fdd939 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [0.1.4] TBD +## [0.1.4] 2026-05-12 * Split `requirements.txt` to just the necessary packages for operation and created `requirements-dev.txt` for development. * Update pyproject to use `requirements.txt` for dependencies.