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

Changed library to require supported versions of Python #371

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tayler6000
Copy link
Collaborator

Per the readme, the only supported versions of Python/PyPy are:

  • py36
  • py37, pp37
  • py38, pp38
  • py39, pp39
  • py310
  • py311

As such, I added this requirement in setup.py. As it stands, you can still install imgui==2.0 with Python 2. This PR fixes this issue. However, I have not tested this on PyPy. I recommend testing this before merging. I also recommend releasing this as pyimgui 2.0.1 OR pyimgui 2.0.0.post1, then yanking 2.0.0. This will prevent a user from accidentally installing pyimgui 2.0.0 on Python 2 (or other unsupported versions), but will also not break existing projects.

Additionally, I changed the things @learn-more had mentioned in #311. These things include changing all shebangs to use python3, removing all coding: utf-8 lines as these are only required for Python 2, and removing from __future__ import absolute_import as again, this was only required for Python 2.

Lastly, I ran black on the examples to fix line length and other formatting issues. Black also has issues with a lot of other Python files in the project, but I wanted to restrict this PR. With that said, I can run black on the entire project in this or a separate PR to standardize the whole project.

Changed all python shebangs to use python3
Removed utf8 encoding line at the top of python files
Removed absolute_import import from __future__
Ran black over examples to cleanup a lot of PEP8 errors and standardize formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant