Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes django admin #8

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 32 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
image: ubuntu:18.04

before_script:
- apt-get update
- apt-get install -y locales
- echo "en_US UTF-8" > /etc/locale.gen
- locale-gen en_US.UTF-8
- export LANG=en_US.UTF-8
- export LANGUAGE=en_US:en
- export LC_ALL=en_US.UTF-8


unit-tests-py2:
script:
- export PYTHONHTTPSVERIFY=0
- apt-get install -y poppler-utils python python-dev python-setuptools
- python setup.py test

only:
- merge_requests
- tags
- master

unit-tests-py3:
script:
- apt-get install -y poppler-utils python3.7 python3.7-dev python3-pip
- python3.7 setup.py test

only:
- merge_requests
- tags
- master
2 changes: 1 addition & 1 deletion pyboleto/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.0'
__version__ = '0.4.0'
12 changes: 6 additions & 6 deletions pyboleto/bank/sicredi.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# -*- coding: utf-8 -*-
from pyboleto.data import BoletoData, custom_property
from pyboleto.data import BoletoData, CustomProperty

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Não lembro muito bem como estão os testes, mas será que não vale fazer um que quebrasse antes de fazer o fix?



class BoletoSicredi(BoletoData):
'''
Gera Dados necessários para criação de boleto para o Banco Sicredi
'''
agencia_cedente = custom_property('agencia_cedente', 4)
conta_cedente = custom_property('conta_cedente', 8)
posto = custom_property('posto', 2)
convenio = custom_property('convenio', 4)
agencia_cedente = CustomProperty('agencia_cedente', 4)
conta_cedente = CustomProperty('conta_cedente', 8)
posto = CustomProperty('posto', 2)
convenio = CustomProperty('convenio', 4)
# Nosso numero (sem dv) com 8 digitos
nosso_numero = custom_property('nosso_numero', 8)
nosso_numero = CustomProperty('nosso_numero', 8)

def __init__(self):
'''
Expand Down
Empty file removed pyboleto/django/__init__.py
Empty file.
49 changes: 0 additions & 49 deletions pyboleto/django/admin.py

This file was deleted.

77 changes: 0 additions & 77 deletions pyboleto/django/models.py

This file was deleted.

1 change: 0 additions & 1 deletion pyboleto/django/views.py

This file was deleted.

12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_version(package):


setup(
name='pyboleto',
name='pyboleto-luizalabs',
version=get_version('pyboleto'),
author='Eduardo Cereto Carvalho',
author_email='[email protected]',
Expand Down Expand Up @@ -68,7 +68,12 @@ def get_version(package):
test_suite='tests.alltests.suite',
install_requires=[
'reportlab',
'six'
'six',
'pillow==6.2.2',
'pylint==1.9.5',
'more-itertools==5.0.0',
'pytz==2019.3',
'twine==3.1.1'
],
tests_require=[
'pylint',
Expand All @@ -77,5 +82,6 @@ def get_version(package):
'pep8',
'sphinx-pypi-upload',
'sphinx==1.8.5'
]
],
setup_requires=['wheel']
)
Loading