-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from static-frame/30/py312
- Loading branch information
Showing
13 changed files
with
136 additions
and
47 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "gcc-problem-matcher", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*(.*):(\\d+):(\\d+):\\s+(?:fatal\\s+)?(warning|error):\\s+(.*?(?:\\s+\\[(.*)\\])?)\\s*$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"severity": 4, | ||
"message": 5, | ||
"code": 6 | ||
} | ||
] | ||
} | ||
] | ||
} |
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,18 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "msvc-problem-matcher", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*(?:\\d+\\>)?([^\\s].*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning)\\s+((\\w+\\d+)\\s*:\\s*.*?)\\s*$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"severity": 4, | ||
"message": 5, | ||
"code": 6 | ||
} | ||
] | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -12,92 +12,143 @@ on: | |
jobs: | ||
tar_gz: | ||
name: Package | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-python@master | ||
with: | ||
python-version: 3.12 | ||
- run: pip install -r requirements-build-3_12.txt | ||
- run: python setup.py sdist | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
whl_lt_3_9: | ||
matrix_config: | ||
name: Matrix Runner Config | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
matrix_os: ${{ steps.step.outputs.matrix_os }} | ||
steps: | ||
- run: echo "$GITHUB_EVENT_NAME" | ||
- id: step | ||
run: | | ||
if [ "$GITHUB_EVENT_NAME" = "release" ]; then | ||
echo 'matrix_os=["macos-13-xlarge", "ubuntu-22.04", "windows-2022"]' >> $GITHUB_OUTPUT | ||
else | ||
echo 'matrix_os=["macos-13", "ubuntu-22.04", "windows-2022"]' >> $GITHUB_OUTPUT | ||
fi | ||
whl_3_8: | ||
name: Build / ${{ matrix.os }} / Python 3.${{ matrix.minor }} | ||
needs: matrix_config | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-12, ubuntu-22.04, windows-2022] | ||
minor: [7, 8] | ||
os: ${{ fromJson(needs.matrix_config.outputs.matrix_os) }} | ||
minor: [8] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pypa/[email protected] | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-python@master | ||
- run: echo '::add-matcher::.github/problem-matchers/gcc.json' | ||
if: startsWith(matrix.os, 'macos-') || startsWith(matrix.os, 'ubuntu-') | ||
- run: echo '::add-matcher::.github/problem-matchers/msvc.json' | ||
if: startsWith(matrix.os, 'windows-') | ||
|
||
- run: pip install pipx # only for macos amd64 | ||
if: startsWith(matrix.os, 'macos-') | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
env: | ||
CIBW_BUILD: cp3${{ matrix.minor }}-* | ||
CIBW_ARCHS_MACOS: all | ||
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build-backward.txt | ||
CIBW_BEFORE_TEST: pip install -r {project}/requirements-test-backward.txt | ||
CIBW_ARCHS_WINDOWS: x86 AMD64 | ||
CIBW_ARCHS_MACOS: x86_64 arm64 | ||
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build-3_08.txt | ||
CIBW_BEFORE_TEST: pip install -r {project}/requirements-dev-3_08.txt | ||
CIBW_TEST_COMMAND: pytest {project} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
whl_gte_3_9: | ||
whl_gte_3_9_to_3_11: | ||
name: Build / ${{ matrix.os }} / Python 3.${{ matrix.minor }} | ||
needs: matrix_config | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-12, ubuntu-22.04, windows-2022] | ||
os: ${{fromJson(needs.matrix_config.outputs.matrix_os)}} | ||
minor: [9, 10, 11] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pypa/[email protected] | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-python@master | ||
- run: echo '::add-matcher::.github/problem-matchers/gcc.json' | ||
if: startsWith(matrix.os, 'macos-') || startsWith(matrix.os, 'ubuntu-') | ||
- run: echo '::add-matcher::.github/problem-matchers/msvc.json' | ||
if: startsWith(matrix.os, 'windows-') | ||
|
||
- run: pip install pipx | ||
if: startsWith(matrix.os, 'macos-') | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
env: | ||
CIBW_BUILD: cp3${{ matrix.minor }}-* | ||
CIBW_ARCHS_MACOS: all | ||
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build.txt | ||
CIBW_BEFORE_TEST: pip install -r {project}/requirements-test.txt | ||
CIBW_ARCHS_WINDOWS: x86 AMD64 | ||
CIBW_ARCHS_MACOS: x86_64 arm64 | ||
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build-3_11.txt | ||
CIBW_BEFORE_TEST: pip install -r {project}/requirements-dev-3_11.txt | ||
CIBW_TEST_COMMAND: pytest {project} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
forward: | ||
name: Forward / ${{ matrix.os }} / Python 3.${{ matrix.minor }} | ||
whl_3_12: | ||
name: Build / ${{ matrix.os }} / Python 3.${{ matrix.minor }} | ||
needs: matrix_config | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04] | ||
minor: [11] | ||
os: ${{fromJson(needs.matrix_config.outputs.matrix_os)}} | ||
minor: [12] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pypa/[email protected] | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-python@master | ||
- run: echo '::add-matcher::.github/problem-matchers/gcc.json' | ||
if: startsWith(matrix.os, 'macos-') || startsWith(matrix.os, 'ubuntu-') | ||
- run: echo '::add-matcher::.github/problem-matchers/msvc.json' | ||
if: startsWith(matrix.os, 'windows-') | ||
|
||
- run: pip install pipx # only for macos amd64 | ||
if: startsWith(matrix.os, 'macos-') | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
env: | ||
CIBW_BUILD: cp3${{ matrix.minor }}-* | ||
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build.txt | ||
CIBW_BEFORE_TEST: pip install -r {project}/requirements-test-forward.txt | ||
CIBW_ARCHS_WINDOWS: x86 AMD64 | ||
CIBW_ARCHS_MACOS: x86_64 arm64 | ||
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build-3_12.txt | ||
CIBW_BEFORE_TEST: pip install -r {project}/requirements-dev-3_12.txt | ||
CIBW_TEST_COMMAND: pytest {project} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
upload: | ||
name: Publish | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
needs: [tar_gz, whl_lt_3_9, whl_gte_3_9, forward] | ||
if: github.event_name == 'release' | ||
needs: [tar_gz, whl_3_8, whl_gte_3_9_to_3_11, whl_3_12] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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 |
---|---|---|
|
@@ -28,7 +28,7 @@ Dependencies | |
|
||
ArrayMap requires the following: | ||
|
||
- Python >= 3.7 | ||
- Python >= 3.8 | ||
- NumPy >= 1.18.5 | ||
|
||
|
||
|
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 @@ | ||
numpy==1.19.5 |
File renamed without changes.
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,2 @@ | ||
numpy==1.26.2 | ||
setuptools==69.* |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ black==22.3.0 | |
hypothesis==6.70.0 | ||
invoke==1.7.1 | ||
pytest==7.1.2 | ||
numpy==1.24.3 | ||
tzdata==2022.1 | ||
numpy==1.19.5 |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ black==22.3.0 | |
hypothesis==6.70.0 | ||
invoke==1.7.1 | ||
pytest==7.1.2 | ||
numpy==1.18.5 | ||
tzdata==2022.1 | ||
numpy==1.23.5 |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
black==22.3.0 | ||
hypothesis==6.70.0 | ||
invoke==1.7.1 | ||
invoke==2.2.0 | ||
pytest==7.1.2 | ||
numpy==1.23.5 | ||
tzdata==2022.1 | ||
numpy==1.26.2 |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
numpy==1.23.5 | ||
numpy>=1.19.5 | ||
|
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