asweigart / pyscreeze

PyScreeze is a simple, cross-platform screenshot module for Python 2 and 3.
BSD 3-Clause "New" or "Revised" License
191 stars 96 forks source link

where is 0.1.30? #108

Open masterkain opened 1 year ago

masterkain commented 1 year ago

I can't find it -- that solves

    if tuple(PIL__version__) < (6, 2, 1):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'str' and 'int'
ERROR: Could not find a version that satisfies the requirement pyscreeze==0.1.30 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.18, 0.1.19, 0.1.20, 0.1.21, 0.1.22, 0.1.23, 0.1.24, 0.1.25, 0.1.26, 0.1.27, 0.1.28, 0.1.29)
ERROR: No matching distribution found for pyscreeze==0.1.30
dgentry commented 1 year ago

This is exactly what's holding me up too.

Pypi shows 0.1.29 as the latest release, in May. https://pypi.org/project/PyScreeze/#history

THIS VERSION 0.1.29 May 24, 2023

I worked around it by cloning this repo, then within the repo

python setup.py install

Afterwards, I can see the right version.

% python
Python 3.11.6 (main, Oct  2 2023, 20:46:14) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyscreeze
>>> pyscreeze.__version__
'0.1.30'
aentwist commented 2 months ago

I created a library that can replace all image matching PyScreeze does. It has strong versioning via CI/CD and git tags.

I highly recommend using semantic-release. I've used it to great success for JS projects before, and upon investigation today saw it does have a PyPI plugin I just tried out, which seems to work excellently. It would solve this problem, but more importantly permanently answer the question 'What commit is x version built on?' which does not currently seem the easiest to deduce (no git tags, don't see versions in pyproject.toml or similar, maybe I'm missing it).