add basic setup for dependencies, and tox wrapping for testing

This commit is contained in:
Chris MacNaughton
2017-11-24 09:49:26 +01:00
parent a80649e1a8
commit 7229a80279
6 changed files with 88 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
# Copyright 2016 RadicallyOpenSecurity B.V.
import os
from setuptools import setup, find_packages
version_file = os.path.abspath(os.path.join(os.path.dirname(__file__),
'VERSION'))
with open(version_file) as v:
VERSION = v.read().strip()
SETUP = {
'name': "chatops",
'version': VERSION,
'author': "RadicallyOpenSecurity",
'url': "https://github.com/radicallyopensecurity/pentext",
'install_requires': [
'lxml',
'titlecase',
'pyenchant',
'pypandoc',
'python-gitlab',
],
'packages': find_packages(),
'scripts': [
'chatops/python/docbuilder.py',
'chatops/python/gitlab-to-pentext.py',
'chatops/python/pentext_id.py',
'chatops/python/validate_report.py',
],
# 'license': "Apache 2.0 (ASL)",
'long_description': open('README.md').read(),
'description': 'PenText system ',
}
# try:
# from sphinx_pypi_upload import UploadDoc
# SETUP['cmdclass'] = {'upload_sphinx': UploadDoc}
# except ImportError:
# pass
if __name__ == '__main__':
setup(**SETUP)