Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6b0d5bd
chore: Bump pydantic from 2.5.3 to 2.6.0
dependabot[bot] Feb 1, 2024
e0dd606
Merge pull request #593 from cordada/dependabot/pip/pydantic-2.6.0
jtrobles-cdd Feb 1, 2024
af58944
chore: Bump lxml from 4.9.2 to 4.9.4
dependabot[bot] Feb 1, 2024
6948cf5
Merge pull request #592 from cordada/dependabot/pip/lxml-4.9.4
jtrobles-cdd Feb 5, 2024
5bbdaa9
chore: Bump the development-dependencies group with 6 updates
dependabot[bot] Feb 5, 2024
c5040e9
chore: Reformat source code using 'Black'
jtrobles-cdd Feb 5, 2024
5d0febf
Merge pull request #595 from cordada/dependabot/pip/development-depen…
jtrobles-cdd Feb 5, 2024
829fe86
chore: Bump the production-dependencies group with 5 updates
dependabot[bot] Feb 5, 2024
df886c6
Merge pull request #596 from cordada/dependabot/github_actions/produc…
jtrobles-cdd Feb 5, 2024
9b7d277
chore: Bump signxml from 3.2.1 to 3.2.2
dependabot[bot] Feb 6, 2024
0acd982
Merge pull request #599 from cordada/dependabot/pip/signxml-3.2.2
jtrobles-cdd Feb 7, 2024
0494439
chore: Bump pydantic from 2.6.0 to 2.6.1
dependabot[bot] Feb 7, 2024
b121c3d
Merge pull request #598 from cordada/dependabot/pip/pydantic-2.6.1
jtrobles-cdd Feb 7, 2024
4da973d
chore: Bump pyopenssl from 23.2.0 to 24.0.0
dependabot[bot] Feb 7, 2024
ee17a25
Merge pull request #600 from cordada/dependabot/pip/pyopenssl-24.0.0
jtrobles-cdd Feb 7, 2024
796f7f1
chore: Bump pytz from 2023.3.post1 to 2024.1
dependabot[bot] Feb 7, 2024
cb17af6
Merge pull request #597 from cordada/dependabot/pip/pytz-2024.1
jtrobles-cdd Feb 7, 2024
180027d
chore: Bump marshmallow from 3.20.1 to 3.20.2
dependabot[bot] Feb 7, 2024
4e780a5
Merge pull request #601 from cordada/dependabot/pip/marshmallow-3.20.2
dependabot[bot] Feb 7, 2024
f0aacc6
chore(deps): Update `lxml` from 4.9.4 to 5.1.0
jtrobles-cdd Feb 5, 2024
8406f17
Merge pull request #602 from cordada/task/update-lxml
jtrobles-cdd Feb 7, 2024
db9cea7
chore: Update history for new version
svillegas-cdd Feb 7, 2024
46e5327
chore: Bump version from 0.26.0 to 0.27.0
svillegas-cdd Feb 7, 2024
17e32ef
Merge pull request #603 from cordada/release/v0.27.0
svillegas-cdd Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.26.0
current_version = 0.27.0
commit = True
tag = False
message = chore: Bump version from {current_version} to {new_version}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: make python-virtualenv PYTHON_VIRTUALENV_DIR="venv"

- name: Restoring/Saving Cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.0.0
with:
path: "venv"
key: py-v1-deps-${{ runner.os }}-${{ matrix.python_version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }}
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
python-version: "${{ matrix.python_version }}"

- name: Restoring/Saving Cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.0.0
with:
path: "venv"
key: py-v1-deps-${{ runner.os }}-${{ matrix.python_version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }}
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
make test-coverage-report

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3.1.4
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./test-reports/coverage/
Expand All @@ -137,7 +137,7 @@ jobs:

- name: Store Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v4.0.0
uses: actions/upload-artifact@v4.3.1
with:
name: test_reports_${{ matrix.python_version }}
path: test-reports/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
uses: actions/checkout@v4.1.1

- name: Dependency Review
uses: actions/dependency-review-action@v3.1.4
uses: actions/dependency-review-action@v4.0.0
with:
fail-on-severity: critical
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
python-version: "3.10.9"

- name: Restoring/Saving Cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.0.0
with:
path: "venv"
key: py-v1-deps-${{ runner.os }}-${{ steps.set_up_python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }}

- name: Restore Artifacts (Release)
uses: actions/download-artifact@v4.1.0
uses: actions/download-artifact@v4.1.2
with:
name: release
path: ${{ inputs.artifacts_path }}/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: make python-virtualenv PYTHON_VIRTUALENV_DIR="venv"

- name: Restoring/Saving Cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.0.0
with:
path: "venv"
key: py-v1-deps-${{ runner.os }}-${{ steps.set_up_python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }}
Expand All @@ -68,7 +68,7 @@ jobs:
make dist

