Unverified Commit 314ca335 authored by Nicola Soranzo's avatar Nicola Soranzo
Browse files

Install Tempita from a fork due to `use_2to3` deprecation

Fix https://github.com/galaxyproject/galaxy/issues/12412 .

We have a dependency on `Tempita` (through `sqlalchemy-migrate`), which is
abandonware and uses the `use_2to3=True` option of `setup()` in its
`setup.py` .
The new Setuptools v58.0.0 removed support for 2to3 during builds:
https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v5800
As a result Tempita is installed at even older version and importing it
raises a SyntaxError.

For Galaxy as a full application this has been solved by creating a wheel on
https://wheels.galaxyproject.org . But the `galaxy-data` package (which also
depends on `sqlalchemy-migrate`) cannot automatically install the
tempita-0.5.2 wheel from our alternative package index when installed via
`pip install galaxy-data` as there is no syntax to specify that.

I've therefore resurrected Tempita from the Bitbucket Mercurial repo (thanks
to Software Heritage backups!
https://bitbucket-archive.softwareheritage.org/projects/ia/ianb/tempita.html
), converted to a GitHub repo and updated its code to Python 3.6 with 2to3
and pyupgrade.
parent 022e9ea5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13,4 +13,5 @@ social-auth-core[openidconnect]==3.3.0
SQLAlchemy>=1.3.0,<1.4.0  # https://github.com/kvesteri/sqlalchemy-utils/issues/474
sqlalchemy-migrate
sqlalchemy-utils
tempita @ git+https://git@github.com/nsoranzo/tempita@main#egg=tempita  # Required by sqlalchemy-migrate, see https://github.com/galaxyproject/galaxy/issues/12412
WebOb