diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index c1ea6e5..a292f69 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -15,11 +15,11 @@ jobs: PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} steps: - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@master - name: Setup Python - uses: actions/setup-python@v2.3.1 + uses: actions/setup-python@v4.7.0 with: - python-version: 3.8 + python-version: 3.10 - name: Install and run pip-licenses run: | pip config set global.extra-index-url https://$PYPI_USERNAME:$PYPI_PASSWORD@pypi.cuenca.io:8081 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0cda24d..948684e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ name: release -on: push +on: + release: + types: [published] jobs: publish-pypi: @@ -8,15 +10,14 @@ jobs: steps: - uses: actions/checkout@master - name: Set up Python 3.8 - uses: actions/setup-python@v2.2.1 + uses: actions/setup-python@v4.7.0 with: - python-version: 3.8 + python-version: 3.10 - name: Install dependencies run: pip install -qU setuptools wheel twine - name: Generating distribution archives run: python setup.py sdist bdist_wheel - name: Publish distribution 📦 to PyPI - if: startsWith(github.event.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: user: __token__ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ff81db..c86ba97 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,14 +1,14 @@ name: test -on: push +on: [push, pull_request] jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2.2.1 + uses: actions/setup-python@v4.7.0 with: python-version: 3.8 - name: Install dependencies @@ -20,11 +20,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8] + python-version: ['3.8', '3.9', '3.10'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2.2.1 + uses: actions/setup-python@v4.7.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -37,7 +37,7 @@ jobs: steps: - uses: actions/checkout@master - name: Setup Python - uses: actions/setup-python@v2.2.1 + uses: actions/setup-python@v4.7.0 with: python-version: 3.8 - name: Install dependencies @@ -45,10 +45,9 @@ jobs: - name: Generate coverage report run: pytest --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2.1.0 + uses: codecov/codecov-action@v3.1.4 with: file: ./coverage.xml flags: unittests name: codecov-umbrella fail_ci_if_error: true - diff --git a/Makefile b/Makefile index d5f48fa..f54c47d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL := bash PATH := ./venv/bin:${PATH} -PYTHON = python3.7 +PYTHON = python3.10 PROJECT = clabe isort = isort $(PROJECT) tests setup.py black = black -S -l 79 --target-version py38 $(PROJECT) tests setup.py diff --git a/clabe/version.py b/clabe/version.py index b937dee..afced14 100644 --- a/clabe/version.py +++ b/clabe/version.py @@ -1 +1 @@ -__version__ = '1.2.13' +__version__ = '2.0.0' diff --git a/requirements.txt b/requirements.txt index 62c77cd..a3e7f57 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -pydantic==1.9.0 +pydantic==2.7.2 diff --git a/setup.py b/setup.py index 80d79db..c754762 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ packages=setuptools.find_packages(), include_package_data=True, package_data=dict(clabe=['py.typed']), - install_requires=['pydantic>=1.4,<2.0'], + install_requires=['pydantic>=2.0,<3.0'], classifiers=[ 'Programming Language :: Python :: 3', 'License :: OSI Approved :: MIT License',