forked from sped-br/python-sped
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
53 lines (45 loc) · 1.68 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
# -*- 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):
import sys
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name='sped',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
include_package_data=True,
package_data={
'sped': ['ecd/tabelas/*'],
},
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/sped-br/python-sped',
download_url='https://github.com/sped-br/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.4',
],
keywords='sped fiscal contábil contabilidade receita federal',
tests_require=['pytest'],
cmdclass={'test': PyTest},
)