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

Compliance with PEP 517 #148

Open
taconi opened this issue Oct 12, 2023 · 6 comments · May be fixed by #149
Open

Compliance with PEP 517 #148

taconi opened this issue Oct 12, 2023 · 6 comments · May be fixed by #149

Comments

@taconi
Copy link

taconi commented Oct 12, 2023

The setuptools is treating setup.py as legacy after introducing pyproject.toml in PEP 517 and PEP 518.

@taconi taconi linked a pull request Nov 11, 2023 that will close this issue
@paxcoder
Copy link

there's a pull, but if the guy doesn't reply, we might need to fork off the project.

@taconi
Copy link
Author

taconi commented Nov 19, 2023

As long as pr is not accepted, installation can be done as follows:

pip>=23.1

pip install playsound@git+https://github.com/taconi/playsound

poetry>=1.5.0

poetry add playsound@git+https://github.com/taconi/playsound

@TaylorSMarks
Copy link
Owner

TaylorSMarks commented Nov 19, 2023 via email

@taconi
Copy link
Author

taconi commented Nov 19, 2023

It would be more of a question of installation, in version 23.1 (2023-04-15) of pip support has been removed from setup.py:

Remove setup.py install fallback when building a wheel failed for projects without pyproject.toml. (#8368)

This version of pip only supports python >= 3.7 so <=3.6 would no longer be supported.

However, the latest versions of pip and poetry no longer support setup.py and currently python only supports versions >=3.8.
I believe that the deprecated versions can be dropped as the <=1.3.0 version of playsound will continue to work for python <=3.6.

Can I add requires-python=">=3.7" in pyproject.toml in case of agreement @TaylorSMarks

@taconi taconi changed the title Change setup.py (legacy) to pyproject.toml Compliance with PEP 517 Dec 6, 2023
@taconi
Copy link
Author

taconi commented Dec 6, 2023

I added requires-python=">=3.7" in pyproject.toml to make the required version explicit

@jessebot
Copy link

@TaylorSMarks are you still out there? This fix would make the lib more accessible to python poetry users.

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 a pull request may close this issue.

4 participants