-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (41 loc) · 1.52 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
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
def get_version():
with open(os.path.join(here, 'orator/version.py')) as f:
variables = {}
exec(f.read(), variables)
version = variables.get('VERSION')
if version:
return version
raise RuntimeError('No version info found.')
__version__ = get_version()
with open(os.path.join(here, 'requirements.txt')) as f:
requirements = f.readlines()
setup_kwargs = dict(
name='orator',
license='MIT',
version=__version__,
description='The Orator ORM provides a simple yet beautiful ActiveRecord implementation.',
long_description=open('README.rst').read(),
entry_points={
'console_scripts': ['orator=orator.commands.application:application.run'],
},
author='Sébastien Eustace',
author_email='[email protected]',
url='https://github.com/sdispater/orator',
download_url='https://github.com/sdispater/orator/archive/%s.tar.gz' % __version__,
packages=find_packages(exclude=['tests']),
install_requires=requirements,
tests_require=['pytest', 'mock', 'flexmock==0.9.7', 'mysqlclient', 'psycopg2'],
test_suite='nose.collector',
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
setup(**setup_kwargs)