Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop python2 support and fix setup.py install #134

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

daltonserey
Copy link

This PR proposes dropping Python 2 support to fix problems with setup.py. It also drops use of distutils as it is slated for removal in Python 3.12. The changes are minimal and do not break the tests (neither the repo tests, nor manual tests I performed myself with data on my own use of pyminifier).

The code removed was only necessary to support Python 2.
Furthermore, because setuptools no longer support use_2to3, the
code became a problem for installation procedures that use
setuptools, such as pip.  This should fix a few issues related to
the installation procedures.
This commit removes distutils code in setup.py. The distutils
package is deprecated and slated for removal in Python 3.12. The
removal of this code doesn't affect the installation procedures,
using pip.
@tuhe
Copy link

tuhe commented Aug 15, 2022

It would be really cool if this could be merged. I use pyminifier in a project and I need to either bundle the relevant pyminifier files or find another obfuscation/minifier library if it cannot be installed on python 3.10/3.11.

@hhslepicka
Copy link

👍 to getting this merged and fixing the issue.

@bwoodsend
Copy link

Given that the original author hasn't been seen on GitHub since 2018, I suggest that you try emailing him asking for a transfer of ownership of the GitHub repo and the PyPI project. If you get no response then fork this repo and submit a pep541 name transfer request.

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.

4 participants