-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
51 lines (45 loc) · 1.44 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
#!/usr/bin/env python3
"""Parse Email Files
"""
import configparser
from setuptools import find_packages, setup # noqa: H301
NAME = "parse-emails"
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
# Converting Pipfile to requirements style list because setup expects requirements.txt file.
parser = configparser.ConfigParser()
parser.read("Pipfile")
install_requires = [f'{key}{value}'.replace('\"', '').replace('*', '') for key, value in parser['packages'].items()]
with open('README.md') as f:
readme = f.read()
setup(
use_scm_version={
'local_scheme': lambda a: ""
},
setup_requires=['setuptools_scm'],
name=NAME,
description="A Python library to parse email files",
author_email="",
url="https://github.com/demisto/email-parser",
keywords=["Demisto"],
install_requires=install_requires,
packages=find_packages(),
include_package_data=True,
long_description=readme,
long_description_content_type='text/markdown',
license='MIT',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython'
],
python_requires=">=3.7",
author="Demisto"
)