diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a54fdc0..6c64e11 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -15,6 +15,9 @@ updates: ignore: - dependency-name: "ipython" update-types: ["version-update:semver-major"] + groups: + development-dependencies: + dependency-type: development schedule: interval: monthly commit-message: @@ -25,6 +28,9 @@ updates: - package-ecosystem: github-actions directory: / + groups: + production-dependencies: + dependency-type: production schedule: interval: monthly commit-message: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7ab996a..4dffcfb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,16 +28,16 @@ jobs: strategy: matrix: python_version: - - "3.8.13" - - "3.9.13" - - "3.10.9" + - "3.8.18" + - "3.9.18" + - "3.10.13" steps: - name: Check Out VCS Repository - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4.1.0 - name: Set Up Python ${{ matrix.python_version }} - uses: actions/setup-python@v4.5.0 + uses: actions/setup-python@v4.7.0 with: python-version: "${{ matrix.python_version }}" @@ -45,7 +45,7 @@ jobs: run: make python-virtualenv PYTHON_VIRTUALENV_DIR=".pyenv" - name: Restoring/Saving Cache - uses: actions/cache@v3.3.1 + uses: actions/cache@v3.3.2 with: path: ".pyenv" key: py-v1-deps-${{ runner.os }}-${{ matrix.python_version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }} @@ -69,21 +69,21 @@ jobs: strategy: matrix: python_version: - - "3.8.13" - - "3.9.13" - - "3.10.9" + - "3.8.18" + - "3.9.18" + - "3.10.13" steps: - name: Check Out VCS Repository - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4.1.0 - name: Set Up Python ${{ matrix.python_version }} - uses: actions/setup-python@v4.5.0 + uses: actions/setup-python@v4.7.0 with: python-version: "${{ matrix.python_version }}" - name: Restoring/Saving Cache - uses: actions/cache@v3.3.1 + uses: actions/cache@v3.3.2 with: path: ".pyenv" key: py-v1-deps-${{ runner.os }}-${{ matrix.python_version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }} @@ -121,7 +121,7 @@ jobs: make test-coverage-report - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3.1.2 + uses: codecov/codecov-action@v3.1.4 with: directory: ./test_reports/coverage/ fail_ci_if_error: true @@ -135,7 +135,7 @@ jobs: - name: Store Artifacts if: ${{ always() }} - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v3.1.3 with: name: test_reports_${{ matrix.python_version }} path: test_reports/ diff --git a/.github/workflows/dependency-review.yaml b/.github/workflows/dependency-review.yaml index 2c3c169..bff7184 100644 --- a/.github/workflows/dependency-review.yaml +++ b/.github/workflows/dependency-review.yaml @@ -17,9 +17,9 @@ jobs: steps: - name: Check Out VCS Repository - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4.1.0 - name: Dependency Review - uses: actions/dependency-review-action@v3.0.4 + uses: actions/dependency-review-action@v3.1.0 with: fail-on-severity: critical diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6d61f8d..3f69ffd 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -27,16 +27,16 @@ jobs: steps: - name: Check Out VCS Repository - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4.1.0 - name: Set Up Python id: set_up_python - uses: actions/setup-python@v4.5.0 + uses: actions/setup-python@v4.7.0 with: - python-version: "3.10.9" + python-version: "3.10.13" - name: Restoring/Saving Cache - uses: actions/cache@v3.3.1 + uses: actions/cache@v3.3.2 with: path: ".pyenv" key: py-v1-deps-${{ runner.os }}-${{ steps.set_up_python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4547017..676c1ef 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -35,19 +35,19 @@ jobs: steps: - name: Check Out VCS Repository - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4.1.0 - name: Set Up Python id: set_up_python - uses: actions/setup-python@v4.5.0 + uses: actions/setup-python@v4.7.0 with: - python-version: "3.10.9" + python-version: "3.10.13" - name: Create Python Virtual Environment run: make python-virtualenv PYTHON_VIRTUALENV_DIR=".pyenv" - name: Restoring/Saving Cache - uses: actions/cache@v3.3.1 + uses: actions/cache@v3.3.2 with: path: ".pyenv" key: py-v1-deps-${{ runner.os }}-${{ steps.set_up_python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }} @@ -68,7 +68,7 @@ jobs: make dist - name: Store Artifacts - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v3.1.3 with: name: release path: ${{ env.ARTIFACTS_PATH }}/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 132324c..ff2fd0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 1.3.2 (2023-09-26) + +- (PR #101, 2023-07-13) chore: Bump codecov/codecov-action from 3.1.2 to 3.1.4 +- (PR #110, 2023-07-13) chore: Bump actions/checkout from 3.5.2 to 3.5.3 +- (PR #111, 2023-07-13) chore: Bump actions/setup-python from 4.5.0 to 4.7.0 +- (PR #100, 2023-07-13) chore: Bump actions/dependency-review-action from 3.0.4 to 3.0.6 +- (PR #115, 2023-07-20) chore(deps): Update `pip` from 22.1.2 to 23.1.2 +- (PR #113, 2023-07-20) chore(deps): Update `pip-tools` from 6.8.0 to 6.14.0 +- (PR #107, 2023-07-20) chore: Bump mypy from 1.1.1 to 1.4.1 +- (PR #122, 2023-09-04) chore: Bump actions/dependency-review-action from 3.0.6 to 3.0.8 +- (PR #125, 2023-09-14) Update each Python Version for GitHub Actions +- (PR #126, 2023-09-14) Update pip-tools from 6.14.0 to 7.3.0 +- (PR #129, 2023-09-14) chore(deps): Add argument `--allow-unsafe` to `pip-compile` +- (PR #131, 2023-09-26) chore: Bump actions/checkout from 3.5.3 to 4.1.0 +- (PR #132, 2023-09-26) Add dependency groups to Dependabot configuration +- (PR #133, 2023-09-26) chore: Bump the production-dependencies group with 3 updates +- (PR #134, 2023-09-26) chore: Bump the development-dependencies group with 6 updates +- (PR #130, 2023-09-26) chore: Bump cryptography from 39.0.1 to 41.0.4 +- (PR #97, 2023-09-26) chore: Bump requests from 2.28.1 to 2.31.0 +- (PR #114, 2023-09-26) chore: Bump pygments from 2.12.0 to 2.15.0 +- (PR #117, 2023-09-26) chore: Bump certifi from 2022.12.7 to 2023.7.22 + ## 1.3.1 (2023-06-09) - (PR #68, 2023-03-13) chore: bump mypy from 0.991 to 1.0.1 diff --git a/Makefile b/Makefile index d0b71bb..395b224 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,11 @@ SHELL = /usr/bin/env bash -e -o pipefail # Python PYTHON = python3 PYTHON_PIP = $(PYTHON) -m pip -PYTHON_PIP_VERSION_SPECIFIER = ~=22.1.2 +PYTHON_PIP_VERSION_SPECIFIER = ==23.1.2 PYTHON_SETUPTOOLS_VERSION_SPECIFIER = ~=59.4.0 PYTHON_WHEEL_VERSION_SPECIFIER = ~=0.37.1 PYTHON_VIRTUALENV_DIR = lib-pe-sunat.pyenv -PYTHON_PIP_TOOLS_VERSION_SPECIFIER = ~=6.8.0 +PYTHON_PIP_TOOLS_VERSION_SPECIFIER = ==7.3.0 PYTHON_PIP_TOOLS_SRC_FILES = requirements.in requirements-dev.in # Black diff --git a/cordada/pe_sunat/__init__.py b/cordada/pe_sunat/__init__.py index a258e75..44c0d5c 100644 --- a/cordada/pe_sunat/__init__.py +++ b/cordada/pe_sunat/__init__.py @@ -2,4 +2,4 @@ PE-SUNAT Python Library """ -__version__ = '1.3.1' +__version__ = '1.3.2' diff --git a/make/python.mk b/make/python.mk index 360aeda..c0ef107 100644 --- a/make/python.mk +++ b/make/python.mk @@ -4,7 +4,7 @@ PYTHON_VIRTUALENV_DIR ?= pyenv PYTHON_PIP_VERSION_SPECIFIER ?= >=21.1.2 PYTHON_SETUPTOOLS_VERSION_SPECIFIER ?= >=57.0.0 PYTHON_WHEEL_VERSION_SPECIFIER ?= >=0.36.2 -PYTHON_PIP_TOOLS_VERSION_SPECIFIER ?= >=6.1.0 +PYTHON_PIP_TOOLS_VERSION_SPECIFIER ?= >=7.0.0 PYTHON_PIP_TOOLS_SRC_FILES ?= requirements.in .PHONY: python-pip-install @@ -24,7 +24,7 @@ python-deps-compile: $(patsubst %,python-deps-compile-%,$(PYTHON_PIP_TOOLS_SRC_F python-deps-compile: ## Compile Python dependency manifests python-deps-compile-%: - pip-compile --strip-extras --quiet "$(*)" + pip-compile --allow-unsafe --strip-extras --quiet "$(*)" .PHONY: python-deps-sync-check python-deps-sync-check: $(patsubst %,python-deps-sync-check-%,$(PYTHON_PIP_TOOLS_SRC_FILES)) diff --git a/requirements-dev.in b/requirements-dev.in index 17fa856..0a982f1 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -4,13 +4,14 @@ -c requirements.txt -black==23.3.0 -coverage==7.2.5 +black==23.9.1 +coverage==7.3.1 flake8-formatter-junit-xml==0.0.6 -flake8==6.0.0 -ipython==8.10.0 +flake8==6.1.0 +ipython==8.12.2 isort==5.12.0 -mypy==1.1.1 -tox==4.5.1 +mypy==1.5.1 +pip-tools==7.3.0 +tox==4.11.3 twine==4.0.2 unittest-xml-reporting==3.2.0 diff --git a/requirements-dev.txt b/requirements-dev.txt index 583ce8b..4efa1a9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,50 +1,54 @@ # -# This file is autogenerated by pip-compile with python 3.8 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.8 +# by the following command: # -# pip-compile --strip-extras requirements-dev.in +# pip-compile --allow-unsafe --strip-extras requirements-dev.in # asttokens==2.2.1 # via stack-data backcall==0.2.0 # via ipython -black==23.3.0 +black==23.9.1 # via -r requirements-dev.in bleach==5.0.1 # via readme-renderer -cachetools==5.3.0 +build==1.0.3 + # via pip-tools +cachetools==5.3.1 # via tox -certifi==2022.12.7 +certifi==2023.7.22 # via requests cffi==1.15.1 # via cryptography -chardet==5.1.0 +chardet==5.2.0 # via tox charset-normalizer==2.1.0 # via requests click==8.1.3 - # via black + # via + # black + # pip-tools colorama==0.4.6 # via tox commonmark==0.9.1 # via rich -coverage==7.2.5 +coverage==7.3.1 # via -r requirements-dev.in -cryptography==39.0.1 +cryptography==41.0.4 # via secretstorage decorator==5.1.1 # via ipython -distlib==0.3.6 +distlib==0.3.7 # via virtualenv docutils==0.19 # via readme-renderer executing==1.2.0 # via stack-data -filelock==3.12.0 +filelock==3.12.4 # via # tox # virtualenv -flake8==6.0.0 +flake8==6.1.0 # via # -r requirements-dev.in # flake8-formatter-junit-xml @@ -54,9 +58,10 @@ idna==3.3 # via requests importlib-metadata==4.12.0 # via + # build # keyring # twine -ipython==8.10.0 +ipython==8.12.2 # via -r requirements-dev.in isort==5.12.0 # via -r requirements-dev.in @@ -76,7 +81,7 @@ matplotlib-inline==0.1.3 # via ipython mccabe==0.7.0 # via flake8 -mypy==1.1.1 +mypy==1.5.1 # via -r requirements-dev.in mypy-extensions==1.0.0 # via @@ -85,6 +90,7 @@ mypy-extensions==1.0.0 packaging==23.1 # via # black + # build # pyproject-api # tox parso==0.8.3 @@ -95,14 +101,16 @@ pexpect==4.8.0 # via ipython pickleshare==0.7.5 # via ipython +pip-tools==7.3.0 + # via -r requirements-dev.in pkginfo==1.8.3 # via twine -platformdirs==3.5.0 +platformdirs==3.10.0 # via # black # tox # virtualenv -pluggy==1.0.0 +pluggy==1.3.0 # via tox prompt-toolkit==3.0.30 # via ipython @@ -110,22 +118,24 @@ ptyprocess==0.7.0 # via pexpect pure-eval==0.2.2 # via stack-data -pycodestyle==2.10.0 +pycodestyle==2.11.0 # via flake8 pycparser==2.21 # via cffi -pyflakes==3.0.1 +pyflakes==3.1.0 # via flake8 -pygments==2.12.0 +pygments==2.15.0 # via # ipython # readme-renderer # rich -pyproject-api==1.5.1 +pyproject-api==1.6.1 # via tox +pyproject-hooks==1.0.0 + # via build readme-renderer==35.0 # via twine -requests==2.28.1 +requests==2.31.0 # via # requests-toolbelt # twine @@ -147,10 +157,13 @@ stack-data==0.6.2 tomli==2.0.1 # via # black + # build # mypy + # pip-tools # pyproject-api + # pyproject-hooks # tox -tox==4.5.1 +tox==4.11.3 # via -r requirements-dev.in traitlets==5.3.0 # via @@ -161,6 +174,7 @@ twine==4.0.2 typing-extensions==4.3.0 # via # black + # ipython # mypy # rich unittest-xml-reporting==3.2.0 @@ -169,11 +183,19 @@ urllib3==1.26.11 # via # requests # twine -virtualenv==20.23.0 +virtualenv==20.24.5 # via tox wcwidth==0.2.5 # via prompt-toolkit webencodings==0.5.1 # via bleach +wheel==0.41.2 + # via pip-tools zipp==3.8.1 # via importlib-metadata + +# The following packages are considered to be unsafe in a requirements file: +pip==23.2.1 + # via pip-tools +setuptools==68.2.2 + # via pip-tools diff --git a/requirements.txt b/requirements.txt index 739a6f4..d7a56b4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # -# This file is autogenerated by pip-compile with python 3.8 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.8 +# by the following command: # -# pip-compile --strip-extras requirements.in +# pip-compile --allow-unsafe --strip-extras requirements.in #