From db2162ec60067c0b81e7135eda914737f8bca67c Mon Sep 17 00:00:00 2001 From: Mario Hernandez Date: Sun, 16 Jan 2022 22:09:33 -0300 Subject: [PATCH] Cambios menores --- .github/workflows/pyflow.yml | 6 +++--- README.md | 1 + docs/modules.rst | 2 +- docs/pyflowcl.rst | 8 -------- pyflowcl/Payment.py | 11 +++++++++-- pyproject.toml | 5 +++-- 6 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pyflow.yml b/.github/workflows/pyflow.yml index 51a4070..c4303a2 100644 --- a/.github/workflows/pyflow.yml +++ b/.github/workflows/pyflow.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] - poetry-version: [1.1.7] + python-version: [3.7, 3.8, 3.9, 3.10] + poetry-version: [1.1.12] max-parallel: 1 steps: - name: Checkout Repo @@ -22,7 +22,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Set Up Poetry - uses: abatilo/actions-poetry@v2.0.0 + uses: abatilo/actions-poetry@v2.1.4 with: poetry-version: ${{ matrix.poetry-version }} - name: Install Repo diff --git a/README.md b/README.md index c2ea640..57c2875 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Este proyecto está desarrollado para Python 3.7 y superior. Para soporte Python 3.6 revisar la rama **stable-py36**. Este proyecto es administrado por Poetry. Se entrega archivo requirements.txt para PIP. +Ejemplos en flow_client.py --- diff --git a/docs/modules.rst b/docs/modules.rst index 87ac54d..d94ad6f 100644 --- a/docs/modules.rst +++ b/docs/modules.rst @@ -1,5 +1,5 @@ pyflowcl -====== +======== .. toctree:: :maxdepth: 4 diff --git a/docs/pyflowcl.rst b/docs/pyflowcl.rst index cc078bf..52f3695 100644 --- a/docs/pyflowcl.rst +++ b/docs/pyflowcl.rst @@ -12,14 +12,6 @@ pyflowcl.Clients module :undoc-members: :show-inheritance: -pyflowcl.Customer module ------------------------- - -.. automodule:: pyflowcl.Customer - :members: - :undoc-members: - :show-inheritance: - pyflowcl.Payment module ----------------------- diff --git a/pyflowcl/Payment.py b/pyflowcl/Payment.py index 6f4aab5..43100ed 100644 --- a/pyflowcl/Payment.py +++ b/pyflowcl/Payment.py @@ -1,8 +1,15 @@ from dataclasses import asdict from typing import Any, Dict, Union, cast -from .Clients import ApiClient +from pyflowcl.Clients import ApiClient +from pyflowcl.models import ( + Error, + PaymentStatus, + PaymentRequest, + PaymentResponse, + PaymentRequestEmail, + PaymentList, +) import logging -from .models import * def getStatus( diff --git a/pyproject.toml b/pyproject.toml index 3e8351b..d909e98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,7 @@ authors = ["Mario Hernandez "] license = "MIT" readme = "README.md" repository = "https://github.com/mariofix/pyflowcl" +documentation = "https://pyflowcl.readthedocs.io/es/latest/index.html" classifiers=[ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", @@ -30,5 +31,5 @@ sphinx = "*" sphinx-theme = "*" [build-system] -requires = ["poetry>=0.12"] -build-backend = "poetry.masonry.api" +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" \ No newline at end of file