|
| 1 | +#!/usr/bin/env python |
| 2 | +# -*- coding: utf-8 -*- |
| 3 | + |
| 4 | +import re |
| 5 | + |
| 6 | +from codecs import open |
| 7 | + |
| 8 | +from setuptools import setup, find_packages |
| 9 | + |
| 10 | + |
| 11 | +with open('sqlmapcli/__init__.py', 'r') as fd: |
| 12 | + version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', |
| 13 | + fd.read(), re.MULTILINE).group(1) |
| 14 | + |
| 15 | +if not version: |
| 16 | + raise RuntimeError('Cannot find version information') |
| 17 | + |
| 18 | +with open('README.rst', 'r', 'utf-8') as f: |
| 19 | + readme = f.read() |
| 20 | + |
| 21 | +with open('HISTORY.rst', 'r', 'utf-8') as f: |
| 22 | + history = f.read() |
| 23 | + |
| 24 | + |
| 25 | +setup( |
| 26 | + name='sqlmapcli', |
| 27 | + version=version, |
| 28 | + description='Simplify your operations for sqlmapapi', |
| 29 | + long_description=readme + '\n\n' + history, |
| 30 | + author='jetz', |
| 31 | + author_email='jet.zheung@gmail.com', |
| 32 | + url='https://www.github.com/jetz/sqlmapcli', |
| 33 | + packages=find_packages(), |
| 34 | + install_requires=['requests>=2.10.0'], |
| 35 | + license='MIT', |
| 36 | + keywords='sqlmap, sqlmapapi, sqlmapcli, sqlmap-proxy, sqlmap-client', |
| 37 | + classifiers=( |
| 38 | + 'Programming Language :: Python', |
| 39 | + 'Programming Language :: Python :: 2.7', |
| 40 | + 'Programming Language :: Python :: 3', |
| 41 | + 'Programming Language :: Python :: 3.3', |
| 42 | + 'Programming Language :: Python :: 3.4', |
| 43 | + 'Programming Language :: Python :: 3.5', |
| 44 | + 'Programming Language :: Python :: Implementation :: CPython', |
| 45 | + 'Programming Language :: Python :: Implementation :: PyPy' |
| 46 | + ) |
| 47 | +) |
0 commit comments