Commit graph velofy/pyproject.toml
Author SHA1 Message Date
042256eb99
Switch to Python 3.13
All checks were successful
CI / Tests (Python 3.13) (push) Successful in 1m17s
The dependencies stay in the same series as on Python 3.8
where those support 3.13.

Only the unavoidable upgrades are taken:
 - `matplotlib` to v3.9
 - `numpy` to v2.1
 - `pandas` to v2.2
 - `scipy` (via statsmodels)

Required code changes:
- `numpy` v2.1 prints its scalars as `np.float64(...)`,
  which `psycopg2` then writes into the SQL
  => Adjust `Forecast.from_dataframe()` to convert the
     rounded values into plain `float`s
- Python 3.12 no longer accepts `float`s in `random.randint()`
  => The test factories now pass the seconds as `int`s

CI and `nox` use a `u`v-managed Python, which ships the C headers
needed to build `psycopg2` and `rpy2`.

`flake8` v4 does not run on Python 3.12+
and is upgraded in a future commit.
2026-11-25 11:30:33 +01:00
d54f94a998
Upgrade pre-commit
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m24s
2026-11-25 11:01:35 +01:00
359d7be62a
Upgrade nox
The sessions in `noxfile.py` do not work since the migration to
Poetry 2: they use `poetry install --no-dev` and `poetry export`,
which Poetry 2 removed or moved into a plugin. The sessions are
reworked together with the other development tools.
2026-11-25 10:59:03 +01:00
9eecd371bc
Upgrade sphinx and sphinx-autodoc-typehints 2026-11-25 10:51:36 +01:00
94df768f74
Widen the version ranges for autoflake ...
... and two flake8 plugins

On Python 3.8, the three packages stay at the newest versions that work
with `flake8` v4, which `wemake-python-styleguide` v0.17 requires.
The lock file now also records their newer releases for newer Python versions.
The actual upgrade follows together with the switch to Python 3.13.
2026-11-25 10:44:08 +01:00
ffd72c9987
Upgrade isort
`isort` v5 honors the `single_line_exclusions = typing` setting in
`setup.cfg`, which `isort` v4 ignored.

So, the `typing` imports that were split onto separate lines to satisfy
`isort` v4 are combined again, as the configuration originally intended.
2026-11-25 10:31:24 +01:00
dbdce83067
Upgrade black 2026-11-25 10:30:47 +01:00
b2ce82f431
Upgrade the research extra 2026-11-24 17:29:21 +01:00
d33816302c
Upgrade xdoctest 2026-11-24 17:24:49 +01:00
71544f3088
Upgrade Faker 2026-11-24 17:24:48 +01:00
1d03d09a67
Upgrade factory-boy 2026-11-24 17:24:48 +01:00
b21ae1bf26
Upgrade pytest-mock 2026-11-24 17:24:48 +01:00
af6c639cc1
Upgrade pytest-env 2026-11-24 17:24:47 +01:00
e6130f4253
Upgrade pytest-cov 2026-11-24 17:24:47 +01:00
c895078837
Upgrade pytest 2026-11-24 17:24:43 +01:00
47b56550bc
Upgrade mypy 2026-11-24 17:24:42 +01:00
e94ade4c88
Upgrade wemake-python-styleguide 2026-11-24 17:24:42 +01:00
fb2db07d37
Upgrade sqlalchemy to the latest v1.4 2026-11-24 17:24:41 +01:00
061832faa6
Upgrade pandas 2026-11-24 17:24:35 +01:00
b0cb3b412b
Upgrade folium 2026-11-24 15:27:40 +01:00
d4e8f17f0c
Upgrade click to v8 2026-11-24 15:26:24 +01:00
3e080c71c4
Upgrade shapely to v2 2026-11-24 15:22:58 +01:00
4169da38b1
Upgrade statsmodels 2026-11-24 15:17:07 +01:00
706b0938c2
Upgrade packaging 2026-11-24 12:53:49 +01:00
c7f10f4c7f
Upgrade utm 2026-11-24 12:26:12 +01:00
95c760a0c3
Migrate to Poetry 2 and the standard [project] table
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m23s
2026-11-24 11:58:26 +01:00
5cc8a13719
Update the email address 2026-11-24 11:39:14 +01:00
8eb0dda0e1
Point the project URLs and texts to velofy 2026-11-24 10:34:32 +01:00
e7a2d4a3cb
Rename the umd CLI into manage 2026-11-24 10:02:34 +01:00
4855209392
Rename the urban_meal_delivery package into velofy 2026-11-23 18:06:53 +01:00
5eabd541e8
Merge branch 'release-0.4.0' into develop 2021-09-13 11:22:01 +02:00
19d7b6f3cc
Finalize release 0.4.0 2021-09-13 11:20:53 +02:00
3bef9ca38d
Remove flake8-expression-complexity ...
... from the dev dependencies.

