Skip to content

Commit 01c71f0

Browse files
Prerak SinghPrerak Singh
authored andcommitted
upgraded python versions
1 parent a583e0c commit 01c71f0

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,17 @@ on:
77
branches: [main]
88

99
jobs:
10-
test-ubuntu-py38:
11-
runs-on: ${{matrix.os}}
10+
test-ubuntu-py39-coverage:
11+
runs-on: ubuntu-latest
1212
timeout-minutes: 20
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
os: [ubuntu-latest]
17-
python-version:
18-
- "3.8"
1913

2014
steps:
2115
- uses: actions/checkout@v3
2216

23-
- name: Set up Python ${{ matrix.python-version }}
17+
- name: Set up Python 3.9
2418
uses: actions/setup-python@v4
2519
with:
26-
python-version: ${{ matrix.python-version }}
20+
python-version: "3.9"
2721

2822
- name: Upgrade pip version
2923
run: |
@@ -33,6 +27,7 @@ jobs:
3327
run: |
3428
python -m pip install -r requirements.txt
3529
python -m pip install -r docs/requirements.txt
30+
python -m pip install spin
3631
3732
- name: Install lcov
3833
run: |
@@ -45,7 +40,7 @@ jobs:
4540
CFLAGS: "--coverage"
4641
run: |
4742
spin build -v
48-
# coverage tests
43+
4944
- name: Run tests
5045
run: |
5146
spin test -v
@@ -75,7 +70,7 @@ jobs:
7570
run: |
7671
sphinx-build -b html docs/source/ docs/build/html
7772
78-
test-ubuntu-py39-py310:
73+
test-ubuntu-py39-py310-py311:
7974
runs-on: ${{matrix.os}}
8075
timeout-minutes: 20
8176
strategy:
@@ -85,6 +80,7 @@ jobs:
8580
python-version:
8681
- "3.9"
8782
- "3.10"
83+
- "3.11"
8884

8985
steps:
9086
- uses: actions/checkout@v3
@@ -102,6 +98,7 @@ jobs:
10298
run: |
10399
python -m pip install -r requirements.txt
104100
python -m pip install -r docs/requirements.txt
101+
python -m pip install spin
105102
106103
- name: Build package
107104
env:
@@ -125,9 +122,9 @@ jobs:
125122
matrix:
126123
os: [macos-latest]
127124
python-version:
128-
- "3.8"
129125
- "3.9"
130126
- "3.10"
127+
- "3.11"
131128

132129
steps:
133130
- uses: actions/checkout@v3
@@ -145,13 +142,15 @@ jobs:
145142
run: |
146143
python -m pip install -r requirements.txt
147144
python -m pip install -r docs/requirements.txt
145+
python -m pip install spin
148146
149147
- name: Build package
150148
env:
151149
MACOSX_DEPLOYMENT_TARGET: 11.0
152150
CXXFLAGS: "-std=c++17"
153151
run: |
154152
spin build -v
153+
155154
- name: Run tests
156155
run: |
157156
spin test -v
@@ -168,7 +167,9 @@ jobs:
168167
matrix:
169168
os: [windows-latest]
170169
python-version:
171-
- "3.8"
170+
- "3.9"
171+
- "3.10"
172+
- "3.11"
172173

173174
steps:
174175
- uses: actions/checkout@v3
@@ -184,7 +185,7 @@ jobs:
184185
update-conda: true
185186
python-version: ${{ matrix.python-version }}
186187
conda-channels: anaconda, conda-forge
187-
# - run: conda --version # This fails due to unknown reasons
188+
188189
- run: which python
189190

190191
- name: Upgrade pip version
@@ -195,6 +196,7 @@ jobs:
195196
run: |
196197
python -m pip install -r requirements.txt
197198
python -m pip install -r docs/requirements.txt
199+
python -m pip install spin
198200
199201
- name: Build package
200202
env:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "pydatastructs"
77
version = "1.0.1.dev0"
88
description = "Data structures and algorithms implemented using Python and C++"
99
readme = "README.md"
10-
requires-python = ">=3.8"
10+
requires-python = ">=3.9"
1111

1212
[tool.spin]
1313
package = "pydatastructs"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"Topic :: Scientific/Engineering :: Information Analysis",
3535
"Topic :: Software Development :: Libraries"
3636
],
37-
python_requires='>=3.5',
37+
python_requires='>=3.9',
3838
ext_modules=extensions
3939
)

0 commit comments

Comments
 (0)