2022-06-17 14:23:05 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
# Copyright 2010-2022 Google LLC
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
2020-03-09 11:48:13 +01:00
|
|
|
"""Setup.py for data package."""
|
|
|
|
|
from os import path
|
|
|
|
|
import sys
|
2016-08-04 21:07:14 +02:00
|
|
|
|
2020-03-09 11:48:13 +01:00
|
|
|
setuptools_import_error_message = """setuptools is not installed for """ + sys.executable + """
|
2016-08-04 21:07:14 +02:00
|
|
|
Please follow this link for installing instructions :
|
|
|
|
|
https://pypi.python.org/pypi/setuptools
|
2020-03-09 11:48:13 +01:00
|
|
|
make sure you use \"""" + sys.executable + """\" during the installation"""
|
2016-08-04 21:07:14 +02:00
|
|
|
|
|
|
|
|
try:
|
2020-03-09 11:48:13 +01:00
|
|
|
from setuptools import setup # pylint: disable=g-import-not-at-top
|
2016-08-04 21:07:14 +02:00
|
|
|
except ImportError:
|
2020-03-09 11:48:13 +01:00
|
|
|
raise ImportError(setuptools_import_error_message)
|
2016-07-12 14:55:11 +02:00
|
|
|
|
2014-01-04 11:12:36 +00:00
|
|
|
|
|
|
|
|
# Utility function to read the README file.
|
|
|
|
|
# Used for the long_description. It's nice, because now 1) we have a top level
|
|
|
|
|
# README file and 2) it's easier to type in the README file than to put a raw
|
|
|
|
|
# string in below ...
|
|
|
|
|
def read(fname):
|
2020-03-09 11:48:13 +01:00
|
|
|
return open(path.join(path.dirname(__file__), fname)).read()
|
2014-01-04 11:12:36 +00:00
|
|
|
|
2020-03-09 11:48:13 +01:00
|
|
|
install_requires = ['ortoolsXXXX == VVVV']
|
2016-07-12 14:55:11 +02:00
|
|
|
|
2014-01-04 11:12:36 +00:00
|
|
|
setup(
|
|
|
|
|
name='ortools_examples',
|
2016-06-21 11:41:13 +02:00
|
|
|
version='VVVV',
|
2020-03-09 11:48:13 +01:00
|
|
|
install_requires=install_requires,
|
2014-01-04 11:12:36 +00:00
|
|
|
license='Apache 2.0',
|
2022-05-20 18:17:00 +02:00
|
|
|
author='Google LLC',
|
2020-08-15 20:36:30 +02:00
|
|
|
author_email='or-tools@google.com',
|
2020-03-09 11:48:13 +01:00
|
|
|
description='Google OR-Tools python libraries and modules',
|
|
|
|
|
keywords=('operations research, constraint programming, ' +
|
|
|
|
|
'linear programming,' + 'flow algorithms,' +
|
|
|
|
|
'python'),
|
|
|
|
|
url='https://developers.google.com/optimization/',
|
|
|
|
|
classifiers=[
|
2014-01-04 11:12:36 +00:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
|
|
|
|
'Operating System :: MacOS :: MacOS X',
|
|
|
|
|
'Operating System :: Microsoft :: Windows',
|
|
|
|
|
'Operating System :: POSIX :: Linux',
|
2016-07-12 14:55:11 +02:00
|
|
|
'Programming Language :: Python :: 2',
|
2014-01-04 11:12:36 +00:00
|
|
|
'Programming Language :: Python :: 2.7',
|
2016-04-13 13:51:05 +02:00
|
|
|
'Programming Language :: Python :: 3',
|
2016-07-12 14:55:11 +02:00
|
|
|
'Programming Language :: Python :: 3.5',
|
2017-01-26 19:14:01 +01:00
|
|
|
'Programming Language :: Python :: 3.6',
|
2014-01-04 11:12:36 +00:00
|
|
|
'Topic :: Office/Business :: Scheduling',
|
|
|
|
|
'Topic :: Scientific/Engineering',
|
|
|
|
|
'Topic :: Scientific/Engineering :: Mathematics',
|
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules'],
|
2020-03-09 11:48:13 +01:00
|
|
|
long_description=read('README.txt'),
|
2014-01-04 11:12:36 +00:00
|
|
|
)
|