Skip to content

Commit cf57acf

Browse files
authored
[EN-6550] [PythonAPI] Change the installation instructions in the README.md (#46)
1 parent 54b6324 commit cf57acf

File tree

6 files changed

+175
-104
lines changed

6 files changed

+175
-104
lines changed

.github/workflows/publishpackage.yml

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,41 @@ jobs:
1111
build:
1212
strategy:
1313
matrix:
14-
os: [ubuntu-18.04, windows-latest, macos-latest]
15-
python-version: [3.6, 3.7, 3.8, 3.9]
16-
14+
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest]
15+
python-version: [3.7, 3.8, 3.9]
1716
runs-on: ${{ matrix.os }}
1817

1918
steps:
20-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2120
with:
2221
submodules: true
22+
2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v1
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: ${{ matrix.python-version }}
27-
- name: Install poetry
28-
run: |
29-
pip install poetry
30-
shell: bash
27+
28+
- name: Install Poetry
29+
uses: abatilo/actions-poetry@v2
30+
3131
- name: Set poetry env
3232
run: |
33-
poetry config virtualenvs.create false
34-
poetry install --no-root
33+
pip install --upgrade pip
34+
pip install taskipy cython toml
35+
poetry install
3536
shell: bash
37+
3638
- name: Create tarball
3739
if: matrix.python-version == 3.7
3840
run: |
39-
task build -f sdist
41+
poetry run build -f sdist
4042
shell: bash
43+
4144
- name: Create wheel
4245
run: |
43-
task build -f wheel
46+
poetry run build -f wheel
4447
shell: bash
48+
4549
- name: Upload artifacts
4650
if: success()
4751
uses: actions/upload-artifact@v2
@@ -51,28 +55,31 @@ jobs:
5155

5256

5357
publish:
54-
runs-on: ubuntu-18.04
58+
runs-on: ubuntu-20.04
5559
needs: build
5660
steps:
57-
- uses: actions/checkout@v2
58-
- name: Set up Python 3.7
59-
uses: actions/setup-python@v1
61+
- uses: actions/checkout@v3
62+
63+
- name: Set up Python
64+
uses: actions/setup-python@v4
6065
with:
6166
python-version: 3.7
62-
- name: Install poetry
63-
run: |
64-
pip install poetry
65-
shell: bash
67+
68+
- name: Install Poetry
69+
uses: abatilo/actions-poetry@v2
70+
6671
- name: Clear dist folder
6772
run: |
6873
rm -rf dist/
74+
6975
- name: Download
7076
uses: actions/download-artifact@v2
7177
with:
7278
name: artifacts
7379
path: dist/
80+
7481
- name: Publish to PyPI
7582
if: success()
7683
run: |
7784
poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}
78-
shell: bash
85+
shell: bash

.github/workflows/test_on_pr.yml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,68 +9,73 @@ jobs:
99
installation:
1010
strategy:
1111
matrix:
12-
os: [ubuntu-18.04, windows-latest, macos-latest]
13-
python-version: [3.6, 3.7, 3.8, 3.9]
14-
12+
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest]
13+
python-version: [3.7, 3.8, 3.9]
1514
runs-on: ${{ matrix.os }}
1615

1716
steps:
18-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1918
with:
2019
submodules: true
20+
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v1
22+
uses: actions/setup-python@v4
2323
with:
2424
python-version: ${{ matrix.python-version }}
25-
- name: Install poetry
26-
run: |
27-
pip install poetry
28-
shell: bash
25+
26+
- name: Install Poetry
27+
uses: abatilo/actions-poetry@v2
28+
2929
- name: Set poetry env
3030
run: |
31-
poetry config virtualenvs.create false
32-
poetry install --no-root --no-dev
33-
pip install taskipy cython
31+
pip install --upgrade pip
32+
pip install taskipy cython toml
33+
poetry install --only main
3434
task build -f sdist
3535
pip uninstall --yes taskipy cython
3636
shell: bash
37+
3738
- name: Install package artifact
3839
run: |
3940
pip install dist/dxfeed*
4041
pip uninstall --yes dxfeed
4142
shell: bash
43+
4244
tests:
4345
needs: installation
4446
strategy:
4547
matrix:
46-
os: [ubuntu-18.04, windows-latest, macos-latest]
47-
python-version: [3.6, 3.7, 3.8, 3.9]
48-
48+
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest]
49+
python-version: [3.7, 3.8, 3.9]
4950
runs-on: ${{ matrix.os }}
5051

5152
steps:
52-
- uses: actions/checkout@v2
53+
- uses: actions/checkout@v3
5354
with:
5455
submodules: true
56+
5557
- name: Set up Python ${{ matrix.python-version }}
56-
uses: actions/setup-python@v1
58+
uses: actions/setup-python@v4
5759
with:
5860
python-version: ${{ matrix.python-version }}
59-
- name: Install poetry
60-
run: |
61-
pip install poetry
62-
shell: bash
61+
62+
- name: Install Poetry
63+
uses: abatilo/actions-poetry@v2
64+
6365
- name: Set poetry env
6466
run: |
65-
poetry config virtualenvs.create false
66-
poetry install --no-root
67+
pip install --upgrade pip
68+
pip install taskipy cython toml
69+
poetry install
6770
shell: bash
71+
6872
- name: Run tests
6973
run: |
70-
task test
74+
poetry run task test
7175
shell: bash
76+
7277
- name: Generate doc
78+
if: matrix.os == 'ubuntu-20.04' && matrix.python-version == 3.7
7379
run: |
74-
task html_docs
80+
poetry run task html_docs
7581
shell: bash
76-
if: matrix.os == 'ubuntu-18.04' && matrix.python-version == 3.7

