Skip to content

Commit 42165c1

Browse files
authored
python 3.10 adjustments (#11)
* dependencies + ci * github actions python version fix
1 parent 75b2a60 commit 42165c1

File tree

4 files changed

+59
-59
lines changed

4 files changed

+59
-59
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,40 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16-
python-version: [3.7, 3.8, 3.9]
16+
python-version: [3.7, 3.8, 3.9, "3.10"]
1717
platform: [ubuntu-latest, macos-latest, windows-latest]
1818

1919
runs-on: ${{ matrix.platform }}
2020
steps:
21-
- uses: actions/checkout@v2
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v1
24-
with:
25-
python-version: ${{ matrix.python-version }}
26-
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install -r requirements.txt
31-
32-
- name: Lint with flake8
33-
run: |
34-
pip install flake8
35-
# stop the build if there are Python syntax errors or undefined names
36-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37-
# exit-zero treats all errors as warnings.
38-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=90 --statistics
39-
40-
- name: Test with pytest and generate coverage report
41-
run: |
42-
pip install pytest
43-
pytest
44-
45-
- name: Codecov
46-
run: |
47-
pip install coverage
48-
coverage run -m unittest discover
49-
coverage report
50-
51-
- name: Upload coverage to Codecov
52-
uses: codecov/codecov-action@v1
21+
- uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v1
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install -r requirements.txt
31+
32+
- name: Lint with flake8
33+
run: |
34+
pip install flake8
35+
# stop the build if there are Python syntax errors or undefined names
36+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37+
# exit-zero treats all errors as warnings.
38+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=90 --statistics
39+
40+
- name: Test with pytest and generate coverage report
41+
run: |
42+
pip install pytest
43+
pytest
44+
45+
- name: Codecov
46+
run: |
47+
pip install coverage
48+
coverage run -m unittest discover
49+
coverage report
50+
51+
- name: Upload coverage to Codecov
52+
uses: codecov/codecov-action@v1

.github/workflows/pythonpublish.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,29 @@
44
name: Build and publish 🐍 package to PyPI
55

66
on:
7-
push:
8-
tags:
9-
- "v*"
7+
push:
8+
tags:
9+
- "v*"
1010

1111
jobs:
1212
deploy:
13-
1413
runs-on: ubuntu-latest
1514

1615
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up latest Python Version
19-
uses: actions/setup-python@v1
20-
with:
21-
python-version: '3.x'
22-
- name: Install dependencies (incl. packages and setuptools ...)
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install setuptools wheel twine
26-
pip install -r requirements.txt
27-
- name: Build and publish 📦 to PyPI
28-
env:
29-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
30-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
31-
run: |
32-
python setup.py sdist bdist_wheel
33-
twine upload dist/*
16+
- uses: actions/checkout@v2
17+
- name: Set up latest Python Version
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: "3.x"
21+
- name: Install dependencies (incl. packages and setuptools ...)
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
pip install -r requirements.txt
26+
- name: Build and publish 📦 to PyPI
27+
env:
28+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
29+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
30+
run: |
31+
python setup.py sdist bdist_wheel
32+
twine upload dist/*

klib/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.0"
1+
__version__ = "0.2.1"

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121
"Programming Language :: Python :: 3.7",
2222
"Programming Language :: Python :: 3.8",
2323
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
2425
],
2526
install_requires=[
2627
"matplotlib >= 3.0.3",
27-
"numpy >= 1.15.4",
28-
"pandas >= 1.1",
28+
"numpy >= 1.16.3",
29+
"pandas >= 1.1.2",
2930
"seaborn >= 0.11.1",
30-
"scikit-learn >= 0.23",
31-
"scipy >= 1.0.0",
31+
"scikit-learn >= 0.23.1",
32+
"scipy >= 1.1.0",
3233
],
3334
python_requires=">=3.7",
3435
)

0 commit comments

Comments
 (0)