Skip to content

Commit

Permalink
Merge pull request #31 from marcelobelli/bump_version
Browse files Browse the repository at this point in the history
Bump version
  • Loading branch information
marcelobelli authored Jan 7, 2020
2 parents f23e0a5 + c0c2bd3 commit c64f87e
Show file tree
Hide file tree
Showing 23 changed files with 658 additions and 155 deletions.
738 changes: 614 additions & 124 deletions poetry.lock

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
@@ -1,10 +1,10 @@
from datetime import date

from PyNFSe.base.certificate import get_certificate
from PyNFSe.base.models import RPS, LoteRPS, PedidoCancelamentoNFSe, Prestador
from PyNFSe.base.nfse_signer import NFSeSigner
from PyNFSe.nfse.pr.curitiba import serializacao as s
from PyNFSe.nfse.pr.curitiba.comunicacao import Comunicacao
from pynfse.base.certificate import get_certificate
from pynfse.base.models import RPS, LoteRPS, PedidoCancelamentoNFSe, Prestador
from pynfse.base.nfse_signer import NFSeSigner
from pynfse.nfse.pr.curitiba import serializacao as s
from pynfse.nfse.pr.curitiba.comunicacao import Comunicacao


class Facade:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PyNFSe.base.soap_client import NFSeSoapClient
from pynfse.base.soap_client import NFSeSoapClient


class Comunicacao:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pynfse.nfse.pr.curitiba import _schema as nfse_schema
from pyxb import BIND

from PyNFSe.nfse.pr.curitiba import _schema as nfse_schema


def consulta_nfse_por_numero(prestador, numero_nfse):

Expand Down
35 changes: 26 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,44 @@ skip = "docs,_dsig.py,_schema.py"

[tool.poetry]
name = "pynfse"
version = "0.1.0"
version = "0.2.0"
description = "Lib para emissão de NFSe"
authors = ["Marcelo Belli <marcelo@belli.me>"]
license = "LGPL-3.0"
readme = "README.md"
homepage = "https://github.com/marcelobelli/PyNFSe"
repository = "https://github.com/marcelobelli/PyNFSe"
keywords = ["nfe", "nfse", "nota_fiscal"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Natural Language :: Portuguese (Brazilian)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Topic :: Office/Business :: Financial",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
include = ["LICENSE"]

[tool.poetry.dependencies]
python = "^3.7"
lxml = "4.4.1"
pydantic = "1.0"
PyXB = "1.2.5"
zeep = "^3.4"
signxml = "^2.6"
lxml = "^4.4"
ipython = "^7.8"
pydantic = "^1.0"
signxml = "2.6.0"
zeep = "3.4.0"

[tool.poetry.dev-dependencies]
pytest = "^5.2"
pytest-cov = "^2.8"
black = {version = "^19.3b0",allow-prereleases = true}
factory-boy = "^2.12"
ipython = "^7.8"
isort = "^4.3"
pre-commit = "^1.18"
black = {version = "^19.3b0",allows-prereleases = true}
pytest = "^5.2"
pytest-cov = "^2.8"

[build-system]
requires = ["poetry>=0.12"]
Expand Down
3 changes: 1 addition & 2 deletions tests/base/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from decimal import Decimal

from factory import Factory

from PyNFSe.base import models
from pynfse.base import models


class PrestadorFactory(Factory):
Expand Down
3 changes: 1 addition & 2 deletions tests/base/test_certificate.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from tempfile import _TemporaryFileWrapper

import pytest

from PyNFSe.base.certificate import _create_temp_file, get_certificate
from pynfse.base.certificate import _create_temp_file, get_certificate


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions tests/base/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from decimal import Decimal

import pytest

from PyNFSe.base.models import RPS, LoteRPS, Prestador, Servico, Tomador, _validate_cnpj, _validate_cpf
from pynfse.base.models import RPS, LoteRPS, Prestador, Servico, Tomador, _validate_cnpj, _validate_cpf


def test_prestador_incorrect_cnpj():
Expand Down
5 changes: 2 additions & 3 deletions tests/base/test_nfse_signer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest

from PyNFSe.base.certificate import get_certificate
from PyNFSe.base.nfse_signer import NFSeSigner
from pynfse.base.certificate import get_certificate
from pynfse.base.nfse_signer import NFSeSigner


@pytest.fixture
Expand Down
5 changes: 2 additions & 3 deletions tests/pr/curitiba/basetestesserializacao.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
from datetime import datetime
from decimal import Decimal

from pynfse.base.models import RPS, LoteRPS, PedidoCancelamentoNFSe, Prestador, Servico, Tomador
from pynfse.nfse.pr.curitiba import _schema as nfse_schema
from pyxb import BIND

from PyNFSe.base.models import RPS, LoteRPS, PedidoCancelamentoNFSe, Prestador, Servico, Tomador
from PyNFSe.nfse.pr.curitiba import _schema as nfse_schema


class BaseTestesSerializacao(unittest.TestCase):
maxDiff = None
Expand Down
3 changes: 2 additions & 1 deletion tests/pr/curitiba/test_curitiba_serializacao_comunicacao.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import datetime
import unittest

import PyNFSe.nfse.pr.curitiba.serializacao as s
import pynfse.nfse.pr.curitiba.serializacao as s

from tests.pr.curitiba.basetestesserializacao import BaseTestesSerializacao, xml_expected


Expand Down
3 changes: 2 additions & 1 deletion tests/pr/curitiba/test_curitiba_serializacao_entidades.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import unittest

import PyNFSe.nfse.pr.curitiba.serializacao as s
import pynfse.nfse.pr.curitiba.serializacao as s

from tests.pr.curitiba.basetestesserializacao import BaseTestesSerializacao, xml_expected


Expand Down

0 comments on commit c64f87e

Please sign in to comment.