argon2-cffi uses calendar versioning, therefore the pin achieves no compatibility promises and only limits releases to from before 2022.
Co-authored-by: Gina Häußge <gina@octoprint.org>
Instead of customizing an existing tool that does a lot of stuff
that we don't need but lacks what we DO need (branch based virtual
tags), now there's a custom single file implementation that mixes
concepts from versioneer, miniver and the lookup that so far was
implemented in OctoPrint's custom build of versioneer, and does so
with less overhead.
Closes#4685
This works around a bug when installing PyYaml
>=5.4.1,<6.0.1 ever since Cython 3.0 has been released.
PyYaml 6.0.1 pins Cython to a version less than 3.0 which
resolves this issue (for now).
See also yaml/pyyaml#724
The original project has been abandoned two years ago: https://pypi.org/project/netifaces/
The new project claims to be nearly fully API-compatible: https://pypi.org/project/netifaces2/
Note the differences regarding `gateways` function and `AF_` constants.
The OctoPrint code however does not seem to use any of those, I tested the web interface without facing issues or errors, so given the CI/CD is passed, it should be fine.
Signed-off-by: MichaIng <micha@dietpi.com>
Apparently we have an issue when updating from an older OctoPrint install
that included that to a newer one that depends on OctoPrint-Setuptools, because
the `octoprint_setuptools` package simply won't be installed in that case.
A reinstall after updating OctoPrint makes it available, but that's not something
we can do in the field.
Long term this needs a better solution, short term we are simply going to provide
OctoPrint-Setuptools to pyproject.toml users, and a vendored copy here. It's the
only solution I see for now.
Really closes#4749
This is the final version to include universal wheels. Newer versions
seem to have native C extensions, no arm wheels are provided, building
them on a Pi takes *ages* and piwheels.org currently doesn't have
already compiled wheels for latest available either due to build issues.
For now we'll stick to 0.39.4, long term we might have to compile our own
wheels find another solution.
We extracted octoprint_setuptools into its own
package on pypi and pull that in on OctoPrint's
install to support plugins gettings installed
non-isolated via setuptools.
Additionally, OctoPrint's setup.py will use it
for clean & translation sub commands, but it's
made optional during install - we don't need
additional commands during a wheel build/install.
Plugins that use pyproject.toml can now add
octoprint-setuptools as a build requirement:
[build-system]
requires = ["setuptools>=40.8.0", "wheel", "octoprint-setuptools"]
build-backend = "setuptools.build_meta"
That way, isolated builds (as triggered by
the existance of pyproject.toml) will work.
And finally, by adding wheel as a dependency
to OctoPrint, we ensure that pip won't try to
install setup.py based plugins in an isolated
environment and fail due to the missing
octoprint_setuptools dependency.
Implements #4682
Work towards fixing #4552
When 3.12 comes around, we can always change
the python version requirement for local testing,
but this way there will be no bad surprises in the
field, OctoPrint will just refuse to install.
With a fallback of pbkdf2_sha256 should anything
go wrong while attempting to import argon2
from passlib, e.g. due to broken native bindings.
Migration happens transparently on first login via
username and password.
Should reduce likelihood of brute force attacks
on unsecure networks if users decide to deploy/make
OctoPrint accessible there against all advice to
the contrary.
Cherry picked from 82c892ba40
Should reduce likelihood of brute force attacks
on unsecure networks if users decide to deploy/make
OctoPrint accessible there against all advice to
the contrary.
Flask 2.2 requires werkzeug 2.2 which we can't
upgrade to due to flask-login, and the current
version pins might be causing issues in the
field.
TODO for 1.9.0: upgrade werkzeug & flask if
possible with flask-login.