-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
14,527 additions
and
9,025 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ jobs: | |
arch: [s390x, ppc64le] | ||
|
||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: Build sources and run tests | ||
uses: uraimo/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,11 +47,11 @@ jobs: | |
WHEELHOUSE_CYTHON: /tmp/wheelhouse/cython | ||
|
||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: Cache Cython | ||
id: cache-cython | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v3.3.1 | ||
with: | ||
path: ${{ env.WHEELHOUSE_CYTHON }} | ||
key: wasm-ubuntu-cython-${{ env.LATEST_CYTHON_COMMIT }}-path-${{ env.WHEELHOUSE_CYTHON }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,16 +45,17 @@ jobs: | |
macarch: [arm64, x86_64] | ||
|
||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: Test for Mac Deps cache hit | ||
id: macdep-cache | ||
uses: actions/cache@v3.0.2 | ||
uses: actions/cache@v3.3.1 | ||
with: | ||
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} | ||
# The hash of all files in buildconfig manylinux-build and macdependencies is | ||
# the key to the cache. If anything changes here, the deps are built again | ||
key: macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }} | ||
lookup-only: true | ||
|
||
# build mac deps on cache miss | ||
- name: Build Mac Deps | ||
|
@@ -116,6 +117,7 @@ jobs: | |
} | ||
|
||
env: | ||
MAC_ARCH: ${{ matrix.macarch }} | ||
# load pip config from this file. Define this in 'CIBW_ENVIRONMENT' | ||
# because this should not affect cibuildwheel machinery | ||
# also define environment variables needed for testing | ||
|
@@ -129,7 +131,6 @@ jobs: | |
|
||
# Setup MacOS dependencies | ||
CIBW_BEFORE_ALL: | | ||
export MAC_ARCH="${{ matrix.macarch }}" | ||
brew install pkg-config | ||
cd buildconfig/macdependencies | ||
cp -r ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} ${{ github.workspace }}/pygame_mac_deps | ||
|
@@ -149,23 +150,24 @@ jobs: | |
CIBW_BUILD_VERBOSITY: 2 | ||
|
||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: pip cache | ||
uses: actions/cache@v3.0.2 | ||
uses: actions/cache@v3.3.1 | ||
with: | ||
path: ~/Library/Caches/pip # This cache path is only right on mac | ||
key: pip-cache-${{ matrix.name }} | ||
|
||
- name: Fetch Mac deps | ||
id: macdep-cache | ||
uses: actions/cache@v3.0.2 | ||
uses: actions/cache@v3.3.1 | ||
with: | ||
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} | ||
key: macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }} | ||
fail-on-cache-miss: true | ||
|
||
- name: Build and test wheels | ||
uses: pypa/cibuildwheel@v2.12.3 | ||
uses: pypa/cibuildwheel@v2.13.1 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,10 +79,10 @@ jobs: | |
CIBW_BUILD_VERBOSITY: 2 | ||
|
||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | ||
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
|
@@ -95,14 +95,14 @@ jobs: | |
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@c4ee3adeed93b1fa6a762f209fb01608c1a22f1e | ||
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 | ||
with: | ||
images: ghcr.io/${{ github.repository }}_${{ matrix.arch }} | ||
tags: type=raw,value=${{ hashFiles('buildconfig/manylinux-build/**') }} | ||
|
||
- name: Build and push Docker image | ||
if: steps.inspect.outcome == 'failure' | ||
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 | ||
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 | ||
with: | ||
context: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base | ||
file: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base/Dockerfile-${{ matrix.arch }} | ||
|
@@ -118,7 +118,7 @@ jobs: | |
CIBW_MANYLINUX_I686_IMAGE: ghcr.io/${{ github.repository }}_i686:${{ steps.meta.outputs.version }} | ||
CIBW_MANYLINUX_PYPY_I686_IMAGE: ghcr.io/${{ github.repository }}_i686:${{ steps.meta.outputs.version }} | ||
|
||
uses: pypa/cibuildwheel@v2.12.3 | ||
uses: pypa/cibuildwheel@v2.13.1 | ||
|
||
# We upload the generated files under github actions assets | ||
- name: Upload dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ jobs: | |
os: [ubuntu-20.04, ubuntu-22.04] | ||
|
||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: Install deps | ||
# install numpy from pip and not apt because the one from pip is newer, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ jobs: | |
CIBW_BUILD_VERBOSITY: 2 | ||
|
||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- uses: TheMrMilchmann/setup-msvc-dev@v2 # this lets us use the developer command prompt on windows | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: Install deps | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: Install deps | ||
run: python3 -m pip install pylint black clang-format sphinx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
needs: [manylinux, macos, windows, sdist] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: Download all artifacts | ||
uses: actions/download-artifact@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].2 | ||
- uses: actions/[email protected].3 | ||
|
||
- name: Pull all release assets | ||
uses: robinraju/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pygame._sdl2.video import _Window as Window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from typing import Iterable, Optional, Tuple, Union, final | ||
from pygame.surface import Surface | ||
from ._common import RectValue | ||
from pygame.locals import WINDOWPOS_UNDEFINED | ||
|
||
def get_grabbed_window() -> Optional[Window]: ... | ||
@final | ||
class Window: | ||
def __init__( | ||
self, | ||
title: str = "pygame window", | ||
size: Iterable[int] = (640, 480), | ||
position: Union[int, Iterable[int]] = WINDOWPOS_UNDEFINED, | ||
**flags: bool | ||
) -> None: ... | ||
def destroy(self) -> None: ... | ||
def set_windowed(self) -> None: ... | ||
def set_fullscreen(self, desktop: bool = False) -> None: ... | ||
def focus(self, input_only: bool = False) -> None: ... | ||
def hide(self) -> None: ... | ||
def show(self) -> None: ... | ||
def restore(self) -> None: ... | ||
def maximize(self) -> None: ... | ||
def minimize(self) -> None: ... | ||
def set_modal_for(self, parent: Window) -> None: ... | ||
def set_icon(self, icon: Surface) -> None: ... | ||
grab: bool | ||
title: str | ||
resizable: bool | ||
borderless: bool | ||
relative_mouse: bool | ||
id: int | ||
size: Iterable[int] | ||
position: Union[int, Iterable[int]] | ||
opacity: float | ||
display_index: int | ||
@classmethod | ||
def from_display_module(cls) -> Window: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.