Skip to content

Commit 72fe4b5

Browse files
authored
Merge pull request #4 from aaron-siegel/widen-macosx-versions
Widen MacOS versions
2 parents 64224dc + 3b8b3d9 commit 72fe4b5

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.github/workflows/build-and-test.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
release:
88
types:
99
- created
10+
workflow_dispatch:
1011
jobs:
1112
build_wheels:
1213
name: Build wheels on ${{ matrix.os }}
@@ -17,10 +18,10 @@ jobs:
1718
include:
1819
- os: macos-12
1920
arch: x86_64
20-
deployment-target: '12.0'
21+
deployment-target: '10.9'
2122
- os: macos-latest
2223
arch: arm64
23-
deployment-target: '14.0'
24+
deployment-target: '11.0'
2425
- os: ubuntu-latest
2526
arch: x86_64
2627
deployment-target: ''
@@ -52,9 +53,12 @@ jobs:
5253
path: |
5354
pgbuild
5455
src/pgserver/pginstall
55-
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'pgbuild/Makefile') }}
56+
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{
57+
hashFiles('Makefile', 'pgbuild/Makefile', '.github/workflows/build-and-test.yml') }}
5658
- name: Build postgres and pgvector
5759
if: ${{ matrix.os != 'ubuntu-latest' && ! steps.restore-postgres.outputs.cache-hit }}
60+
env:
61+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment-target }}
5862
# this step is implied by Build wheels, but we do it here for caching before python tests run
5963
# on ubuntu, cibuildwheel will run this step within a docker container, so it cannot use the cache this way
6064
run: make
@@ -68,7 +72,8 @@ jobs:
6872
path: |
6973
pgbuild
7074
src/pgserver/pginstall
71-
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'pgbuild/Makefile') }}
75+
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{
76+
hashFiles('Makefile', 'pgbuild/Makefile', '.github/workflows/build-and-test.yml') }}
7277
- name: Build wheels
7378
env:
7479
CIBW_ARCHS: ${{ matrix.arch }}
@@ -85,7 +90,8 @@ jobs:
8590
path: |
8691
pgbuild
8792
src/pgserver/pginstall
88-
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'pgbuild/Makefile') }}
93+
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{
94+
hashFiles('Makefile', 'pgbuild/Makefile', '.github/workflows/build-and-test.yml') }}
8995
- uses: actions/upload-artifact@v3
9096
with:
9197
path: wheelhouse/*.whl

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ dmypy.json
129129
# Pyre type checker
130130
.pyre/
131131

132+
# Pycharm
133+
.idea
134+
132135
build/
133136
pgbuild/
134137
src/pgserver/pginstall

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ install-dev: build
1414
python -m pip install --force-reinstall -e .
1515

1616
clean:
17-
rm -rf build/ wheelhouse/ dist/
17+
rm -rf build/ wheelhouse/ dist/ .eggs/
1818
$(MAKE) -C pgbuild clean
1919

2020
test:
21-
python -m pytest tests/
21+
python -m pytest tests/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pgserver" # Required
3-
version = "0.1.3" # Required
3+
version = "0.1.4" # Required
44
description = "Self-contained postgres server for your python applications" # Required
55
readme = "README.md" # Optional
66
requires-python = ">=3.9"

0 commit comments

Comments
 (0)