.github/workflows/testdevelop.yml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,68 +12,73 @@ jobs:
1212
installation:
1313
strategy:
1414
matrix:
15-
os: [ubuntu-18.04, windows-latest, macos-latest]
16-
python-version: [3.6, 3.7, 3.8, 3.9]
17-
15+
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest]
16+
python-version: [3.7, 3.8, 3.9]
1817
runs-on: ${{ matrix.os }}
1918

2019
steps:
21-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2221
with:
2322
submodules: true
23+
2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v1
25+
uses: actions/setup-python@v4
2626
with:
2727
python-version: ${{ matrix.python-version }}
28-
- name: Install poetry
29-
run: |
30-
pip install poetry
31-
shell: bash
28+
29+
- name: Install Poetry
30+
uses: abatilo/actions-poetry@v2
31+
3232
- name: Set poetry env
3333
run: |
34-
poetry config virtualenvs.create false
35-
poetry install --no-root --no-dev
36-
pip install taskipy cython
34+
pip install --upgrade pip
35+
pip install taskipy cython toml
36+
poetry install --only main
3737
task build -f sdist
3838
pip uninstall --yes taskipy cython
3939
shell: bash
40+
4041
- name: Install package artifact
4142
run: |
4243
pip install dist/dxfeed*
4344
pip uninstall --yes dxfeed
4445
shell: bash
46+
4547
tests:
4648
needs: installation
4749
strategy:
4850
matrix:
49-
os: [ubuntu-18.04, windows-latest, macos-latest]
50-
python-version: [3.6, 3.7, 3.8, 3.9]
51-
51+
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest]
52+
python-version: [3.7, 3.8, 3.9]
5253
runs-on: ${{ matrix.os }}
5354

5455
steps:
55-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v3
5657
with:
5758
submodules: true
59+
5860
- name: Set up Python ${{ matrix.python-version }}
59-
uses: actions/setup-python@v1
61+
uses: actions/setup-python@v4
6062
with:
6163
python-version: ${{ matrix.python-version }}
62-
- name: Install poetry
63-
run: |
64-
pip install poetry
65-
shell: bash
64+
65+
- name: Install Poetry
66+
uses: abatilo/actions-poetry@v2
67+
6668
- name: Set poetry env
6769
run: |
68-
poetry config virtualenvs.create false
69-
poetry install --no-root
70+
pip install --upgrade pip
71+
pip install taskipy cython toml
72+
poetry install
7073
shell: bash
74+
7175
- name: Run tests
7276
run: |
73-
task test
77+
poetry run task test
7478
shell: bash
79+
7580
- name: Generate doc
81+
if: matrix.os == 'ubuntu-20.04' && matrix.python-version == 3.7
7682
run: |
77-
task html_docs
83+
poetry run task html_docs
7884
shell: bash
79-
if: matrix.os == 'ubuntu-18.04' && matrix.python-version == 3.7

.github/workflows/testpackage.yml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,68 +13,73 @@ jobs:
1313
installation:
1414
strategy:
1515
matrix:
16-
os: [ubuntu-18.04, windows-latest, macos-latest]
17-
python-version: [3.6, 3.7, 3.8, 3.9]
18-
16+
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest]
17+
python-version: [3.7, 3.8, 3.9]
1918
runs-on: ${{ matrix.os }}
2019

2120
steps:
22-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2322
with:
2423
submodules: true
24+
2525
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v1
26+
uses: actions/setup-python@v4
2727
with:
2828
python-version: ${{ matrix.python-version }}
29-
- name: Install poetry
30-
run: |
31-
pip install poetry
32-
shell: bash
29+
30+
- name: Install Poetry
31+
uses: abatilo/actions-poetry@v2
32+
3333
- name: Set poetry env
3434
run: |
35-
poetry config virtualenvs.create false
36-
poetry install --no-root --no-dev
37-
pip install taskipy cython
35+
pip install --upgrade pip
36+
pip install taskipy cython toml
37+
poetry install --only main
3838
task build -f sdist
3939
pip uninstall --yes taskipy cython
4040
shell: bash
41+
4142
- name: Install package artifact
4243
run: |
4344
pip install dist/dxfeed*
4445
pip uninstall --yes dxfeed
4546
shell: bash
47+
4648
tests:
4749
needs: installation
4850
strategy:
4951
matrix:
50-
os: [ubuntu-18.04, windows-latest, macos-latest]
51-
python-version: [3.6, 3.7, 3.8, 3.9]
52-
52+
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest]
53+
python-version: [3.7, 3.8, 3.9]
5354
runs-on: ${{ matrix.os }}
5455

5556
steps:
56-
- uses: actions/checkout@v2
57+
- uses: actions/checkout@v3
5758
with:
5859
submodules: true
60+
5961
- name: Set up Python ${{ matrix.python-version }}
60-
uses: actions/setup-python@v1
62+
uses: actions/setup-python@v4
6163
with:
6264
python-version: ${{ matrix.python-version }}
63-
- name: Install poetry
64-
run: |
65-
pip install poetry
66-
shell: bash
65+
66+
- name: Install Poetry
67+
uses: abatilo/actions-poetry@v2
68+
6769
- name: Set poetry env
6870
run: |
69-
poetry config virtualenvs.create false
70-
poetry install --no-root
71+
pip install --upgrade pip
72+
pip install taskipy cython toml
73+
poetry install
7174
shell: bash
75+
7276
- name: Run tests
7377
run: |
74-
task test
78+
poetry run task test
7579
shell: bash
80+
7681
- name: Generate doc
82+
if: matrix.os == 'ubuntu-20.04' && matrix.python-version == 3.7
7783
run: |
78-
task html_docs
84+
poetry run task html_docs
7985
shell: bash
80-
if: matrix.os == 'ubuntu-18.04' && matrix.python-version == 3.7

0 commit comments

Comments
 (0)