Longer queries in SQLAlchemy get flagged even though they are not
complicated. Other expressions are generally not that complicated.
2021-09-12 16:52:44 +02:00
fa3b761054
Remove pytest-randomly from the dev dependencies
- problem: because of the randomization of test cases, every once in a
  while, the schema holding the test db already exists and cannot be
  created a second time (background: we run all tests against a db
  created with `metadate.create_all()` by SQLAlchemy at once and
  a db created by running all incremental Alchemy migration scripts)
- quick fix: possible, we could find a way to run all tests against
  one of the two test db's in random order and then against the other
  => in the interest of time, we simply do not randomize the test cases
2021-09-12 16:51:11 +02:00
5e9307523c
Add ordered-set to the dependencies 2021-09-12 16:51:10 +02:00
28368cc30a
Add geopy to the dependencies 2021-09-12 16:51:09 +02:00
3dd848605c
Add googlemaps to the dependencies 2021-09-12 16:51:09 +02:00
915aa4d3b4
Merge branch 'release-0.3.0' into develop 2021-02-04 13:23:39 +01:00
d4ca85b55a
Finalize release 0.3.0 2021-02-04 13:13:26 +01:00
6429165aaf
Add statsmodels to the dependencies 2021-01-31 18:24:03 +01:00
f36fffdd4d
Add pytest-mock to the dev dependencies 2021-01-24 18:32:07 +01:00
a1da1e9af8
Add matplotlib to the dependencies 2021-01-21 17:15:39 +01:00
2339100371
Add folium to the dependencies 2021-01-21 11:47:22 +01:00
b0f2fdde10
Add rpy2 to the dependencies
- add a Jupyter notebook that allows to install all project-external
  dependencies regarding R and R packages
- adjust the GitHub Action workflow to also install R and the R packages
  used within the project
- add a `init_r` module that initializes all R packages globally
  once the `urban_meal_delivery` package is imported
2021-01-11 16:06:58 +01:00
9196c88ed4
Remove pylint from the project 2021-01-09 17:47:45 +01:00
d5b3efbca1
Add aggregate_orders() function
- the function queries the database and aggregates the ad-hoc orders
  by pixel and time steps into a demand time series
- implement "heavy" integration tests for `aggregate_orders()`
- make `pandas` a package dependency
- streamline the `Config`
2021-01-07 23:35:13 +01:00
54ff377579
Add CLI script to gridify all cities
- reorganize `urban_meal_delivery.console` into a sub-package
- move `tests.db.conftest` fixtures into `tests.conftest`
  => some integration tests regarding CLI scripts need a database
- add `urban_meal_delivery.console.decorators.db_revision` decorator
  to ensure the database is at a certain state before a CLI script runs
- refactor the `urban_meal_delivery.db.grids.Grid.gridify()` constructor:
  - bug fix: even empty `Pixel`s end up in the database temporarily
    => create `Pixel` objects only if an `Address` is to be assigned
       to it
  - streamline code and docstring
  - add further test cases
2021-01-06 16:17:05 +01:00
755677db46
Add utm to the dependencies 2021-01-01 17:59:15 +01:00
556b9d36a3
Add shapely to the dependencies 2020-12-30 17:37:51 +01:00
416a58f9dc
Add geopy to the dev dependencies 2020-12-28 15:52:08 +01:00