-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (45 loc) · 1.49 KB
/
setup.py
File metadata and controls
50 lines (45 loc) · 1.49 KB
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
import io
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext
from distutils.core import setup
from setuptools import find_packages, setup
def read(*names, **kwargs):
return io.open(
join(dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
).read()
def get_readme():
readme = ''
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except (ImportError, IOError):
with open('README.md', 'r') as file_data:
readme = file_data.read()
return readme
setup(name='Parseit',
version='1.4.1',
description="A fixed record lenght text and csv file parser",
long_description=get_readme(),
keywords='parse text file csv',
author="Patricio Moracho",
author_email="pmoracho@gmail.com",
url="https://github.com/pmoracho/parseit",
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: Spanish',
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Console :: Curses',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: User Interfaces',
'Topic :: Terminals']
)