-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
58 lines (51 loc) · 1.65 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
#!/usr/bin/env python
#TODO: fix tests
try:
from setuptools import setup
except:
from distutils.core import setup
import sys
from setuptools.command.test import test as TestCommand
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()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name = "virustotal2",
description = "Complete, Pythonic VirusTotal Public API 2.0 client",
url = "https://github.com/Phillipmartin/virustotal2",
tests_require = ['pytest'],
cmdclass = {'test': PyTest},
py_modules = ["virustotal2"],
include_package_data=True,
requires = [
'requests',
],
long_description=read_md('README.md'),
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
],
license = "MIT",
version = "1.1",
author = "Philip Martin",
author_email = "[email protected]",
)