Update dependencies and GitHub Workflows
This commit is contained in:
parent
bfaae20e81
commit
db7bf977a1
|
@ -10,25 +10,23 @@ jobs:
|
||||||
name: Tagged Release
|
name: Tagged Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.11.x'
|
python-version: '3.11.x'
|
||||||
- name: Install Poetry
|
- name: Install Poetry
|
||||||
uses: abatilo/actions-poetry@v2.1.0
|
uses: abatilo/actions-poetry@v2
|
||||||
with:
|
with:
|
||||||
poetry-version: '1.3.2'
|
poetry-version: '1.4.1'
|
||||||
- name: Configure poetry
|
- name: Configure poetry
|
||||||
run: poetry config virtualenvs.in-project true
|
run: poetry config virtualenvs.in-project true
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: poetry install --no-dev
|
||||||
python -m pip install --upgrade pip wheel
|
|
||||||
poetry install
|
|
||||||
- name: Build a wheel
|
- name: Build a wheel
|
||||||
run: poetry build
|
run: poetry build
|
||||||
- name: Upload wheel
|
- name: Upload wheel
|
||||||
uses: actions/upload-artifact@v2.2.4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Python Wheel
|
name: Python Wheel
|
||||||
path: "dist/*.whl"
|
path: "dist/*.whl"
|
||||||
|
|
|
@ -13,33 +13,30 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
|
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||||
poetry-version: [1.3.2]
|
poetry-version: [1.4.1]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
uses: abatilo/actions-poetry@v2.1.0
|
uses: abatilo/actions-poetry@v2
|
||||||
with:
|
with:
|
||||||
poetry-version: ${{ matrix.poetry-version }}
|
poetry-version: ${{ matrix.poetry-version }}
|
||||||
- name: Install project
|
- name: Install project
|
||||||
run: |
|
run: |
|
||||||
poetry install --no-dev
|
poetry install --no-dev
|
||||||
python -m pip install flake8 pytest
|
python -m pip install flake8 isort
|
||||||
|
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
# stop the build if there are Python syntax errors or undefined names
|
||||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
# - name: Test with pytest
|
- name: Check import order with isort
|
||||||
# run: |
|
run: isort --check-only --diff .
|
||||||
# pytest
|
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: poetry build
|
run: poetry build
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -28,15 +28,15 @@ classifiers = [
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.7,<3.12"
|
python = ">=3.7,<3.12"
|
||||||
protobuf = "4.21.6"
|
protobuf = "^4.24.3"
|
||||||
pymp4 = "^1.2.0"
|
pymp4 = "^1.4.0"
|
||||||
pycryptodome = "^3.15.0"
|
pycryptodome = "^3.19.0"
|
||||||
click = "^8.1.3"
|
click = "^8.1.7"
|
||||||
requests = "^2.28.1"
|
requests = "^2.31.0"
|
||||||
lxml = ">=4.9.2"
|
lxml = ">=4.9.3"
|
||||||
Unidecode = "^1.3.4"
|
Unidecode = "^1.3.6"
|
||||||
PyYAML = "^6.0"
|
PyYAML = "^6.0.1"
|
||||||
aiohttp = {version = "^3.8.1", optional = true}
|
aiohttp = {version = "^3.8.5", optional = true}
|
||||||
|
|
||||||
[tool.poetry.extras]
|
[tool.poetry.extras]
|
||||||
serve = ["aiohttp", "PyYAML"]
|
serve = ["aiohttp", "PyYAML"]
|
||||||
|
|
Loading…
Reference in New Issue