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