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..d158f88 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,39 @@ +[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..47e39b3 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,11 @@ +[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 = .