|
| 1 | +#!/usr/bin/env python |
| 2 | +# -*- coding: utf-8 -*- |
| 3 | + |
| 4 | +import ast |
| 5 | +from io import open |
| 6 | +import re |
| 7 | + |
| 8 | +from setuptools import setup |
| 9 | + |
| 10 | +_version_re = re.compile(r'__version__\s+=\s+(.*)') |
| 11 | + |
| 12 | +with open('litecli/__init__.py', 'rb') as f: |
| 13 | + version = str(ast.literal_eval(_version_re.search( |
| 14 | + f.read().decode('utf-8')).group(1))) |
| 15 | + |
| 16 | + |
| 17 | +def open_file(filename): |
| 18 | + """Open and read the file *filename*.""" |
| 19 | + with open(filename) as f: |
| 20 | + return f.read() |
| 21 | + |
| 22 | + |
| 23 | +readme = open_file('README.rst') |
| 24 | + |
| 25 | +setup( |
| 26 | + name='litecli', |
| 27 | + author='dbcli', |
| 28 | + author_email='thomas@roten.us', |
| 29 | + version=version, |
| 30 | + url='https://github.com/dbcli/litecli', |
| 31 | + description='CLI for SQLite Databases with auto-completion and syntax ' |
| 32 | + 'highlighting.', |
| 33 | + long_description=readme, |
| 34 | + classifiers=[ |
| 35 | + 'Intended Audience :: Developers', |
| 36 | + 'License :: OSI Approved :: BSD License', |
| 37 | + 'Operating System :: Unix', |
| 38 | + 'Programming Language :: Python', |
| 39 | + 'Programming Language :: Python :: 2', |
| 40 | + 'Programming Language :: Python :: 2.7', |
| 41 | + 'Programming Language :: Python :: 3', |
| 42 | + 'Programming Language :: Python :: 3.4', |
| 43 | + 'Programming Language :: Python :: 3.5', |
| 44 | + 'Programming Language :: Python :: 3.6', |
| 45 | + 'Programming Language :: SQL', |
| 46 | + 'Topic :: Database', |
| 47 | + 'Topic :: Database :: Front-Ends', |
| 48 | + 'Topic :: Software Development', |
| 49 | + 'Topic :: Software Development :: Libraries :: Python Modules', |
| 50 | + ] |
| 51 | +) |
0 commit comments