Skip to content

Commit 2d50b5c

Browse files
committed
Merge branch 'v4.8.0-rc-dev'
2 parents 37142f3 + 0cfddb3 commit 2d50b5c

File tree

147 files changed

+32562
-2387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+32562
-2387
lines changed

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# **Problem:**
2+
3+
- Describe the specific technical problem that this PR solves.
4+
- Include details such as:
5+
- How you reproduced the problem
6+
- What code is affected
7+
- Any relevant background information
8+
9+
# **Solution:**
10+
11+
- Describe the specific technical solution that this PR provides.
12+
- Include details such as:
13+
- How you debugged the problem
14+
- Why you chose this solution
15+
- Does the solution make any impact beyond the immediate problem
16+
- Any necessary technical debt incurred
17+
- Any important design decisions/links to design documentation (if applicable)
18+
19+
# **Testing:**
20+
21+
- Describe any testing that was performed to validate the solution.
22+
- Include details such as:
23+
- How you tested the solution
24+
- Any relevant test results (Do not include any test results that may contain sensitive information)
25+
- Any automated tests that were added to the codebase

.github/workflows/build.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ on:
2727
types:
2828
- 'published'
2929

30+
# Cancel any previous runs of this workflow that are still in progress.
31+
# This is to avoid running the same tests multiple times concurrently.
32+
concurrency:
33+
group: ci-${{ github.ref }}
34+
cancel-in-progress: true
35+
3036
jobs:
3137

3238
pre-commit:
@@ -35,21 +41,20 @@ jobs:
3541
- uses: actions/checkout@v4
3642
- uses: actions/setup-python@v5
3743
with:
38-
python-version: '3.12'
44+
python-version: '3.13'
3945
- uses: pre-commit/[email protected]
4046

41-
4247
# run unit (and integration tests if account secrets available) on our build matrix
4348
test:
4449
needs: [pre-commit]
4550

4651
strategy:
4752
matrix:
48-
os: [ubuntu-20.04, macos-13, windows-2022]
53+
os: [ubuntu-22.04, macos-13, windows-2022]
4954

5055
# if changing the below change the run-integration-tests versions and the check-deploy versions
5156
# Make sure that we are running the integration tests on the first and last versions of the matrix
52-
python: ['3.9', '3.10', '3.11', '3.12']
57+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
5358

5459
runs-on: ${{ matrix.os }}
5560

@@ -78,7 +83,7 @@ jobs:
7883
path: |
7984
${{ steps.get-dependencies.outputs.site_packages_loc }}
8085
${{ steps.get-dependencies.outputs.site_bin_dir }}
81-
key: ${{ runner.os }}-${{ matrix.python }}-build-${{ env.cache-name }}-${{ hashFiles('setup.py') }}-v20
86+
key: ${{ runner.os }}-${{ matrix.python }}-build-${{ env.cache-name }}-${{ hashFiles('setup.py') }}-v22
8287

8388
- name: Install py-dependencies
8489
if: steps.cache-dependencies.outputs.cache-hit != 'true'
@@ -101,7 +106,7 @@ jobs:
101106
pytest -sv --cov-append --cov=. --cov-report xml tests/unit
102107
- name: Check for Secret availability
103108
id: secret-check
104-
if: ${{ contains(fromJSON('["3.9"]'), matrix.python) || contains(fromJSON('["3.12"]'), matrix.python) }}
109+
if: ${{ contains(fromJSON('["3.9"]'), matrix.python) || contains(fromJSON('["3.13"]'), matrix.python) }}
105110
# perform secret check & put boolean result as an output
106111
shell: bash
107112
run: |
@@ -160,7 +165,7 @@ jobs:
160165
shell: bash
161166

