Merge branch 'poetry-2' into develop
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m22s

This commit is contained in:
Alexander Hess 2026-11-24 12:03:27 +01:00
commit dcb2f82deb
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
5 changed files with 1912 additions and 1811 deletions

View file

@ -53,12 +53,12 @@ jobs:
curl -LsSf https://astral.sh/uv/install.sh | sh curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH" echo "$HOME/.local/bin" >> "$GITHUB_PATH"
"$HOME/.local/bin/uv" python install 3.8 "$HOME/.local/bin/uv" python install 3.8
"$HOME/.local/bin/uv" tool install 'poetry==1.8.5' "$HOME/.local/bin/uv" tool install --python 3.13 'poetry>=2'
- name: Install the project - name: Install the project
run: | run: |
poetry env use "$(uv python find 3.8)" uv venv --python 3.8 --seed .venv
poetry install --no-interaction poetry sync --no-interaction
# `TESTING=true` comes from `setup.cfg` # `TESTING=true` comes from `setup.cfg`
- name: Run the test suite - name: Run the test suite

View file

@ -1,4 +1,4 @@
Copyright (c) 2020 Alexander Hess [alexander@webartifex.biz] Copyright (c) 2020 Alexander Hess [alexander@webartifex.de]
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

4623
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,64 +1,85 @@
[build-system] [build-system]
build-backend = "poetry.masonry.api"
requires = ["poetry>=0.12"]
[tool.black] build-backend = "poetry.core.masonry.api"
line-length = 88 requires = ["poetry-core>=2.0.0,<3.0.0"]
skip-string-normalization = true # wemake-python-styleguide enforces single quotes
target-version = ["py38"]
[project]
[tool.poetry]
name = "velofy" name = "velofy"
version = "0.5.0.dev0" version = "0.5.0.dev0"
authors = ["Alexander Hess <alexander@webartifex.biz>"] authors = [{ name = "Alexander Hess", email = "alexander@webartifex.de" }]
description = "Optimizing an urban meal delivery platform" description = "Optimizing an urban meal delivery platform"
keywords = [ keywords = [
"data-science", "data-science",
"meal-delivery", "meal-delivery",
"vehicle-routing-problem", "vehicle-routing-problem",
] ]
license = "MIT" license = "MIT"
readme = "README.md" readme = "README.md"
requires-python = ">=3.8,<4.0"
# Package => Code developed in *.py files and packaged under src/velofy
dependencies = [
"Shapely>=1.7.1,<2",
"alembic>=1.4.2,<2",
"click>=7.1.2,<8",
"folium>=0.12.1,<0.13",
"geopy>=2.1.0,<3",
"googlemaps>=4.4.2,<5",
"matplotlib>=3.3.3,<4",
"ordered-set>=4.0.2,<5",
"pandas>=1.1.0,<2",
"psycopg2>=2.8.5,<3", # Adapter for PostgreSQL
"rpy2>=3.4.1,<4",
"sqlalchemy>=1.3.18,<2",
"statsmodels>=0.12.1,<0.13",
"utm>=0.7.0,<0.8",
]
[project.optional-dependencies]
# `jupyter lab` => Notebooks with analyses using the developed package
research = [
"jupyterlab>=2.2.2,<3",
"numpy>=1.19.1,<2",
"pytz>=2020.1,<2021",
]
[project.scripts]
manage = "velofy.console:cli"
[project.urls]
homepage = "https://code.webartifex.de/alexander/velofy" homepage = "https://code.webartifex.de/alexander/velofy"
repository = "https://code.webartifex.de/alexander/velofy" repository = "https://code.webartifex.de/alexander/velofy"
[tool.poetry.dependencies]
python = "^3.8"
# Package => code developed in *.py files and packaged under src/velofy
Shapely = "^1.7.1"
alembic = "^1.4.2"
click = "^7.1.2"
folium = "^0.12.1"
geopy = "^2.1.0"
googlemaps = "^4.4.2"
matplotlib = "^3.3.3"
ordered-set = "^4.0.2"
pandas = "^1.1.0"
psycopg2 = "^2.8.5" # adapter for PostgreSQL
rpy2 = "^3.4.1"
sqlalchemy = "^1.3.18"
statsmodels = "^0.12.1"
utm = "^0.7.0"
# Jupyter Lab => notebooks with analyses using the developed package [tool.black]
# IMPORTANT: must be kept in sync with the "research" extra below
jupyterlab = { version="^2.2.2", optional=true }
nb_black = { version="^1.0.7", optional=true }
numpy = { version="^1.19.1", optional=true }
pytz = { version="^2020.1", optional=true }
[tool.poetry.extras] target-version = ["py38"]
research = [
"jupyterlab", line-length = 88
"nb_black",
"numpy", skip-string-normalization = true # `wemake-python-styleguide` enforces single quotes
"pytz",
]
[tool.poetry.group.dev.dependencies]
[tool.poetry.dev-dependencies]
# Task Runners # Task Runners
nox = "^2020.5.24" nox = "^2020.5.24"
pre-commit = "^2.6.0" pre-commit = "^2.6.0"
@ -66,21 +87,21 @@ pre-commit = "^2.6.0"
# Code Formatters # Code Formatters
autoflake = "^1.3.1" autoflake = "^1.3.1"
black = "^19.10b0" black = "^19.10b0"
isort = "^4.3.21" # TODO (isort): not ^5.5.4 due to wemake-python-styleguide isort = "^4.3.21" # TODO (isort): Not ^5.5.4 due to `wemake-python-styleguide`
# (Static) Code Analyzers # Code Analyzers
flake8 = "^3.8.3" flake8 = "^3.8.3"
flake8-annotations = "^2.3.0" flake8-annotations = "^2.3.0"
flake8-black = "^0.2.1" flake8-black = "^0.2.1"
flake8-pytest-style = "^1.2.2" flake8-pytest-style = "^1.2.2"
mypy = "^0.782" mypy = "^0.782"
wemake-python-styleguide = "^0.14.1" # flake8 plug-in wemake-python-styleguide = "^0.14.1" # `flake8` plug-in
# Test Suite # Test Suite
Faker = "^5.0.1" Faker = "^5.0.1"
factory-boy = "^3.1.0" factory-boy = "^3.1.0"
geopy = "^2.1.0" geopy = "^2.1.0"
packaging = "^20.4" # used to test the packaged version packaging = "^20.4" # Used to test the packaged version
pytest = "^6.0.1" pytest = "^6.0.1"
pytest-cov = "^2.10.0" pytest-cov = "^2.10.0"
pytest-env = "^0.6.2" pytest-env = "^0.6.2"
@ -90,6 +111,3 @@ xdoctest = { version="^0.13.0", extras=["optional"] }
# Documentation # Documentation
sphinx = "^3.1.2" sphinx = "^3.1.2"
sphinx-autodoc-typehints = "^1.11.0" sphinx-autodoc-typehints = "^1.11.0"
[tool.poetry.scripts]
manage = "velofy.console:cli"

@ -1 +1 @@
Subproject commit 97572c1c5e0f41d81172fbcf15ee594be1156dc6 Subproject commit a551b09d8b055df24dc057e46ad892dbd1c74208