Skip to content

Commit 6de660f

Browse files
committed
3.8 -> 3.9
1 parent 7b0166e commit 6de660f

File tree

5 files changed

+37
-15
lines changed

5 files changed

+37
-15
lines changed

.github/workflows/development.yaml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
env:
3232
DOCKER_CLIENT_TIMEOUT: "120"
3333
COMPOSE_HTTP_TIMEOUT: "120"
34-
PY_VER: "3.8"
34+
PY_VER: "3.9"
3535
IMAGE: "djtest"
3636
DISTRO: "alpine"
3737
steps:
@@ -86,11 +86,10 @@ jobs:
8686
path: "image-pharus-${{env.PHARUS_VERSION}}-py${{matrix.py_ver}}-\
8787
${{matrix.distro}}.tar.gz"
8888
retention-days: 1
89-
- if: matrix.py_ver == '3.8' && matrix.distro == 'alpine'
90-
name: Add pip artifacts
89+
- name: Add pip artifacts
9190
uses: actions/upload-artifact@v2
9291
with:
93-
name: pip-pharus-${{env.PHARUS_VERSION}}
92+
name: pip-pharus-${{env.PHARUS_VERSION}}-py${{matrix.py_ver}}
9493
path: dist
9594
retention-days: 1
9695
test:
@@ -170,10 +169,15 @@ jobs:
170169
uses: actions/download-artifact@v2
171170
with:
172171
name: image-pharus-${{env.PHARUS_VERSION}}-py3.8-alpine
173-
- name: Fetch pip artifacts
172+
- name: Fetch 3.8 pip artifacts
174173
uses: actions/download-artifact@v2
175174
with:
176-
name: pip-pharus-${{env.PHARUS_VERSION}}
175+
name: pip-pharus-${{env.PHARUS_VERSION}}-py3.8
176+
path: dist
177+
- name: Fetch 3.9 pip artifacts
178+
uses: actions/download-artifact@v2
179+
with:
180+
name: pip-pharus-${{env.PHARUS_VERSION}}-py3.8
177181
path: dist
178182
- name: Publish pip release
179183
run: |
@@ -186,23 +190,41 @@ jobs:
186190
run: |
187191
echo "PHARUS_WHEEL_PATH=$(ls dist/pharus-*.whl)" >> $GITHUB_ENV
188192
echo "PHARUS_SDIST_PATH=$(ls dist/pharus-*.tar.gz)" >> $GITHUB_ENV
189-
- name: Upload pip wheel asset to release
193+
- name: Upload 3.8 pip wheel asset to release
190194
uses: actions/upload-release-asset@v1
191195
env:
192196
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
193197
with:
194198
upload_url: ${{steps.create_gh_release.outputs.upload_url}}
195199
asset_path: ${{env.PHARUS_WHEEL_PATH}}
196-
asset_name: pip-pharus-${{env.PHARUS_VERSION}}.whl
200+
asset_name: pip-pharus-${{env.PHARUS_VERSION}}-py3.8.whl
197201
asset_content_type: application/zip
198-
- name: Upload pip sdist asset to release
202+
- name: Upload 3.9 pip wheel asset to release
203+
uses: actions/upload-release-asset@v1
204+
env:
205+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
206+
with:
207+
upload_url: ${{steps.create_gh_release.outputs.upload_url}}
208+
asset_path: ${{env.PHARUS_WHEEL_PATH}}
209+
asset_name: pip-pharus-${{env.PHARUS_VERSION}}-py3.9.whl
210+
asset_content_type: application/zip
211+
- name: Upload 3.8 pip sdist asset to release
212+
uses: actions/upload-release-asset@v1
213+
env:
214+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
215+
with:
216+
upload_url: ${{steps.create_gh_release.outputs.upload_url}}
217+
asset_path: ${{env.PHARUS_SDIST_PATH}}
218+
asset_name: pip-pharus-${{env.PHARUS_VERSION}}-py3.8.tar.gz
219+
asset_content_type: application/gzip
220+
- name: Upload 3.9 pip sdist asset to release
199221
uses: actions/upload-release-asset@v1
200222
env:
201223
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
202224
with:
203225
upload_url: ${{steps.create_gh_release.outputs.upload_url}}
204226
asset_path: ${{env.PHARUS_SDIST_PATH}}
205-
asset_name: pip-pharus-${{env.PHARUS_VERSION}}.tar.gz
227+
asset_name: pip-pharus-${{env.PHARUS_VERSION}}-py3.9.tar.gz
206228
asset_content_type: application/gzip
207229
- name: Upload deploy docker environment
208230
uses: actions/upload-release-asset@v1