162167
# keep versions consistent with the first and last from the strategy matrix
163-
if: ${{ (contains(fromJSON('["3.9"]'), matrix.python) || contains(fromJSON('["3.12"]'), matrix.python)) && steps.secret-check.outputs.secrets_available == 'true'}}
168+
if: ${{ (contains(fromJSON('["3.9"]'), matrix.python) || contains(fromJSON('["3.13"]'), matrix.python)) && steps.secret-check.outputs.secrets_available == 'true'}}
164169
run: |
165170
# decrypt the encrypted test synapse configuration
166171
openssl aes-256-cbc -K ${{ secrets.encrypted_d17283647768_key }} -iv ${{ secrets.encrypted_d17283647768_iv }} -in test.synapseConfig.enc -out test.synapseConfig -d
@@ -207,7 +212,7 @@ jobs:
207212
- name: Upload coverage report
208213
id: upload_coverage_report
209214
uses: actions/upload-artifact@v4
210-
if: ${{ contains(fromJSON('["3.12"]'), matrix.python) && contains(fromJSON('["ubuntu-20.04"]'), matrix.os)}}
215+
if: ${{ contains(fromJSON('["3.13"]'), matrix.python) && contains(fromJSON('["ubuntu-22.04"]'), matrix.os)}}
211216
with:
212217
name: coverage-report
213218
path: coverage.xml
@@ -216,7 +221,7 @@ jobs:
216221
needs: [test]
217222
if: ${{ always() && !cancelled()}}
218223
name: SonarCloud
219-
runs-on: ubuntu-20.04
224+
runs-on: ubuntu-22.04
220225
steps:
221226
- uses: actions/checkout@v4
222227
with:
@@ -251,7 +256,7 @@ jobs:
251256
package:
252257
needs: [test,pre-commit]
253258

254-
runs-on: ubuntu-20.04
259+
runs-on: ubuntu-22.04
255260

256261
if: github.event_name == 'release'
257262

@@ -399,10 +404,10 @@ jobs:
399404

400405
strategy:
401406
matrix:
402-
os: [ubuntu-20.04, macos-13, windows-2022]
407+
os: [ubuntu-24.04, macos-13, windows-2022]
403408

404409
# python versions should be consistent with the strategy matrix and the runs-integration-tests versions
405-
python: ['3.9', '3.10', '3.11', '3.12']
410+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
406411

407412
runs-on: ${{ matrix.os }}
408413

.readthedocs.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ version: 2
66

77
# Set the version of Python and other tools you might need
88
build:
9-
os: ubuntu-20.04
9+
os: ubuntu-22.04
1010
tools:
11-
python: "3.9"
11+
# alias for the latest 3.x version available on Read the Docs
12+
python: "3"
1213

1314
mkdocs:
1415
configuration: mkdocs.yml
@@ -17,3 +18,10 @@ mkdocs:
1718
python:
1819
install:
1920
- requirements: docs/requirements.txt
21+
22+
# See https://docs.readthedocs.com/platform/stable/config-file/v2.html#search for more options
23+
search:
24+
ranking:
25+
reference/*: -3
26+
reference/experimental/*: -2
27+
reference/experimental/sync/*: -1

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ copied to forks).
9393
#### Installing the Python Client in a virtual environment with pipenv
9494
Perform the following one-time steps to set up your local environment.
9595
96-
1. This package uses Python, if you have not already, please install [pyenv](https://github.com/pyenv/pyenv#installation) to manage your Python versions. Versions supported by this package are all versions >=3.9 and <=3.12. If you do not install `pyenv` make sure that Python and `pip` are installed correctly and have been added to your PATH by running `python3 --version` and `pip3 --version`. If your installation was successful, your terminal will return the versions of Python and `pip` that you installed. **Note**: If you have `pyenv` it will install a specific version of Python for you.
96+
1. This package uses Python, if you have not already, please install [pyenv](https://github.com/pyenv/pyenv#installation) to manage your Python versions. Versions supported by this package are all versions >=3.9 and <=3.13. If you do not install `pyenv` make sure that Python and `pip` are installed correctly and have been added to your PATH by running `python3 --version` and `pip3 --version`. If your installation was successful, your terminal will return the versions of Python and `pip` that you installed. **Note**: If you have `pyenv` it will install a specific version of Python for you.
9797
9898
2. Install `pipenv` by running `pip install pipenv`.
9999
- If you already have `pipenv` installed, ensure that the version is >=2023.9.8 to avoid compatibility issues.

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ RUN apt-get update \
88
python3-dev \
99
python3-setuptools \
1010
python3-pip \
11-
python3-pandas \
1211
&& rm -rf /var/lib/apt/lists/*
1312

1413
RUN pip3 install --upgrade pip
1514

1615
WORKDIR /synapsePythonClient
1716
COPY . .
1817

19-
RUN pip install --no-cache-dir .
18+
RUN pip install --no-cache-dir .[pandas]
2019

2120

2221
LABEL org.opencontainers.image.source='https://github.com/Sage-Bionetworks/synapsePythonClient'

0 commit comments

Comments
 (0)