Skip to content

Commit

Permalink
[EN-8798] [PythonAPI] Lock the Сython version (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
stdcion authored Mar 28, 2024
1 parent 8eca5c5 commit 4cd4950
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 35 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/publishpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -31,19 +31,18 @@ jobs:
- name: Set poetry env
run: |
pip install --upgrade pip
pip install taskipy cython toml
poetry install
shell: bash

- name: Create tarball
if: matrix.python-version == 3.7
run: |
poetry run build -f sdist
poetry build -f sdist
shell: bash

- name: Create wheel
run: |
poetry run build -f wheel
poetry build -f wheel
shell: bash

- name: Upload artifacts
Expand All @@ -58,10 +57,10 @@ jobs:
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.7

Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/test_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -29,10 +29,8 @@ jobs:
- name: Set poetry env
run: |
pip install --upgrade pip
pip install taskipy cython toml
poetry install --only main
task build -f sdist
pip uninstall --yes taskipy cython
poetry install
poetry build -f sdist
shell: bash

- name: Install package artifact
Expand All @@ -50,12 +48,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -65,7 +63,6 @@ jobs:
- name: Set poetry env
run: |
pip install --upgrade pip
pip install taskipy cython toml
poetry install
shell: bash

Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/testdevelop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -32,10 +32,8 @@ jobs:
- name: Set poetry env
run: |
pip install --upgrade pip
pip install taskipy cython toml
poetry install --only main
task build -f sdist
pip uninstall --yes taskipy cython
poetry install
poetry build -f sdist
shell: bash

- name: Install package artifact
Expand All @@ -53,12 +51,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -68,7 +66,6 @@ jobs:
- name: Set poetry env
run: |
pip install --upgrade pip
pip install taskipy cython toml
poetry install
shell: bash

Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/testpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -33,10 +33,8 @@ jobs:
- name: Set poetry env
run: |
pip install --upgrade pip
pip install taskipy cython toml
poetry install --only main
task build -f sdist
pip uninstall --yes taskipy cython
poetry install
poetry build -f sdist
shell: bash

- name: Install package artifact
Expand All @@ -54,12 +52,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -69,7 +67,6 @@ jobs:
- name: Set poetry env
run: |
pip install --upgrade pip
pip install taskipy cython toml
poetry install
shell: bash

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ post_build = 'task clear'
post_test = 'task clear'

[build-system]
requires = ['poetry_core>=1.0.0', 'setuptools>=57.4.0', 'cython', 'toml>=0.10.2']
requires = ['poetry_core>=1.0.0', 'setuptools>=57.4.0', 'cython==0.29.37', 'toml>=0.10.2']
build-backend = 'poetry.core.masonry.api'

[build.native-dependencies]
Expand Down

0 comments on commit 4cd4950

Please sign in to comment.