From 2450b4a6e26fc961a3c5de0c546b675998d93190 Mon Sep 17 00:00:00 2001 From: Jens Tirsvad Nielsen Date: Tue, 13 Oct 2026 15:26:18 +0800 Subject: [PATCH] Add pyproject.toml for the Day 25 weather repository Task: MIL-001#1 --- pyproject.toml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..eabbf97 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,61 @@ +[build-system] +requires = ["setuptools>=77"] +build-backend = "setuptools.build_meta" + +[project] +name = "weather" +version = "0.1.0" +description = "Reading CSV weather data with the csv library and pandas, from Udemy's 100 Days of Code (day 25): DataFrame and Series, average, maximum, row selection, create and export." +readme = "README.md" +requires-python = ">=3.13" +license = "AGPL-3.0-only" +license-files = ["LICENSE"] +authors = [{ name = "Jens Tirsvad Nielsen" }] +keywords = ["csv", "pandas", "weather", "udemy", "100-days-of-code", "dataframe"] +classifiers = [ + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.13", + "Topic :: Education", +] +# The csv part runs on the standard library only; pandas is an optional extra. +dependencies = [] + +[project.optional-dependencies] +pandas = [ + "pandas>=2.2", +] +dev = [ + "pandas>=2.2", + "pandas-stubs>=2.2", + "pytest>=8", + "ruff>=0.6", + "mypy>=1.11", +] + +[project.urls] +Repository = "https://git.tirsystem.com/Tirsvad-Udemy-100-days-of-code/025-weather" + +[tool.setuptools.packages.find] +where = ["src"] + +[tool.setuptools.package-data] +weather = ["weather_data.csv"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +pythonpath = ["src", "tests"] + +[tool.ruff] +line-length = 88 +target-version = "py313" +src = ["src", "tests"] +extend-exclude = ["framework", "build"] + +[tool.ruff.lint] +select = ["E", "F", "W", "I", "N", "UP", "B", "SIM"] + +[tool.mypy] +python_version = "3.13" +strict = true +files = ["src", "tests"] +mypy_path = ["src", "tests"]