forked from dalibo/pg_activity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (33 loc) · 1.06 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
import sys
data_files = None
for opt in sys.argv:
if opt == '--with-man':
data_files = [ ('/usr/share/man/man1', ['docs/man/pg_activity.1']) ]
sys.argv.remove(opt)
from setuptools import setup
if sys.version_info < (2, 6):
raise SystemExit('ERROR: pg_activity need at least python 2.6 to work.')
with open('README.md') as fo:
long_description = fo.read()
setup(
name = 'pg_activity',
version = '1.5.0',
author = 'Julien Tachoires',
author_email = 'julmon@gmail.com',
scripts = ['pg_activity'],
packages = ['pgactivity'],
url = 'https://github.com/julmon/pg_activity',
license = 'LICENSE.txt',
description = 'Command line tool for PostgreSQL server activity monitoring.',
long_description = long_description,
long_description_content_type='text/markdown',
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
],
install_requires = [
"psutil >= 0.4.1",
],
data_files = data_files,
)