Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
2b90ba0
chore: Bump the development-dependencies group with 9 updates
dependabot[bot] Sep 1, 2023
ac99cd2
fix(libs): Fix errors reported by Flake8
jtrobles-cdd Sep 5, 2023
3bcd12f
chore(deps): Update `typing-extensions` from 4.3.0 to 4.7.1
jtrobles-cdd Sep 5, 2023
3e62ea0
Merge pull request #530 from cordada/dependabot/pip/development-depen…
jtrobles-cdd Sep 5, 2023
13c5dc7
Merge pull request #536 from cordada/task/update-typing-extensions
jtrobles-cdd Sep 5, 2023
ee4374f
fix: Fix errors reported by EditorConfig-Checker
jtrobles-cdd Sep 6, 2023
a66e037
chore: Add `src/` for change of Python project structure to Src layout
jtrobles-cdd Aug 9, 2023
9530d6d
Merge pull request #538 from cordada/bugfix/add-specific-editor-configs
jtrobles-cdd Sep 7, 2023
347201c
chore: Change Python project structure from Flat layout to Src layout
jtrobles-cdd Aug 9, 2023
bb20f98
chore: Update files for change of Python project structure to Src layout
jtrobles-cdd Aug 9, 2023
67a933d
Merge pull request #537 from cordada/task/change-project-structure-to…
jtrobles-cdd Sep 7, 2023
7791901
chore: Add Codecov repository upload token; update Codecov status badge
jtrobles-cdd Sep 7, 2023
ae1e0cb
Merge pull request #539 from cordada/task/update-codecov
jtrobles-cdd Sep 7, 2023
645549d
chore(deps): Update pydantic from 1.10.12 to 2.3.0
svillegas-cdd Sep 14, 2023
c0684c8
chore(deps): Update code to use `pydantic.v1`
svillegas-cdd Sep 14, 2023
577da5e
Merge pull request #540 from cordada/task/story-768-update-pydantic-l…
svillegas-cdd Sep 14, 2023
2c8189f
chore: Update history for new version
svillegas-cdd Sep 14, 2023
a6839ac
chore: Bump version from 0.23.2 to 0.23.3
svillegas-cdd Sep 14, 2023
e5aac70
Merge pull request #541 from cordada/release/v0.23.3
svillegas-cdd Sep 14, 2023
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
4 changes: 2 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[bumpversion]
current_version = 0.23.2
current_version = 0.23.3
commit = True
tag = False
message = chore: Bump version from {current_version} to {new_version}

[bumpversion:file:cl_sii/__init__.py]
[bumpversion:file:src/cl_sii/__init__.py]

2 changes: 1 addition & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version = 1

test_patterns = [
"cl_sii/**"
"src/cl_sii/**"
]

[[analyzers]]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3.1.4
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./test-reports/coverage/
fail_ci_if_error: true

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,4 @@ tags
# warning: rules order matter. Do not move the ones in this section upwards!

# note: prevent this dir from being ignored (because of rule `[Ss]cripts`)
!/scripts/
!/src/scripts/
9 changes: 9 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# History

## 0.23.3 (2023-09-14)

