Skip to content

Commit

Permalink
Merge branch 'p5py:master' into poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityyaX authored Dec 22, 2023
2 parents 2079c43 + fcff509 commit eee9485
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -56,7 +56,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [ '3.7', '3.8', '3.9', '3.10']
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ Python code for the sketch looks like:
def key_pressed(event):
background(204)
# p5 supports different backend to render sketches, viz "vispy" for both 2D and 3D sketches and "skia" for 2D sketches
# p5 supports different backends to render sketches,
# "vispy" for both 2D and 3D sketches & "skia" for 2D sketches
# use "skia" for better 2D experience
# Default renderer is set to "vispy"
run(renderer="vispy")
run(renderer="vispy") # "skia" is still in beta
Documentation
-------------
Expand Down
19 changes: 19 additions & 0 deletions docs/releasenotes/0.8.4.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
v0.8.4
======

- Update README.rst by @tushar5526 in `<https://github.com/p5py/p5/pull/453>`_
- Fix minor typos in install.rst by @pszemsza in `<https://github.com/p5py/p5/pull/456>`_
- fix mouse button always set to None in handlers by @tushar5526 in `<https://github.com/p5py/p5/pull/458>`_
- fix: keyerror 'SQAURE' when using stroke_cap(SQUARE) by @abastola0 in `<https://github.com/p5py/p5/pull/459>`_
- feat: migrate to 3.11 by @tushar5526 in `<https://github.com/p5py/p5/pull/461>`_

New Contributors
----------------

* @pszemsza made their first contribution in `<https://github.com/p5py/p5/pull/456>`_
* @abastola0 made their first contribution in `<https://github.com/p5py/p5/pull/459>`_

Full Changelog
--------------

`Compare v0.8.1 to v0.8.3 <https://github.com/p5py/p5/compare/v0.8.3...v0.8.4>`_
1 change: 1 addition & 0 deletions docs/releasenotes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Release Notes
.. toctree::
:maxdepth: 1

0.8.4
0.8.3
0.8.0-0.8.2
0.7.0-0.7.1
Expand Down
2 changes: 1 addition & 1 deletion p5/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
__title__ = "p5"
__description__ = "Creative coding in Python"
__url__ = "https://p5py.github.io"
__version__ = "0.8.3"
__version__ = "0.8.4"
__author__ = "Abhik Pal"
__author_email__ = "[email protected]"
__license__ = " GNU GPLv3"
Expand Down
2 changes: 1 addition & 1 deletion p5/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class SType(Enum):
TESS = SType.TESS

# Stroke parameters
SQUARE = "SQAURE"
SQUARE = "SQUARE"
PROJECT = "PROJECT"
ROUND = "ROUND"
MITER = "MITER"
Expand Down
2 changes: 1 addition & 1 deletion p5/sketch/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def _update_builtins(self):
builtins.mouse_x = self.x
builtins.mouse_y = self.y
builtins.mouse_is_pressed = self._active
builtins.mouse_button = self.button if self.pressed else None
builtins.mouse_button = self.button
builtins.moved_x = builtins.mouse_x - builtins.pmouse_x
builtins.moved_y = builtins.mouse_y - builtins.pmouse_y

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
freetype-py==2.1.0.post1
glfw>=2.5.9
numpy
Pillow==9.0.1
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)

0 comments on commit eee9485

Please sign in to comment.