-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include README.md convertion into setup.py file
- Loading branch information
Showing
3 changed files
with
9 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,18 @@ | |
# -*- coding: utf-8 -*- | ||
from setuptools import setup | ||
|
||
try: | ||
from pypandoc import convert | ||
read_md = lambda f: convert(f, 'rst') | ||
except ImportError: | ||
print("warning: pypandoc module not found, could not convert Markdown to RST") | ||
read_md = lambda f: open(f, 'r').read() | ||
|
||
setup( | ||
name='thehive4py', | ||
version='1.0.0', | ||
description='Python API client for TheHive.', | ||
long_description=open('README.txt').read(), | ||
long_description=read_md('README.md'), | ||
author='TheHive-Project', | ||
author_email='[email protected]', | ||
maintainer='TheHive-Project', | ||
|