Zenysis / Harmony

The Harmony Analytics Platform (Harmony), developed by Zenysis Technologies, helps make sense of messy data by transforming, cleaning and enriching data from multiple sources. https://www.zenysis.com/#harmony
GNU Affero General Public License v3.0
30 stars 13 forks source link

Setuptools module error #126

Closed Sybrand closed 1 month ago

Sybrand commented 1 month ago

Summary: Setuptools has deprecated setup.py test : https://setuptools.pypa.io/en/stable/history.html#v72-0-0 setuptools.command.test is used by SQLAlchemy-1.3.3, resulting in error: ModuleNotFoundError: No module named 'setuptools.command.test' during pipeline build. Upgrading SQLAlchemy-1.3.3 won't be done on this revision of Harmony, so we need to pin setuptools to a version that works.

Setuptools runs in isolation when building wheels, and will pull down latest setuptools (at this point v72.0.0), so we have to add --no-build-isolation to pip install.

Adding --no-build-isolation will fail unless some additional dependencies are pulled in (attrs, wheel and Cython)

Other

0.12.0 version of python-Levenshtein was yanked, so upgraded to 0.12.1 SQLAlchemy upgraded from 1.3.3 to 1.3.24 - 1.3.20 and upwards install faster because they have pre-built wheels. .4 to .24 seem to all be bug fixes.

Test Plan: Build image in GitHub actions.

zenenock commented 1 month ago

@Sybrand you rock 💯