Skip to content

Commit 4cd4950

Browse files
authored
[EN-8798] [PythonAPI] Lock the Сython version (#49)
1 parent 8eca5c5 commit 4cd4950

File tree

5 files changed

+25
-35
lines changed

5 files changed

+25
-35
lines changed

.github/workflows/publishpackage.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
2121
submodules: true
2222

2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

@@ -31,19 +31,18 @@ jobs:
3131
- name: Set poetry env
3232
run: |
3333
pip install --upgrade pip
34-
pip install taskipy cython toml
3534
poetry install
3635
shell: bash
3736

3837
- name: Create tarball
3938
if: matrix.python-version == 3.7
4039
run: |
41-
poetry run build -f sdist
40+
poetry build -f sdist
4241
shell: bash
4342

4443
- name: Create wheel
4544
run: |
46-
poetry run build -f wheel
45+
poetry build -f wheel
4746
shell: bash
4847

4948
- name: Upload artifacts
@@ -58,10 +57,10 @@ jobs:
5857
runs-on: ubuntu-20.04
5958
needs: build
6059
steps:
61-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
6261

6362
- name: Set up Python
64-
uses: actions/setup-python@v4
63+
uses: actions/setup-python@v5
6564
with:
6665
python-version: 3.7
6766

.github/workflows/test_on_pr.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
with:
1919
submodules: true
2020

2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525

@@ -29,10 +29,8 @@ jobs:
2929
- name: Set poetry env
3030
run: |
3131
pip install --upgrade pip
32-
pip install taskipy cython toml
33-
poetry install --only main
34-
task build -f sdist
35-
pip uninstall --yes taskipy cython
32+
poetry install
33+
poetry build -f sdist
3634
shell: bash
3735

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

5250
steps:
53-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v4
5452
with:
5553
submodules: true
5654

5755
- name: Set up Python ${{ matrix.python-version }}
58-
uses: actions/setup-python@v4
56+
uses: actions/setup-python@v5
5957
with:
6058
python-version: ${{ matrix.python-version }}
6159

@@ -65,7 +63,6 @@ jobs:
6563
- name: Set poetry env
6664
run: |
6765
pip install --upgrade pip
68-
pip install taskipy cython toml
6966
poetry install
7067
shell: bash
7168

.github/workflows/testdevelop.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
runs-on: ${{ matrix.os }}
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
with:
2222
submodules: true
2323

2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

@@ -32,10 +32,8 @@ jobs:
3232
- name: Set poetry env
3333
run: |
3434
pip install --upgrade pip
35-
pip install taskipy cython toml
36-
poetry install --only main
37-
task build -f sdist
38-
pip uninstall --yes taskipy cython
35+
poetry install
36+
poetry build -f sdist
3937
shell: bash
4038

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

5553
steps:
56-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v4
5755
with:
5856
submodules: true
5957

6058
- name: Set up Python ${{ matrix.python-version }}
61-
uses: actions/setup-python@v4
59+
uses: actions/setup-python@v5
6260
with:
6361
python-version: ${{ matrix.python-version }}
6462

@@ -68,7 +66,6 @@ jobs:
6866
- name: Set poetry env
6967
run: |
7068
pip install --upgrade pip
71-
pip install taskipy cython toml
7269
poetry install
7370
shell: bash
7471

.github/workflows/testpackage.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
with:
2323
submodules: true
2424

2525
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929

@@ -33,10 +33,8 @@ jobs:
3333
- name: Set poetry env
3434
run: |
3535
pip install --upgrade pip
36-
pip install taskipy cython toml
37-
poetry install --only main
38-
task build -f sdist
39-
pip uninstall --yes taskipy cython
36+
poetry install
37+
poetry build -f sdist
4038
shell: bash
4139

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

5654
steps:
57-
- uses: actions/checkout@v3
55+
- uses: actions/checkout@v4
5856
with:
5957
submodules: true
6058

6159
- name: Set up Python ${{ matrix.python-version }}
62-
uses: actions/setup-python@v4
60+
uses: actions/setup-python@v5
6361
with:
6462
python-version: ${{ matrix.python-version }}
6563

@@ -69,7 +67,6 @@ jobs:
6967
- name: Set poetry env
7068
run: |
7169
pip install --upgrade pip
72-
pip install taskipy cython toml
7370
poetry install
7471
shell: bash
7572

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ post_build = 'task clear'
6161
post_test = 'task clear'
6262

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

6767
[build.native-dependencies]

0 commit comments

Comments
 (0)