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/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 ------------- 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" 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" 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 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", ], )