forked from kelvinn/capparselib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (42 loc) · 1.86 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
#!/usr/bin/env python
"""
Build the capparselib module for parsing Common Alerting Protocol feeds.
"""
__author__ = 'kelvinn'
__email__ = '[email protected]'
from setuptools import setup
files = ["schema/*", "requirements-base.txt"]
def get_requirements(env):
with open(u'src/requirements-{}.txt'.format(env)) as fp:
return [x.strip() for x in fp.read().split('\n') if not x.startswith('#')]
install_requires = get_requirements('base')
tests_require = get_requirements('test')
setup(name="capparselib",
version="0.6.7",
description="A module to parse and standardise CAP feeds",
long_description="This module provides the ability to parse Common Alerting Protocol (CAP) feeds and standardise"
" the resources into a dict, regardless if it was a 1.1 or 1.2 specification."
" Additional details can be found on the project's GitHub README: "
" https://github.com/kelvinn/capparselib",
author="Kelvin Nicholson",
author_email='[email protected]',
platforms=['posix'],
install_requires=install_requires,
extras_require={
'tests': tests_require,
},
test_suite="tests",
package_dir={'capparselib': 'src'},
packages=['capparselib'],
package_data={'capparselib': files},
include_package_data=True,
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)