pyimgui icon indicating copy to clipboard operation
pyimgui copied to clipboard

Changed library to require supported versions of Python

Open tayler6000 opened this issue 1 year ago • 0 comments

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.

tayler6000 avatar Feb 08 '24 17:02 tayler6000