From 804a0dee754f1da27cdaabf22be4dc81256f7f06 Mon Sep 17 00:00:00 2001 From: Mathew Duggan Date: Fri, 25 Apr 2025 12:03:16 +0200 Subject: [PATCH 1/2] feat: adding in the pyproject.toml and setup.cfg for pip packaging --- .gitignore | 15 +++++++++++++++ pyproject.toml | 40 ++++++++++++++++++++++++++++++++++++++++ setup.cfg | 12 ++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/.gitignore b/.gitignore index c9bcf31..7f987c7 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,18 @@ ehthumbs.db ################ *~ +# Python packaging +dist/ +build/ +*.egg-info/ +.eggs/ +.Python +[Bb]in +[Ii]nclude +[Ll]ib +[Ll]ib64 +[Ll]ocal +[Ss]cripts +pyvenv.cfg +.venv +pip-selfcheck.json diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2326daf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +# pyproject.toml +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "loop_wrapper" +version = "3.2.0" +description = "loop_wrapper is a job-control tool to make it easier to loop through datetime ranges" +readme = "README.md" +requires-python = ">=3.6" +license = "GPL-2.0-only" +keywords = ["loop", "datetime", "job-control"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3", + "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", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] + +authors = [ + { name="Thomas Lavergne", email="thomasl@met.no" }, + { name="Mathew Duggan", email="mat@matduggan.com" }, +] + +dependencies = [ + "python-dateutil>=2.9.0", +] + +[project.urls] +homepage = "https://github.com/metno/loop_wrapper" +"Bug Tracker" = "https://github.com/metno/loop_wrapper/issues" +documentation = "https://loop_wrapper.readthedocs.io/" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..baccc58 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,12 @@ +# setup.cfg +[metadata] +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/metno/loop_wrapper + +[options] +packages = find: +python_requires = >=3.6 + +[options.packages.find] +where = . From e05bfd04adcebdd7d7b934d56b9a7afad1d97062 Mon Sep 17 00:00:00 2001 From: Mathew Duggan Date: Tue, 6 May 2025 10:13:27 +0200 Subject: [PATCH 2/2] chore: removing unneeded comments --- pyproject.toml | 1 - setup.cfg | 1 - 2 files changed, 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2326daf..d158f88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,3 @@ -# pyproject.toml [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index baccc58..47e39b3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,3 @@ -# setup.cfg [metadata] long_description = file: README.md long_description_content_type = text/markdown