Skip to content

Commit

Permalink
Release 2.2a4
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaccarthy committed Nov 4, 2021
1 parent e0ad7e7 commit f71a6d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ For more information, please see the [tutorial and reference](http://dmaccarthy.

# Installation

Latest release (2.2a3):
Latest release (2.2a4):
```
pip3 install sc8pr==2.2a3
pip3 install sc8pr==2.2a4
```

Bug fixes for v2.1:
Expand All @@ -32,7 +32,7 @@ Development version (2.2.x):
pip3 install https://github.com/dmaccarthy/sc8pr/archive/master.zip
```

Please note that currently (2021 October 6), **pygame 1.9** is available on [PyPI.org](https://pypi.org/project/pygame/) up to Python 3.8 only. Attempting to install an older version of **sc8pr** in Python 3.9 may fail as the **pygame** requirement is unavailable. For Python 3.9, you can use the most recent **sc8pr** versions (2.1.4, 2.2.a3) that accept **pygame 2.0** OR **1.9** as a requirement.
Please note that currently (2021 October 6), **pygame 1.9** is available on [PyPI.org](https://pypi.org/project/pygame/) up to Python 3.8 only. Attempting to install an older version of **sc8pr** in Python 3.9 may fail as the **pygame** requirement is unavailable. For Python 3.9, you can use the most recent **sc8pr** versions (2.1.4, 2.2.a4) that accept **pygame 2.0** OR **1.9** as a requirement.

See the documentation for more [detailed instructions](https://dmaccarthy.github.io/sc8pr/?inst).

Expand Down
2 changes: 1 addition & 1 deletion sc8pr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with "sc8pr". If not, see <http://www.gnu.org/licenses/>.


version = 2, 2, "4dev"
version = 2, 2, "a4"
print("sc8pr {}.{}.{}: https://dmaccarthy.github.io/sc8pr".format(*version))

import sys, struct, zlib, io
Expand Down
8 changes: 4 additions & 4 deletions sc8pr/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class EventManager:
"Process events (except VIDEORESIZE) from the pygame event queue"
debug = 0
# debug = 0

def __init__(self, sk):
self.sk = sk
Expand All @@ -29,7 +29,7 @@ def __init__(self, sk):

def dispatch(self, ev):
"Process one pygame event"
if self.debug: print("Procesing :", pygame.event.event_name(ev.type) if self.debug == 1 else ev)
# if self.debug: print("Procesing :", pygame.event.event_name(ev.type) if self.debug == 1 else ev)

# Encapsulate mouse and keyboard events as sketch attributes
sk = self.sk
Expand Down Expand Up @@ -111,8 +111,8 @@ def handle(self, path, eventName, ev):
setattr(ev, "handler", eventName)
current = _find(path, eventName)
handle = current is not None
if self.debug:
print("Handling :" if handle else "No handler:", pygame.event.event_name(ev.type) if self.debug == 1 else ev)
# if self.debug:
# print("Handling :" if handle else "No handler:", pygame.event.event_name(ev.type) if self.debug == 1 else ev)
if handle: getattr(current, eventName)(ev)

def _dragRelease(self, ev):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

version = 2, 2, "4dev"
version = 2, 2, "a4"
ver = "{}.{}.{}".format(*version)
archive = "master" if version[-1] == "dev" else "v" + ver
with open("README.txt", encoding="utf8") as f: readme = f.read()
Expand Down

0 comments on commit f71a6d7

Please sign in to comment.