docker-compose-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PY_VER=3.8 IMAGE=djbase DISTRO=alpine PHARUS_VERSION=$(cat pharus/version.py | grep -oP '\d+\.\d+\.\d+') HOST_UID=$(id -u) docker compose -f docker-compose-build.yaml up --exit-code-from pharus --build
1+
# PY_VER=3.9 IMAGE=djbase DISTRO=alpine PHARUS_VERSION=$(cat pharus/version.py | grep -oP '\d+\.\d+\.\d+') HOST_UID=$(id -u) docker compose -f docker-compose-build.yaml up --exit-code-from pharus --build
22
#
33
# Intended for updating dependencies and docker image.
44
# Used to build release artifacts.

docker-compose-dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PY_VER=3.8 IMAGE=djbase DISTRO=alpine PHARUS_VERSION=$(cat pharus/version.py | grep -oP '\d+\.\d+\.\d+') HOST_UID=$(id -u) docker compose -f docker-compose-dev.yaml up
1+
# PY_VER=3.9 IMAGE=djbase DISTRO=alpine PHARUS_VERSION=$(cat pharus/version.py | grep -oP '\d+\.\d+\.\d+') HOST_UID=$(id -u) docker compose -f docker-compose-dev.yaml up
22
#
33
# Intended for normal development. Supports hot/live reloading.
44
# Note: If requirements or Dockerfile change, will need to add --build flag to docker-compose.
@@ -36,7 +36,7 @@ services:
3636
- PHARUS_OIDC_PUBLIC_KEY
3737
- PHARUS_OIDC_SUBJECT_KEY=preferred_username
3838
volumes:
39-
- ./pharus:/opt/conda/lib/python3.8/site-packages/pharus
39+
- ./pharus:/opt/conda/lib/python${PY_VER}/site-packages/pharus
4040
command: pharus
4141
fakeservices.datajoint.io:
4242
<<: *net

docker-compose-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PY_VER=3.8 IMAGE=djtest DISTRO=alpine HOST_UID=$(id -u) docker-compose -f docker-compose-docs.yaml up --exit-code-from pharus-docs --build
1+
# PY_VER=3.9 IMAGE=djtest DISTRO=alpine HOST_UID=$(id -u) docker-compose -f docker-compose-docs.yaml up --exit-code-from pharus-docs --build
22
#
33
# Used to build documentation artifacts.
44
version: "2.4"

docker-compose-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PY_VER=3.8 IMAGE=djtest DISTRO=alpine AS_SCRIPT=FALSE PHARUS_VERSION=$(cat pharus/version.py | grep -oP '\d+\.\d+\.\d+') HOST_UID=$(id -u) docker compose -f docker-compose-test.yaml up --exit-code-from pharus
1+
# PY_VER=3.9 IMAGE=djtest DISTRO=alpine AS_SCRIPT=FALSE PHARUS_VERSION=$(cat pharus/version.py | grep -oP '\d+\.\d+\.\d+') HOST_UID=$(id -u) docker compose -f docker-compose-test.yaml up --exit-code-from pharus
22
#
33
# Intended for running test suite locally.
44
# Note: If requirements or Dockerfile change, will need to add --build flag.

0 commit comments

Comments
 (0)