forked from sped-br/python-sped
-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
63 lines (54 loc) · 1.89 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from setuptools.command.test import test as test_command
from sped import __version__
class PyTest(test_command):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
test_command.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
test_command.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# doctest
import sys
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name='python-sped',
packages=find_packages(exclude=['contrib', 'docs', 'test*']),
include_package_data=True,
package_data={
'sped': ['leiautes/*'],
},
version=__version__,
description='Biblioteca para geração dos arquivos do Sistema Público de Escrituração Digital (SPED) para Python.',
long_description='Biblioteca para geração dos arquivos do Sistema Público de Escrituração Digital (SPED) para '
'Python.',
author='Sergio Garcia',
author_email='[email protected]',
url='https://github.com/Trust-Code/python-sped',
download_url='https://github.com/Trust-Code/python-sped/releases',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
],
keywords='sped fiscal contábil contabilidade receita federal',
install_requires=['six'],
tests_require=['pytest'],
extras_require={
'dev': ['pylint>=1.9.1'],
'leiaute': [
'jupyter>=1.0.0',
'pyquery>=1.4.0',
]
},
cmdclass={'test': PyTest},
)