Skip to content

Conversation

@constantinius
Copy link
Member

@constantinius constantinius commented Apr 20, 2025

Closes #581

Small changes to models (indexes) and some other places (timezones, and CommandParser)

Moving towards Python 3:

  • Removing six utils
  • Using canonical imports
  • Various changes due to deprecated/removed functions
  • Removal of deprecated functions (multiparttools)

Using Ubuntu 24.04 as base image, because Django did no longer work with the systems version of spatialite

  • Updated dependencies: Python, MapServer, GDAL, spatialite
  • Using venv approach to install via pip

General linting fixes

Small changes to models (indexes) and some other places (timezones, and CommandParser)
Removing `six`  utils
Using canonical imports
Removal of deprecated funcitons in multiparttools
@constantinius constantinius marked this pull request as ready for review April 26, 2025 15:54
Copy link
Member

@jankovicgd jankovicgd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy mental and challenging physical (lotsa clicks) review lol. I think if you confirmed it all works, we tag and I try to bring it into VS and we resume there if anything is wonky

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you go for venv? I've usually read to avoid this unless multi stage builds are used, but maybe it is also okay to avoid clashes with "system" dependencies

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that was the reason. With the Python version used in Ubuntu 24.04 it was no longer possible to install user packages next to system ones without a venv.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this predates fromisoformat by some years. I think we could now use fromisoformat with the additional Z suffix check. I'll look into it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With 73c4c86 I got rid of dateutil. When the tests pass I think we are good.

@constantinius constantinius merged commit a59143a into master May 3, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement support for the oldes live Django LTS version.

3 participants