- (PR #530, 2023-09-05) chore: Bump the development-dependencies group with 9 updates
- (PR #536, 2023-09-05) chore(deps): Update `typing-extensions` from 4.3.0 to 4.7.1
- (PR #538, 2023-09-06) Fix errors reported by EditorConfig-Checker
- (PR #537, 2023-09-06) Change Python project structure from Flat layout to Src layout
- (PR #539, 2023-09-07) Add Codecov repository upload token; update Codecov status badge
- (PR #540, 2023-09-14) Update pydantic from 1.10.12 to 2.3.0

## 0.23.2 (2023-09-05)

- (PR #522, 2023-08-07) Enable Editor Configuration validation in Super-Linter
Expand Down
10 changes: 5 additions & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include HISTORY.md
include LICENSE
include README.md
include cl_sii/data/cte/*.json
recursive-include cl_sii *py
recursive-include cl_sii/data/cte/schemas-json *.schema.json
recursive-include cl_sii/data/ref/factura_electronica/schemas-xml *.xsd
include cl_sii/py.typed
include src/cl_sii/data/cte/*.json
recursive-include src/cl_sii *py
recursive-include src/cl_sii/data/cte/schemas-json *.schema.json
recursive-include src/cl_sii/data/ref/factura_electronica/schemas-xml *.xsd
include src/cl_sii/py.typed
18 changes: 13 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
SHELL = /usr/bin/env bash

# Sources Root
SOURCES_ROOT = $(CURDIR)/src

# Python
PYTHON = python3
PYTHON_PIP = $(PYTHON) -m pip
Expand Down Expand Up @@ -67,15 +70,20 @@ install-deps-dev: ## Install dependencies for development
python -m pip install -r requirements-dev.txt
python -m pip check

lint: FLAKE8_FILES = *.py "$(SOURCES_ROOT)"
lint: ISORT_FILES = *.py "$(SOURCES_ROOT)"
lint: BLACK_SRC = *.py "$(SOURCES_ROOT)"
lint: ## run tools for code style analysis, static type check, etc
flake8 --config=setup.cfg cl_sii scripts tests
flake8 $(FLAKE8_FILES)
mypy
isort --check-only .
$(BLACK) --check .
isort --check-only $(ISORT_FILES)
$(BLACK) --check $(BLACK_SRC)

lint-fix: BLACK_SRC = *.py "$(SOURCES_ROOT)"
lint-fix: ISORT_FILES = *.py "$(SOURCES_ROOT)"
lint-fix: ## Fix lint errors
$(BLACK) .
isort .
$(BLACK) $(BLACK_SRC)
isort $(ISORT_FILES)

test: ## run tests quickly with the default Tox Python
tox -e "$(TOXENV)"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The full documentation is at <https://lib-cl-sii-python.readthedocs.io>.

| Code Coverage | Code Climate | Documentation | Project Analysis |
| ------------- | ------------ | ------------- | ---------------- |
| [![Codecov](https://codecov.io/gh/fyntex/lib-cl-sii-python/branch/develop/graph/badge.svg?token=VdwPUEUzzQ)](https://codecov.io/gh/fyntex/lib-cl-sii-python) | [![Maintainability](https://api.codeclimate.com/v1/badges/c4e8a9b023310ff8c276/maintainability)](https://codeclimate.com/github/fyntex/lib-cl-sii-python/maintainability) | [![Read the Docs](https://readthedocs.org/projects/lib-cl-sii-python/badge/)](https://readthedocs.org/projects/lib-cl-sii-python/) | [Open Source Insights](https://deps.dev/pypi/cl-sii) |
| [![Codecov](https://codecov.io/gh/cordada/lib-cl-sii-python/graph/badge.svg?token=VdwPUEUzzQ)](https://codecov.io/gh/cordada/lib-cl-sii-python) | [![Maintainability](https://api.codeclimate.com/v1/badges/c4e8a9b023310ff8c276/maintainability)](https://codeclimate.com/github/fyntex/lib-cl-sii-python/maintainability) | [![Read the Docs](https://readthedocs.org/projects/lib-cl-sii-python/badge/)](https://readthedocs.org/projects/lib-cl-sii-python/) | [Open Source Insights](https://deps.dev/pypi/cl-sii) |

### Hosting

Expand Down
7 changes: 5 additions & 2 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[mypy]
python_version = 3.8
platform = linux
mypy_path =
src
files =
cl_sii,
scripts
*.py,
src
exclude = (^(src/tests)/.*$)
plugins =
pydantic.mypy

Expand Down
18 changes: 9 additions & 9 deletions requirements-dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

-c requirements.txt

black==23.3.0
black==23.7.0
bumpversion==0.5.3
coverage==7.2.7
flake8==6.0.0
coverage==7.3.0
flake8==6.1.0
isort==5.12.0
mypy==1.2.0
tox==4.6.4
twine==3.1.1
types-jsonschema==4.17.0.6
mypy==1.5.1
tox==4.8.0
twine==4.0.2
types-jsonschema==4.17.0.10
types-pyOpenSSL==23.2.0.2
types-pytz==2023.3.0.0
wheel==0.41.0
types-pytz==2023.3.0.1
wheel==0.41.2
54 changes: 35 additions & 19 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# pip-compile --strip-extras requirements-dev.in
#
black==23.3.0
black==23.7.0
# via -r requirements-dev.in
bleach==5.0.1
# via readme-renderer
Expand All @@ -28,7 +28,7 @@ click==8.0.3
# via black
colorama==0.4.6
# via tox
coverage==7.2.7
coverage==7.3.0
# via -r requirements-dev.in
cryptography==41.0.3
# via
Expand All @@ -43,10 +43,14 @@ filelock==3.12.2
# via
# tox
# virtualenv
flake8==6.0.0
flake8==6.1.0
# via -r requirements-dev.in
idna==2.10
# via requests
importlib-metadata==6.1.0
# via
# -c requirements.txt
# twine
isort==5.12.0
# via -r requirements-dev.in
jeepney==0.8.0
Expand All @@ -55,9 +59,13 @@ jeepney==0.8.0
# secretstorage
keyring==21.4.0
# via twine
markdown-it-py==3.0.0
# via rich
mccabe==0.7.0
# via flake8
mypy==1.2.0
mdurl==0.1.2
# via markdown-it-py
mypy==1.5.1
# via -r requirements-dev.in
mypy-extensions==1.0.0
# via
Expand All @@ -80,16 +88,18 @@ platformdirs==3.9.1
# virtualenv
pluggy==1.2.0
# via tox
pycodestyle==2.10.0
pycodestyle==2.11.0
# via flake8
pycparser==2.20
# via
# -c requirements.txt
# cffi
pyflakes==3.0.1
pyflakes==3.1.0
# via flake8
pygments==2.15.0
# via readme-renderer
# via
# readme-renderer
# rich
pyproject-api==1.5.3
# via tox
readme-renderer==35.0
Expand All @@ -100,6 +110,10 @@ requests==2.31.0
# twine
requests-toolbelt==0.9.1
# via twine
rfc3986==2.0.0
# via twine
rich==13.5.2
# via twine
secretstorage==3.3.3
# via keyring
six==1.16.0
Expand All @@ -110,31 +124,33 @@ tomli==2.0.1
# mypy
# pyproject-api
# tox
tox==4.6.4
tox==4.8.0
# via -r requirements-dev.in
tqdm==4.64.0
# via twine
twine==3.1.1
twine==4.0.2
# via -r requirements-dev.in
types-jsonschema==4.17.0.6
types-jsonschema==4.17.0.10
# via -r requirements-dev.in
types-pyopenssl==23.2.0.2
# via -r requirements-dev.in
types-pytz==2023.3.0.0
types-pytz==2023.3.0.1
# via -r requirements-dev.in
typing-extensions==4.3.0
typing-extensions==4.7.1
# via
# -c requirements.txt
# black
# mypy
# rich
urllib3==1.26.12
# via requests
# via
# requests
# twine
virtualenv==20.24.1
# via tox
webencodings==0.5.1
# via bleach
wheel==0.41.0
wheel==0.41.2
# via -r requirements-dev.in

# The following packages are considered to be unsafe in a requirements file:
# setuptools
zipp==3.8.1
# via
# -c requirements.txt
# importlib-metadata
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ importlib-metadata==6.1.0
jsonschema==4.17.3
lxml==4.9.2
marshmallow==3.19.0
pydantic==1.10.12
pydantic==2.3.0
pyOpenSSL==23.2.0
pytz==2023.3
signxml==3.2.0
13 changes: 10 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#
# pip-compile --strip-extras requirements.in
#
annotated-types==0.5.0
# via pydantic
asgiref==3.5.2
# via django
attrs==20.3.0
Expand Down Expand Up @@ -43,8 +45,10 @@ pkgutil-resolve-name==1.3.10
# via jsonschema
pycparser==2.20
# via cffi
pydantic==1.10.12
pydantic==2.3.0
# via -r requirements.in
pydantic-core==2.6.3
# via pydantic
pyopenssl==23.2.0
# via
# -r requirements.in
Expand All @@ -60,8 +64,11 @@ signxml==3.2.0
# via -r requirements.in
sqlparse==0.4.4
# via django
typing-extensions==4.3.0
# via pydantic
typing-extensions==4.7.1
# via
# annotated-types
# pydantic
# pydantic-core
zipp==3.8.1
# via
# importlib-metadata
Expand Down
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
universal = 0

[coverage:run]
source = cl_sii/
source = src/
omit =
tests/*
src/scripts/*
src/tests/*
branch = True

[coverage:report]
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_version(*file_paths: str) -> str:
raise RuntimeError('Unable to find version string.')


version = get_version('cl_sii', '__init__.py')
version = get_version('src', 'cl_sii', '__init__.py')

readme = open('README.md').read()
history = open('HISTORY.md').read()
Expand All @@ -26,7 +26,7 @@ def get_version(*file_paths: str) -> str:
'jsonschema>=3.1.1',
'lxml>=4.6.5,<5',
'marshmallow>=3,<4',
'pydantic>=1.6.2,!=1.7.*,!=1.8.*,!=1.9.*',
'pydantic>=2.3.0,!=1.7.*,!=1.8.*,!=1.9.*',
'pyOpenSSL>=22.0.0',
'pytz>=2019.3',
'signxml>=3.1.0',
Expand Down Expand Up @@ -85,7 +85,8 @@ def get_version(*file_paths: str) -> str:
include_package_data=True,
name='cl-sii',
package_data=_package_data,
packages=find_packages(exclude=['docs', 'tests*']),
package_dir={'': 'src'},
packages=find_packages(where='src', exclude=['scripts', 'tests*']),
python_requires='>=3.8, <3.11',
setup_requires=setup_requirements,
test_suite='tests',
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion cl_sii/__init__.py → src/cl_sii/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"""


__version__ = '0.23.2'
__version__ = '0.23.3'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*.xsd]
end_of_line = unset
indent_style = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
File renamed without changes.
File renamed without changes.
Loading