- name: Store Artifacts
uses: actions/upload-artifact@v4.0.0
uses: actions/upload-artifact@v4.3.1
with:
name: release
path: ${{ env.ARTIFACTS_PATH }}/
Expand Down
13 changes: 13 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# History

## 0.27.0 (2024-02-07)

- (PR #593, 2024-02-01) chore: Bump pydantic from 2.5.3 to 2.6.0
- (PR #592, 2024-02-05) chore: Bump lxml from 4.9.2 to 4.9.4
- (PR #595, 2024-02-05) chore: Bump the development-dependencies group with 6 updates
- (PR #596, 2024-02-05) chore: Bump the production-dependencies group with 5 updates
- (PR #599, 2024-02-07) chore: Bump signxml from 3.2.1 to 3.2.2
- (PR #598, 2024-02-07) chore: Bump pydantic from 2.6.0 to 2.6.1
- (PR #600, 2024-02-07) chore: Bump pyopenssl from 23.2.0 to 24.0.0
- (PR #597, 2024-02-07) chore: Bump pytz from 2023.3.post1 to 2024.1
- (PR #601, 2024-02-07) chore: Bump marshmallow from 3.20.1 to 3.20.2
- (PR #602, 2024-02-07) chore(deps): Update `lxml` from 4.9.4 to 5.1.0

## 0.26.0 (2024-01-30)

- (PR #586, 2024-01-30) fix: Add default value for missing code `098` in SII CTE Form 29
Expand Down
12 changes: 6 additions & 6 deletions requirements-dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

-c requirements.txt

black==23.12.1
black==24.1.1
bumpversion==0.5.3
coverage==7.4.0
flake8==6.1.0
coverage==7.4.1
flake8==7.0.0
isort==5.13.2
mypy==1.8.0
pip-tools==7.3.0
tox==4.11.4
twine==4.0.2
types-jsonschema==4.20.0.0
types-pyOpenSSL==23.3.0.0
types-pytz==2023.3.1.1
types-jsonschema==4.21.0.20240118
types-pyOpenSSL==24.0.0.20240130
types-pytz==2024.1.0.20240203
wheel==0.42.0
14 changes: 7 additions & 7 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ attrs==23.1.0
# via
# -c requirements.txt
# referencing
black==23.12.1
black==24.1.1
# via -r requirements-dev.in
bleach==5.0.1
# via readme-renderer
Expand Down Expand Up @@ -36,7 +36,7 @@ click==8.0.3
# pip-tools
colorama==0.4.6
# via tox
coverage==7.4.0
coverage==7.4.1
# via -r requirements-dev.in
cryptography==41.0.7
# via
Expand All @@ -51,7 +51,7 @@ filelock==3.12.4
# via
# tox
# virtualenv
flake8==6.1.0
flake8==7.0.0
# via -r requirements-dev.in
idna==2.10
# via requests
Expand Down Expand Up @@ -106,7 +106,7 @@ pycparser==2.20
# via
# -c requirements.txt
# cffi
pyflakes==3.1.0
pyflakes==3.2.0
# via flake8
pygments==2.15.0
# via
Expand Down Expand Up @@ -153,11 +153,11 @@ tox==4.11.4
# via -r requirements-dev.in
twine==4.0.2
# via -r requirements-dev.in
types-jsonschema==4.20.0.0
types-jsonschema==4.21.0.20240118
# via -r requirements-dev.in
types-pyopenssl==23.3.0.0
types-pyopenssl==24.0.0.20240130
# via -r requirements-dev.in
types-pytz==2023.3.1.1
types-pytz==2024.1.0.20240203
# via -r requirements-dev.in
typing-extensions==4.7.1
# via
Expand Down
12 changes: 6 additions & 6 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Django>=2.2.24
djangorestframework>=3.10.3,<3.15
importlib-metadata==6.1.0
jsonschema==4.21.1
lxml==4.9.2
marshmallow==3.20.1
pydantic==2.5.3
pyOpenSSL==23.2.0
pytz==2023.3.post1
signxml==3.2.1
lxml==5.1.0
marshmallow==3.20.2
pydantic==2.6.1
pyOpenSSL==24.0.0
pytz==2024.1
signxml==3.2.2
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@ jsonschema==4.21.1
# via -r requirements.in
jsonschema-specifications==2023.7.1
# via jsonschema
lxml==4.9.2
lxml==5.1.0
# via
# -r requirements.in
# signxml
marshmallow==3.20.1
marshmallow==3.20.2
# via -r requirements.in
packaging==23.1
# via marshmallow
pkgutil-resolve-name==1.3.10
# via jsonschema
pycparser==2.20
# via cffi
pydantic==2.5.3
pydantic==2.6.1
# via -r requirements.in
pydantic-core==2.14.6
pydantic-core==2.16.2
# via pydantic
pyopenssl==23.2.0
pyopenssl==24.0.0
# via
# -r requirements.in
# signxml
pytz==2023.3.post1
pytz==2024.1
# via
# -r requirements.in
# django
Expand All @@ -72,7 +72,7 @@ rpds-py==0.10.6
# via
# jsonschema
# referencing
signxml==3.2.1
signxml==3.2.2
# via -r requirements.in
sqlparse==0.4.4
# via django
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_version(*file_paths: str) -> str:
'cryptography>=38.0.0',
'defusedxml>=0.6.0,<1',
'jsonschema>=3.1.1',
'lxml>=4.6.5,<5',
'lxml>=4.6.5,<6',
'marshmallow>=3,<4',
'pydantic>=2.3.0,!=1.7.*,!=1.8.*,!=1.9.*',
'pyOpenSSL>=22.0.0',
Expand Down
3 changes: 1 addition & 2 deletions src/cl_sii/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

"""


__version__ = '0.26.0'
__version__ = '0.27.0'
2 changes: 1 addition & 1 deletion src/cl_sii/base/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
================

"""

import enum

import pytz
Expand All @@ -17,7 +18,6 @@

@enum.unique
class TipoDocumento(enum.IntEnum):

"""
Enum of "Tipo de Documento".

Expand Down
1 change: 0 additions & 1 deletion src/cl_sii/contribuyente/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

"""


# TODO: RAZON_SOCIAL_LONG_REGEX = re.compile(r'^...$')

RAZON_SOCIAL_LONG_MAX_LENGTH = 100
Expand Down
3 changes: 1 addition & 2 deletions src/cl_sii/dte/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
https://github.com/fyntex/lib-cl-sii-python/blob/f57a326/cl_sii/data/ref/factura_electronica/schemas-xml/

"""

import enum
from datetime import date
from typing import FrozenSet
Expand Down Expand Up @@ -87,7 +88,6 @@

@enum.unique
class TipoDte(enum.IntEnum):

"""
Enum of "Tipo de DTE".

Expand Down Expand Up @@ -351,7 +351,6 @@ def receptor_is_vendedor(self) -> bool:

@enum.unique
class CodigoReferencia(enum.IntEnum):

"""
Enum of "Código de referencia".

Expand Down
6 changes: 1 addition & 5 deletions src/cl_sii/dte/data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
It *usually* corresponds to the DTE's "receptor", but not always.

"""

from __future__ import annotations

import dataclasses
Expand Down Expand Up @@ -105,7 +106,6 @@ def validate_non_empty_bytes(value: bytes) -> None:
),
)
class DteNaturalKey:

"""
Natural key of a DTE.

Expand Down Expand Up @@ -176,7 +176,6 @@ def validate_folio(cls, v: object) -> object:
),
)
class DteDataL0(DteNaturalKey):

"""
DTE data level 0.

Expand Down Expand Up @@ -214,7 +213,6 @@ def natural_key(self) -> DteNaturalKey:
),
)
class DteDataL1(DteDataL0):

"""
DTE data level 1.

Expand Down Expand Up @@ -329,7 +327,6 @@ def validate_monto_total(cls, v: object, info: pydantic.ValidationInfo) -> objec
),
)
class DteDataL2(DteDataL1):

"""
DTE data level 2.

Expand Down Expand Up @@ -653,7 +650,6 @@ def validate_razon_ref(cls, value: str | None) -> str | None:
),
)
class DteXmlData(DteDataL1):

"""
DTE XML data.

Expand Down
2 changes: 1 addition & 1 deletion src/cl_sii/extras/dj_form_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
cl_sii "extras" / Django form fields.

"""

try:
import django
except ImportError as exc: # pragma: no cover
Expand All @@ -17,7 +18,6 @@


class RutField(django.forms.CharField):

"""
Django form field for RUT.

Expand Down
2 changes: 1 addition & 1 deletion src/cl_sii/extras/dj_model_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
cl_sii "extras" / Django model fields.

"""

try:
import django
except ImportError as exc: # pragma: no cover
Expand All @@ -18,7 +19,6 @@


class RutField(django.db.models.Field):

"""
Django model field for RUT.

Expand Down
2 changes: 1 addition & 1 deletion src/cl_sii/extras/drf_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
(for serializers)

"""

try:
import rest_framework
except ImportError as exc: # pragma: no cover
Expand All @@ -15,7 +16,6 @@


class RutField(rest_framework.fields.CharField):

"""
DRF field for RUT.

Expand Down
Loading