peter17 / mediawiki-parser

An experimental Python parser for MediaWiki syntax with a focus on extensibility and comprehensibility
GNU General Public License v3.0
59 stars 18 forks source link

Update setup.py to make it compatible with Poetry #9

Closed vhxs closed 1 year ago

vhxs commented 1 year ago

Poetry is a dependency and package manager for Python projects that is growing in usage and popularity. A recent update to the minor version (1.1 -> 1.2) makes one unable to install mediawiki-parser as this repo's setup.py is currently written, since it uses distutils in a way that is being deprecated. Somewhat related issue posted on poetry's repo: https://github.com/python-poetry/poetry/issues/6459

Minor edits to setup.py resolves this issue. Uses setuptools instead of distutils to install mediawiki-parser. Tested install by publishing fork to mediawiki-parser-fix on PyPI and installing with Poetry. Am still able to install directly with pip as well. See here: https://pypi.org/project/mediawiki-parser-fix/

peter17 commented 1 year ago

Thanks!