Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/selfhosted_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9.13', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13']
architecture: ['x64']

steps:
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
You can grab pre-release versions from PyPi. See the available versions from the
Arcade [PyPi Release History](https://pypi.org/project/arcade/#history) page.

## Version 3.0.2 (unreleased)

## Version 3.1 (unreleased)

- Drop Python 3.9 support

## Version 3.0.2

### Improvements

Expand Down
2 changes: 0 additions & 2 deletions arcade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
A Python simple, easy to use module for creating 2D games.
"""

from __future__ import annotations

# flake8: noqa: E402
# Error out if we import Arcade with an incompatible version of Python.
import sys
Expand Down
2 changes: 0 additions & 2 deletions arcade/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from arcade.management import show_info

if __name__ == "__main__":
Expand Down
2 changes: 0 additions & 2 deletions arcade/__pyinstaller/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import os


Expand Down
2 changes: 0 additions & 2 deletions arcade/__pyinstaller/hook-arcade.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
https://api.arcade.academy/en/latest/tutorials/bundling_with_pyinstaller/index.html
"""

from __future__ import annotations

from importlib.util import find_spec
from pathlib import Path

Expand Down
2 changes: 0 additions & 2 deletions arcade/cache/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Any
from .hit_box import HitBoxCache
from .texture import TextureCache
Expand Down
2 changes: 0 additions & 2 deletions arcade/cache/texture.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from pathlib import Path
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions arcade/camera/data_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
wide usage throughout Arcade's camera code.
"""

from __future__ import annotations

from contextlib import contextmanager
from typing import Final, Generator, Protocol

Expand Down
2 changes: 0 additions & 2 deletions arcade/camera/grips/position.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from pyglet.math import Vec3

from arcade.camera import CameraData
Expand Down
2 changes: 0 additions & 2 deletions arcade/camera/grips/rotate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from pyglet.math import Vec3

from arcade.camera.data_types import CameraData
Expand Down
2 changes: 0 additions & 2 deletions arcade/camera/grips/screen_shake_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
Provides an easy way to cause a camera to shake.
"""

from __future__ import annotations

from math import exp, floor, log, pi, sin
from random import randint, uniform

Expand Down
2 changes: 0 additions & 2 deletions arcade/camera/grips/strafe.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from pyglet.math import Vec3

from arcade.camera.data_types import CameraData
Expand Down
2 changes: 0 additions & 2 deletions arcade/camera/projection_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from math import pi, tan

from pyglet.math import Mat4, Vec2, Vec3, Vec4
Expand Down
2 changes: 0 additions & 2 deletions arcade/clock.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

__all__ = (
"Clock",
"FixedClock",
Expand Down
2 changes: 0 additions & 2 deletions arcade/color/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
This module pre-defines several colors.
"""

from __future__ import annotations

from arcade.types import Color

AERO_BLUE = Color(201, 255, 229, 255)
Expand Down
2 changes: 0 additions & 2 deletions arcade/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
Contains pre-loaded programs
"""

from __future__ import annotations

from pathlib import Path
from typing import Any, Iterable, Sequence

Expand Down
2 changes: 0 additions & 2 deletions arcade/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
https://pyglet.readthedocs.io/en/latest/programming_guide/input.html#using-controllers
"""

from __future__ import annotations

import pyglet.input

__all__ = ["get_controllers", "ControllerManager"]
Expand Down
2 changes: 0 additions & 2 deletions arcade/csscolor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
https://www.w3.org/TR/2018/PR-css-color-3-20180315/
"""

from __future__ import annotations

from arcade.types import Color

ALICE_BLUE = Color(240, 248, 255, 255)
Expand Down
2 changes: 0 additions & 2 deletions arcade/draw/rect.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import array

from arcade import gl
Expand Down
2 changes: 0 additions & 2 deletions arcade/earclip.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from: https://github.com/linuxlewis/tripy/blob/master/tripy.py
"""

from __future__ import annotations

from arcade.types import Point2, Point2List


Expand Down
2 changes: 0 additions & 2 deletions arcade/easing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Functions used to support easing
"""

from __future__ import annotations

from dataclasses import dataclass
from math import cos, pi, sin
from typing import Callable
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/depth_of_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
python -m arcade.examples.depth_of_field
"""

from __future__ import annotations

from contextlib import contextmanager
from math import cos, pi
from random import randint, uniform
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/gui/2_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
python -m arcade.examples.gui.2_widgets
"""

from __future__ import annotations

import textwrap
from copy import deepcopy

Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/gui/3_buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
python -m arcade.examples.gui.3_buttons
"""

from __future__ import annotations

import arcade
from arcade.gui import (
UIAnchorLayout,
Expand Down
9 changes: 3 additions & 6 deletions arcade/examples/gui/4_with_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@
python -m arcade.examples.gui.4_with_camera
"""

from __future__ import annotations

import math
import random
from typing import Optional

import arcade
from arcade.gui import UIAnchorLayout, UIBoxLayout, UIFlatButton, UILabel, UIOnClickEvent, UIView
Expand Down Expand Up @@ -164,7 +161,7 @@ def on_draw_before_ui(self):
self.sprites.draw()
self.coins.draw()

def on_update(self, delta_time: float) -> Optional[bool]:
def on_update(self, delta_time: float) -> bool | None:
if self._total_time > self._game_duration:
# ad new UI label to show the end of the game
game_over_text = self.ui.add(
Expand Down Expand Up @@ -244,7 +241,7 @@ def on_update(self, delta_time: float) -> Optional[bool]:

return False

def on_key_press(self, symbol: int, modifiers: int) -> Optional[bool]:
def on_key_press(self, symbol: int, modifiers: int) -> bool | None:
self.keys.add(symbol)

if symbol == arcade.key.ESCAPE:
Expand All @@ -254,7 +251,7 @@ def on_key_press(self, symbol: int, modifiers: int) -> Optional[bool]:

return False

def on_key_release(self, symbol: int, modifiers: int) -> Optional[bool]:
def on_key_release(self, symbol: int, modifiers: int) -> bool | None:
if symbol in self.keys:
self.keys.remove(symbol)
return False
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/gui/6_size_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
python -m arcade.examples.gui.6_size_hints
"""

from __future__ import annotations

import textwrap

import arcade
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/gui/exp_hidden_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
python -m arcade.examples.gui.exp_hidden_password
"""

from __future__ import annotations

import arcade
from arcade.gui import UIInputText, UIOnClickEvent, UIView
from arcade.gui.experimental.password_input import UIPasswordInput
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/gui/exp_restricted_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
python -m arcade.examples.gui.exp_restricted_input
"""

from __future__ import annotations

import arcade
from arcade.gui import UIAnchorLayout, UIBoxLayout, UIView
from arcade.gui.experimental.restricted_input import UIIntInput
Expand Down
3 changes: 0 additions & 3 deletions arcade/examples/gui/exp_scroll_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
python -m arcade.examples.gui.exp_scroll_area
"""

from __future__ import annotations


import arcade
from arcade.gui import UIAnchorLayout, UIBoxLayout, UIFlatButton, UIView
from arcade.gui.experimental import UIScrollArea
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/gui/ninepatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
python -m arcade.examples.gui.ninepatch
"""

from __future__ import annotations

import arcade
from arcade import load_texture
from arcade.gui import UIManager, UIAnchorLayout, UIWidget, NinePatchTexture
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/gui/own_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
python -m arcade.examples.gui.own_layout
"""

from __future__ import annotations

from math import cos, sin
from typing import TypeVar

Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/gui/own_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
python -m arcade.examples.gui.own_widgets
"""

from __future__ import annotations

import arcade
from arcade.gui import Property, UIAnchorLayout, UIBoxLayout, UISpace, UIView, UIWidget, bind
from arcade.types import Color
Expand Down
1 change: 0 additions & 1 deletion arcade/examples/particle_fireworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.particle_fireworks
"""
from __future__ import annotations
import random

import pyglet
Expand Down
1 change: 0 additions & 1 deletion arcade/examples/performance_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
command line with:
python -m arcade.examples.performance_statistics
"""
from __future__ import annotations
import random

import arcade
Expand Down
1 change: 0 additions & 1 deletion arcade/examples/pymunk_demo_top_down.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.pymunk_demo_top_down
"""
from __future__ import annotations
import math
import random
import arcade
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/sections_demo_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
python -m arcade.examples.sections_demo_1
"""

from __future__ import annotations

import arcade
from arcade import SectionManager

Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/sections_demo_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
python -m arcade.examples.sections_demo_3
"""

from __future__ import annotations

from math import sqrt

import arcade
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/sprite_depth_cosine.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
python -m arcade.examples.sprite_depth_cosine
"""

from __future__ import annotations

import math

from pyglet.graphics import Batch
Expand Down
2 changes: 0 additions & 2 deletions arcade/examples/threaded_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.threaded_loading
"""
from __future__ import annotations

import sys
from time import sleep

Expand Down
2 changes: 0 additions & 2 deletions arcade/experimental/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Experimental stuff. API may change.
"""

from __future__ import annotations

from .shadertoy import Shadertoy, ShadertoyBuffer, ShadertoyBase
from .crt_filter import CRTFilter
from .bloom_filter import BloomFilter
Expand Down
Loading
Loading