-
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 #9 from Cosmian/bump-deps
Bump deps
- Loading branch information
Showing
7 changed files
with
144 additions
and
169 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
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,86 @@ | ||
name: Python CI | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
required: true | ||
type: string | ||
|
||
env: | ||
PYTHON_SRC: "src" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
python: | ||
runs-on: ${{ inputs.os }} | ||
strategy: | ||
matrix: | ||
target: [x86_64] | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
name: Python ${{ matrix.python-version }} (${{ matrix.target }}) | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' # caching pip dependencies | ||
|
||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: manylinux2014 | ||
container: quay.io/pypa/manylinux2014_x86_64 | ||
args: --release --out dist -i ${{ matrix.python-version }} | ||
sccache: 'true' | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.os }}-${{ matrix.python-version }}-${{ matrix.target }}-wheels | ||
path: dist | ||
|
||
- name: Install dependencies | ||
run: | | ||
if [ -f tests/requirements.txt ]; then python -m pip install -r tests/requirements.txt; fi | ||
python -m pip install dist/*.whl | ||
- name: Package metadata | ||
id: metadata | ||
run: | | ||
export PACKAGE_VERSION=$(pip inspect | jq -r '.installed | .[] | select(.metadata.name == "intel-sgx-ra") | .metadata.version') | ||
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_OUTPUT | ||
- name: Code format with black | ||
run: | | ||
python -m black --check $PYTHON_SRC | ||
- name: Import check with isort | ||
run: | | ||
python -m isort --check --diff $PYTHON_SRC | ||
- name: Lint check with pylint | ||
run: | | ||
python -m pylint $PYTHON_SRC | ||
- name: Lint check with pycodestyle | ||
run: | | ||
python -m pycodestyle --max-line-length=90 --ignore=E203,W503 $PYTHON_SRC | ||
- name: Lint check with pydocstyle | ||
run: | | ||
python -m pydocstyle $PYTHON_SRC | ||
- name: Typecheck with MyPy | ||
run: | | ||
python -m mypy $PYTHON_SRC | ||
- name: Test with pytest | ||
run: | | ||
python -m pytest |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "maturin" | |
|
||
[project] | ||
name = "intel-sgx-ra" | ||
version = "2.1.0" | ||
version = "2.3.0" | ||
description = "Intel SGX Remote Attestation verification library" | ||
authors = [ | ||
{name = "Cosmian Tech", email = "[email protected]"}, | ||
|
@@ -21,19 +21,19 @@ classifiers = [ | |
] | ||
dependencies = [ | ||
"requests>=2.31.0,<3.0.0", | ||
"cryptography>=41.0.1,<42.0.0", | ||
"authlib>=1.2.0,<2.0.0" | ||
"cryptography>=42.0.5,<43.0.0", | ||
"authlib>=1.3.0,<2.0.0" | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pylint>=2.17.4,<3.0.0", | ||
"pycodestyle>=2.10.0,<3.0.0", | ||
"black>=24.3.0,<25.0.0", | ||
"isort>=5.13.2,<6.0.0", | ||
"pylint>=3.1.0,<4.0.0", | ||
"pycodestyle>=2.11.1,<3.0.0", | ||
"pydocstyle>=6.3.0,<7.0.0", | ||
"mypy>=1.3.0,<2.0.0", | ||
"black>=23.3.0,<24.0.0", | ||
"isort>=5.12.0,<6.0.0", | ||
"pytest>=7.3.2,<8.0.0", | ||
"mypy>=1.9.0,<2.0.0", | ||
"pytest>=8.1.1,<9.0.0", | ||
"types-requests>=2.31.0,<3.0.0" | ||
] | ||
|
||
|
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.