-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (63 loc) · 2.37 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
64
65
66
67
68
#! python3
# pylint: disable=invalid-name
"""
Setup file
Help from: http://www.scotttorborg.com/python-packaging/minimal.html
https://docs.python.org/3/distutils/commandref.html#sdist-cmd
https://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
https://docs.python.org/3.4/tutorial/modules.html
Local Install it with python setup.py install
Or use: python setup.py develop (changes to the source files will be
immediately available)
https://pypi.python.org/pypi?%3Aaction=list_classifiers
"""
import os
from src import __version__
from os import path
from setuptools import setup, find_packages
here_path = path.abspath(path.dirname(__file__))
with open(os.path.join(here_path, 'requirements.txt')) as f:
requires = [x.strip() for x in f if x.strip()]
# Get the version from __init__ source file
mypackage_root_dir = 'src'
version = __version__
# Get the long description from the relevant file
readme_path = path.join(here_path, 'README.md')
with open(readme_path, encoding='utf-8') as f:
long_description = f.read()
# Define setuptools specifications
setup(name='csv_normalizer',
version=version,
description='csv normalize to have always same output csv',
long_description_content_type="text/markdown",
long_description=long_description, # this is the file README.md
# https://pypi.org/classifiers/
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: System Administrators',
'Topic :: Utilities',
'Intended Audience :: Telecommunications Industry',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only'
],
url='https://github.com/CoffeeITWorks/csv_normalizer',
author='Pablo Estigarribia',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
include_package_data=True,
package_data={
'data': ['src/dummy/*'],
'normalizer_process_png': ['csv_normalizer_process.png']
},
entry_points={
'console_scripts': [
'csv_normalizer = src.__main__:main'
]
},
install_requires=requires,
tests_require=['pytest',
'pytest-cov'],
zip_safe=False)