2016-03-14 05:26:59 -05:00
|
|
|
#########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2019-01-02 04:24:12 -06:00
|
|
|
# Copyright (C) 2013 - 2019, The pgAdmin Development Team
|
2016-03-14 05:26:59 -05:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import imp
|
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
from codecs import open
|
|
|
|
|
2017-08-25 06:17:47 -05:00
|
|
|
if sys.version_info[0] >= 3:
|
|
|
|
import builtins
|
|
|
|
else:
|
|
|
|
import __builtin__ as builtins
|
|
|
|
|
|
|
|
# Ensure the global server mode is set.
|
|
|
|
builtins.SERVER_MODE = None
|
|
|
|
|
2017-03-07 04:35:24 -06:00
|
|
|
"""This script helps to generate PIP packages"""
|
2016-03-14 05:26:59 -05:00
|
|
|
|
|
|
|
# Get the requirements list for the current version of Python
|
2017-02-26 03:14:22 -06:00
|
|
|
req_file='../requirements.txt'
|
2016-03-14 05:26:59 -05:00
|
|
|
|
2017-03-30 22:16:43 -05:00
|
|
|
with open(req_file, 'r') as reqf:
|
2016-10-03 10:37:20 -05:00
|
|
|
if sys.version_info[0] >= 3:
|
|
|
|
required = reqf.read().splitlines()
|
|
|
|
else:
|
|
|
|
required = reqf.read().decode("utf-8").splitlines()
|
2016-03-14 05:26:59 -05:00
|
|
|
|
2017-02-26 04:01:23 -06:00
|
|
|
# Remove any requirements with environment specifiers. These
|
|
|
|
# must be explicitly listed in extras_require below.
|
|
|
|
for req in required:
|
|
|
|
if ";" in req:
|
|
|
|
required.remove(req)
|
|
|
|
|
2016-03-14 05:26:59 -05:00
|
|
|
# Get the app version
|
2016-06-15 11:09:05 -05:00
|
|
|
modl = imp.load_source('APP_VERSION', '../web/config.py')
|
2016-03-14 05:26:59 -05:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name='pgadmin4',
|
|
|
|
|
|
|
|
version=modl.APP_VERSION,
|
|
|
|
|
|
|
|
description='PostgreSQL Tools',
|
|
|
|
long_description='Administration and management tools for the PostgreSQL database.',
|
|
|
|
|
2016-05-21 12:54:12 -05:00
|
|
|
url='https://www.pgadmin.org/',
|
2016-03-14 05:26:59 -05:00
|
|
|
|
|
|
|
# Author details
|
|
|
|
author='The pgAdmin Development Team',
|
|
|
|
author_email='pgadmin-hackers@postgresql.org',
|
|
|
|
|
|
|
|
# Choose your license
|
|
|
|
license='PostgreSQL Licence',
|
|
|
|
|
|
|
|
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
|
|
|
classifiers=[
|
|
|
|
# 3 - Alpha
|
|
|
|
# 4 - Beta
|
|
|
|
# 5 - Production/Stable
|
2016-10-03 10:42:36 -05:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2016-03-14 05:26:59 -05:00
|
|
|
|
2017-03-07 04:35:24 -06:00
|
|
|
# Supported programming languages
|
2016-03-14 05:26:59 -05:00
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Programming Language :: Python :: 3.3',
|
|
|
|
'Programming Language :: Python :: 3.4',
|
2017-02-26 03:14:22 -06:00
|
|
|
'Programming Language :: Python :: 3.5',
|
|
|
|
'Programming Language :: Python :: 3.6'
|
2016-03-14 05:26:59 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
keywords='pgadmin4,postgresql,postgres',
|
|
|
|
|
|
|
|
# Specify package names here.
|
|
|
|
packages=["pgadmin4",],
|
|
|
|
|
2017-03-07 04:35:24 -06:00
|
|
|
# To include additional files within the package
|
2016-03-14 05:26:59 -05:00
|
|
|
include_package_data=True,
|
|
|
|
|
|
|
|
install_requires=required,
|
|
|
|
|
2017-02-26 04:01:23 -06:00
|
|
|
extras_require={
|
2018-04-04 04:47:01 -05:00
|
|
|
":python_version<='2.7'": [
|
2018-06-28 07:03:24 -05:00
|
|
|
"importlib==1.0.3"
|
2018-04-04 04:47:01 -05:00
|
|
|
],
|
2017-02-26 04:01:23 -06:00
|
|
|
},
|
2016-03-14 05:26:59 -05:00
|
|
|
|
2018-12-20 03:15:26 -06:00
|
|
|
# Specify data files to be included.
|
2016-03-14 05:26:59 -05:00
|
|
|
##package_data="",
|
|
|
|
|
|
|
|
# To package data files outside package directory.
|
|
|
|
##data_files=,
|
|
|
|
|
|
|
|
# 'scripts' keyword is used to provide executable scripts. It provides cross-platform support.
|
2019-02-12 08:04:45 -06:00
|
|
|
entry_points={
|
|
|
|
'console_scripts': ['pgadmin4=pgadmin4.pgAdmin4.__init__:main'],
|
|
|
|
},
|
2016-03-14 05:26:59 -05:00
|
|
|
|
|
|
|
)
|