From a96a0e7673a1cfb614da9ff3449283dcc934ae69 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Mon, 4 Dec 2023 18:10:20 +0530 Subject: [PATCH 1/5] Update README.rst --- README.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 22114792..a3cdfa5d 100644 --- a/README.rst +++ b/README.rst @@ -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 ------------- From c579826ea22ced85370ae2938eac18a8b1825085 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Tue, 5 Dec 2023 02:29:28 +0530 Subject: [PATCH 2/5] fix mouse button always set to None in handlers (#458) --- p5/sketch/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p5/sketch/events.py b/p5/sketch/events.py index ba8c029d..5054e8fa 100644 --- a/p5/sketch/events.py +++ b/p5/sketch/events.py @@ -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 From 83c6713cba3fe7a69c58912365d0c90e65150d31 Mon Sep 17 00:00:00 2001 From: Ashish Bastola <41137160+abastola0@users.noreply.github.com> Date: Wed, 6 Dec 2023 11:31:35 -0500 Subject: [PATCH 3/5] fix: keyerror 'SQAURE' when using stroke_cap(SQUARE) (#459) --- p5/core/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p5/core/constants.py b/p5/core/constants.py index ddf139ca..59645a5b 100644 --- a/p5/core/constants.py +++ b/p5/core/constants.py @@ -228,7 +228,7 @@ class SType(Enum): TESS = SType.TESS # Stroke parameters -SQUARE = "SQAURE" +SQUARE = "SQUARE" PROJECT = "PROJECT" ROUND = "ROUND" MITER = "MITER" From 1539047c4948358ad43c869d6877d7ab47d0380f Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Wed, 6 Dec 2023 22:36:37 +0530 Subject: [PATCH 4/5] feat: migrate to 3.11 (#461) --- .github/workflows/build-tests.yml | 6 +++--- requirements.txt | 1 - setup.py | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index faf199cb..114bad17 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -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 }} @@ -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 @@ -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 diff --git a/requirements.txt b/requirements.txt index 71a54e61..938a4ffe 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -freetype-py==2.1.0.post1 glfw>=2.5.9 numpy Pillow==9.0.1 diff --git a/setup.py b/setup.py index be9b9cb9..9cd5547f 100644 --- a/setup.py +++ b/setup.py @@ -53,5 +53,6 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], ) From fcff5096be20ee610dccf95193427b9e6661e2c1 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:02:41 +0530 Subject: [PATCH 5/5] Add release notes for 0.8.4 (#462) --- docs/releasenotes/0.8.4.rst | 19 +++++++++++++++++++ docs/releasenotes/index.rst | 1 + p5/__version__.py | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 docs/releasenotes/0.8.4.rst diff --git a/docs/releasenotes/0.8.4.rst b/docs/releasenotes/0.8.4.rst new file mode 100644 index 00000000..77dc2b04 --- /dev/null +++ b/docs/releasenotes/0.8.4.rst @@ -0,0 +1,19 @@ +v0.8.4 +====== + +- Update README.rst by @tushar5526 in ``_ +- Fix minor typos in install.rst by @pszemsza in ``_ +- fix mouse button always set to None in handlers by @tushar5526 in ``_ +- fix: keyerror 'SQAURE' when using stroke_cap(SQUARE) by @abastola0 in ``_ +- feat: migrate to 3.11 by @tushar5526 in ``_ + +New Contributors +---------------- + +* @pszemsza made their first contribution in ``_ +* @abastola0 made their first contribution in ``_ + +Full Changelog +-------------- + +`Compare v0.8.1 to v0.8.3 `_ diff --git a/docs/releasenotes/index.rst b/docs/releasenotes/index.rst index db729529..b1ae6f7d 100644 --- a/docs/releasenotes/index.rst +++ b/docs/releasenotes/index.rst @@ -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 diff --git a/p5/__version__.py b/p5/__version__.py index 39219562..74a68d7a 100644 --- a/p5/__version__.py +++ b/p5/__version__.py @@ -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__ = "theabhikpal@gmail.com" __license__ = " GNU GPLv3"