Skip to content

Commit eb92d42

Browse files
committed
Version 1.0.8
1 parent 0988809 commit eb92d42

File tree

9 files changed

+88
-74
lines changed

9 files changed

+88
-74
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL"
12+
name: "codeql"
1313

1414
on:
1515
push:

.github/workflows/publish.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: publish
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
deploy:
20+
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Set up Python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.11'
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install build wheel
34+
35+
- name: Build package dist
36+
env:
37+
RELEASE_VERSION: ${{ github.event.release.tag_name }}
38+
run: python -m build --sdist .
39+
40+
- name: Build package wheel
41+
env:
42+
RELEASE_VERSION: ${{ github.event.release.tag_name }}
43+
run: python -m build --wheel .
44+
45+
- name: Publish package
46+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
47+
with:
48+
user: __token__
49+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-3.11.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33

4-
name: Python 3.10
4+
name: tests
55

66
on:
77
push:
88
branches: [ "main" ]
99
pull_request:
1010
branches: [ "main" ]
1111

12-
permissions:
13-
contents: read
14-
1512
jobs:
1613
build:
1714
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.10", "3.11"]
1819

1920
steps:
2021
- uses: actions/checkout@v3
21-
22-
- name: Set up Python 3.10
22+
23+
- name: Set up Python ${{ matrix.python-version }}
2324
uses: actions/setup-python@v4
2425
with:
25-
python-version: "3.10"
26-
26+
python-version: ${{ matrix.python-version }}
27+
2728
- name: Install dependencies
2829
run: |
2930
python -m pip install --upgrade pip
3031
pip install .[test]
31-
32+
3233
- name: Test with pytest
3334
run: |
3435
python -m pytest tests/

docs/badges.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
:target: https://github.com/SAT-CFDI/python-satcfdi
33
:alt: Source
44

5-
.. image:: https://readthedocs.org/projects/satcfdi/badge/?version=latest
6-
:target: https://satcfdi.readthedocs.io/?badge=latest
5+
.. image:: https://readthedocs.org/projects/satcfdi/badge?version=latest
6+
:target: https://satcfdi.readthedocs.io?badge=latest
77
:alt: Documentation Status
88

9-
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/python-3.10.yml/badge.svg
10-
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/python-3.10.yml
11-
:alt: Python 3.10
12-
13-
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/python-3.11.yml/badge.svg
14-
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/python-3.11.yml
15-
:alt: Python 3.11
9+
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/tests.yml/badge.svg
10+
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/tests.yml
11+
:alt: Tests
1612

1713
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/codeql.yml/badge.svg
1814
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/codeql.yml
1915
:alt: CodeQL
2016

17+
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/publish.yml/badge.svg
18+
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/publish.yml
19+
:alt: Publish
20+
2121
.. image:: https://img.shields.io/github/v/release/SAT-CFDI/python-satcfdi.svg?logo=git&style=flat
2222
:target: https://github.com/SAT-CFDI/python-satcfdi/releases
2323
:alt: Releases

docs/pages/getting_started/50_pac_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ______________________
8383
res = sat.status(cfdi)
8484
print(res)
8585
86-
Listado 69b
86+
Listado 69B
8787
______________________
8888

8989
.. code-block:: python

readme.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
:target: https://github.com/SAT-CFDI/python-satcfdi
33
:alt: Source
44

5-
.. image:: https://readthedocs.org/projects/satcfdi/badge/?version=latest
6-
:target: https://satcfdi.readthedocs.io/?badge=latest
5+
.. image:: https://readthedocs.org/projects/satcfdi/badge?version=latest
6+
:target: https://satcfdi.readthedocs.io?badge=latest
77
:alt: Documentation Status
88

9-
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/python-3.10.yml/badge.svg
10-
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/python-3.10.yml
11-
:alt: Python 3.10
12-
13-
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/python-3.11.yml/badge.svg
14-
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/python-3.11.yml
15-
:alt: Python 3.11
9+
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/tests.yml/badge.svg
10+
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/tests.yml
11+
:alt: Tests
1612

1713
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/codeql.yml/badge.svg
1814
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/codeql.yml
1915
:alt: CodeQL
2016

17+
.. image:: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/publish.yml/badge.svg
18+
:target: https://github.com/SAT-CFDI/python-satcfdi/actions/workflows/publish.yml
19+
:alt: Publish
20+
2121
.. image:: https://img.shields.io/github/v/release/SAT-CFDI/python-satcfdi.svg?logo=git&style=flat
2222
:target: https://github.com/SAT-CFDI/python-satcfdi/releases
2323
:alt: Releases
@@ -50,7 +50,7 @@ The best open-source python library to generate and process SAT's CFDI
5050
Documentation and User Guide available
5151
____________________________________________________________________________________
5252

53-
`SAT-CFDI Read the Docs <https://satcfdi.readthedocs.io/>`_
53+
`SAT-CFDI Read the Docs <https://satcfdi.readthedocs.io>`_
5454

5555
Supported Features
5656
____________________
@@ -60,7 +60,7 @@ ____________________
6060
* Facturación con PAC's
6161
* Descarga Masiva
6262
* Validación de CFDI's
63-
* Listado 69b
63+
* Listado 69B
6464
* Exportar CFDI's a Excel
6565
* Descarga de Constancia de Situación Fiscal
6666
* DIOT - Declaración Informativa de Operaciones con Terceros

satcfdi/__version__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
21
__title__ = "SAT-CFDI"
32
__package__ = "satcfdi"
43

54
__description__ = "The best open-source python library to generate and process SAT's CFDI"
65
__git_project__ = "SAT-CFDI/python-satcfdi"
76
__url__ = f"https://github.com/{__git_project__}"
87

9-
__docs_url__ = f"https://{__package__}.readthedocs.io/"
10-
__docs_badge_url__ = f"https://readthedocs.org/projects/{__package__}/badge/"
8+
__docs_url__ = f"https://{__package__}.readthedocs.io"
9+
__docs_badge_url__ = f"https://readthedocs.org/projects/{__package__}/badge"
1110

12-
__version__ = "1.0.7"
1311
__author__ = "[email protected]"
1412
__author_email__ = "[email protected]"
1513
__license__ = "MIT License"
1614

17-
__user_agent__ = f"python-{__package__}/{__version__}"
18-
19-
15+
__user_agent__ = f"python-{__package__}" # /{__version__}

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
exclude=["contrib", "docs", "tests"],
1515
)
1616

17+
version = os.environ.get('RELEASE_VERSION', '1.0.0')
18+
1719
setuptools.setup(
1820
name=package, # installation
19-
version=about["__version__"],
21+
version=version,
2022
author=about["__author__"],
2123
author_email=about["__author__"],
2224
description=about["__description__"],

0 commit comments

Comments
 (0)