-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
55 lines (46 loc) · 1.48 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
import os
import re
import shutil
import sys
from setuptools import setup
def read_file(*paths):
here = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(here, *paths)) as f:
return f.read()
def get_version():
version_file = read_file('pgmanager', '__init__.py')
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
# Get long_description from index.rst:
long_description = read_file('README.md')
requirements = read_file('requirements.txt')
setup(
name='pgmanager',
version=get_version(),
description='Administrate a Postgres Multi-Tenancy Server',
long_description=long_description,
include_package_data=True,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
],
keywords='Administrate a Postgres Multi-Tenancy Server',
author='Nielson Santana',
author_email='[email protected]',
maintainer='',
license='MIT',
py_modules=['pgmanager'],
packages=['pgmanager'],
install_requires=[
requirements
],
entry_points={
'console_scripts': ['pgmanager=pgmanager:main'],
},
zip_safe=False,
)