From 6fbab9cad5cc90808ef42c4a2662e514aaa248a3 Mon Sep 17 00:00:00 2001 From: Martijn van Exel Date: Mon, 8 Jul 2024 22:19:43 -0600 Subject: [PATCH] add rye things --- .python-version | 1 + pyproject.toml | 30 ++++++++++++++++++++++++++++++ requirements-dev.lock | 36 ++++++++++++++++++++++++++++++++++++ requirements.lock | 29 +++++++++++++++++++++++++++++ 4 files changed, 96 insertions(+) create mode 100644 .python-version create mode 100644 pyproject.toml create mode 100644 requirements-dev.lock create mode 100644 requirements.lock diff --git a/.python-version b/.python-version new file mode 100644 index 0000000000..871f80a34b --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12.3 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..1c266f7f15 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,30 @@ +[project] +name = "overpass" +version = "0.7" +description = "Python wrapper for the OpenStreetMap Overpass API" +authors = [ + { name = "Martijn van Exel", email = "m@rtijn.org" } +] +dependencies = [ + "osm2geojson", + "requests>=2.3.0", +] +readme = "README.md" +requires-python = ">= 3.8" +license = { text = "Apache" } + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.rye] +managed = true +dev-dependencies = [ + "pytest>=8.2.2", +] + +[tool.hatch.metadata] +allow-direct-references = true + +[tool.hatch.build.targets.wheel] +packages = ["src/overpass"] diff --git a/requirements-dev.lock b/requirements-dev.lock new file mode 100644 index 0000000000..3fe95bd3f5 --- /dev/null +++ b/requirements-dev.lock @@ -0,0 +1,36 @@ +# generated by rye +# use `rye lock` or `rye sync` to update this lockfile +# +# last locked with the following flags: +# pre: false +# features: [] +# all-features: false +# with-sources: false +# generate-hashes: false +# universal: false + +-e file:. +certifi==2024.7.4 + # via requests +charset-normalizer==3.3.2 + # via requests +idna==3.7 + # via requests +iniconfig==2.0.0 + # via pytest +numpy==2.0.0 + # via shapely +osm2geojson==0.2.5 + # via overpass +packaging==24.1 + # via pytest +pluggy==1.5.0 + # via pytest +pytest==8.2.2 +requests==2.32.3 + # via osm2geojson + # via overpass +shapely==2.0.4 + # via osm2geojson +urllib3==2.2.2 + # via requests diff --git a/requirements.lock b/requirements.lock new file mode 100644 index 0000000000..0ba6a85c7c --- /dev/null +++ b/requirements.lock @@ -0,0 +1,29 @@ +# generated by rye +# use `rye lock` or `rye sync` to update this lockfile +# +# last locked with the following flags: +# pre: false +# features: [] +# all-features: false +# with-sources: false +# generate-hashes: false +# universal: false + +-e file:. +certifi==2024.7.4 + # via requests +charset-normalizer==3.3.2 + # via requests +idna==3.7 + # via requests +numpy==2.0.0 + # via shapely +osm2geojson==0.2.5 + # via overpass +requests==2.32.3 + # via osm2geojson + # via overpass +shapely==2.0.4 + # via osm2geojson +urllib3==2.2.2 + # via requests