|
1 |
| -#! /usr/bin/env python |
2 |
| -# -*- coding: utf-8 -*- |
3 |
| -# |
4 |
| -# vim: fenc=utf-8 |
5 |
| -# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 |
6 |
| -# |
7 |
| -# |
| 1 | +# (c) 2017, XYSec Labs |
8 | 2 |
|
9 |
| -""" |
10 |
| -Python wrapper for Appknox's REST API |
11 |
| -File name: setup.py |
12 |
| -Version: 0.1 |
13 |
| -Author: dhilipsiva <[email protected]> |
14 |
| -Date created: 2015-08-07 |
15 |
| -""" |
16 |
| - |
17 |
| -from setuptools import setup, find_packages |
18 |
| -# from codecs import open |
19 | 3 | from os import path
|
| 4 | +from pip.req import parse_requirements |
| 5 | +from setuptools import setup, find_packages |
20 | 6 |
|
21 | 7 | here = path.abspath(path.dirname(__file__))
|
22 | 8 |
|
23 |
| -""" |
24 |
| -try: |
25 |
| - f = path.join(here, 'README.md') |
26 |
| - from pypandoc import convert |
27 |
| - long_description = convert(f, 'rst') |
28 |
| -except IOError: |
29 |
| - print("Cannot read Readme.md file") |
30 |
| -except ImportError: |
31 |
| - print( |
32 |
| - "pypandoc module not found, could not convert Markdown to RST") |
33 |
| - long_description = open(f, 'r').read() |
34 |
| -""" |
| 9 | +with open('requirements.txt') as f: |
| 10 | + install_requires = f.read().splitlines() |
35 | 11 |
|
36 | 12 | setup(
|
37 | 13 | name='appknox',
|
38 |
| - version='1.4.0', |
39 |
| - description="Python wrapper for Appknox's REST API", |
40 |
| - long_description="Python wrapper for Appknox's REST API", |
| 14 | + version='2.0.0', |
| 15 | + description='Python wrapper for Appknox API', |
| 16 | + long_description='Python wrapper for Appknox API', |
41 | 17 | url='https://github.com/appknox/appknox-python',
|
42 |
| - author='dhilipsiva', |
43 |
| - author_email='dhilipsiva@gmail.com', |
| 18 | + author='Appknox', |
| 19 | + author_email='engineering@appknox.com', |
44 | 20 | license='MIT',
|
45 | 21 | classifiers=[
|
46 |
| - 'Development Status :: 3 - Alpha', |
| 22 | + 'Development Status :: 5 - Production/Stable', |
47 | 23 | 'Intended Audience :: Developers',
|
48 | 24 | 'Topic :: Software Development :: Build Tools',
|
49 | 25 | 'License :: OSI Approved :: MIT License',
|
50 |
| - 'Programming Language :: Python :: 2', |
51 |
| - 'Programming Language :: Python :: 2.6', |
52 |
| - 'Programming Language :: Python :: 2.7', |
53 | 26 | 'Programming Language :: Python :: 3',
|
54 | 27 | 'Programming Language :: Python :: 3.5',
|
55 | 28 | ],
|
56 | 29 |
|
57 |
| - keywords='appknox xysec rest api wrapper', |
| 30 | + keywords='appknox xysec rest api wrapper cli mobile security', |
58 | 31 | packages=find_packages(),
|
59 | 32 | py_modules=['appknox'],
|
60 | 33 | entry_points='''
|
61 | 34 | [console_scripts]
|
62 | 35 | appknox=appknox.cli:cli
|
63 | 36 | ''',
|
64 |
| - install_requires=[ |
65 |
| - 'requests', |
66 |
| - 'click', |
67 |
| - ], |
| 37 | + install_requires=install_requires, |
68 | 38 | extras_require={
|
69 | 39 | 'dev': [''],
|
70 | 40 | 'test': [''],
|
|
0 commit comments