|
| 1 | +# Copyright (c) 2022 , IRIS-HEP |
| 2 | +# All rights reserved. |
| 3 | +# |
| 4 | +# Redistribution and use in source and binary forms, with or without |
| 5 | +# modification, are permitted provided that the following conditions are met: |
| 6 | +# |
| 7 | +# * Redistributions of source code must retain the above copyright notice, this |
| 8 | +# list of conditions and the following disclaimer. |
| 9 | +# |
| 10 | +# * Redistributions in binary form must reproduce the above copyright notice, |
| 11 | +# this list of conditions and the following disclaimer in the documentation |
| 12 | +# and/or other materials provided with the distribution. |
| 13 | +# |
| 14 | +# * Neither the name of the copyright holder nor the names of its |
| 15 | +# contributors may be used to endorse or promote products derived from |
| 16 | +# this software without specific prior written permission. |
| 17 | +# |
| 18 | +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 19 | +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 20 | +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 21 | +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 22 | +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 23 | +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 24 | +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 25 | +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 26 | +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 | +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | +# |
| 29 | + |
| 30 | +# setuptools loads some plugins necessary for use here. |
| 31 | +from setuptools import find_packages # noqa: F401 |
| 32 | +from distutils.core import setup |
| 33 | +import sys |
| 34 | +import os |
| 35 | + |
| 36 | +# Use the readme as the long description. |
| 37 | +with open("README.md", "r") as fh: |
| 38 | + long_description = fh.read() |
| 39 | + |
| 40 | +if sys.version_info[0] < 3: |
| 41 | + raise NotImplementedError("Do not support version 2 of python") |
| 42 | + |
| 43 | +extra_test_packages = [] |
| 44 | + |
| 45 | +version = os.getenv("servicex_version") |
| 46 | +if version is None: |
| 47 | + version = "0.1a1" |
| 48 | +else: |
| 49 | + version = version.split("/")[-1] |
| 50 | + |
| 51 | +setup( |
| 52 | + name="servicex_code_gen_lib", |
| 53 | + version=version, |
| 54 | + packages=["servicex_codegen"], |
| 55 | + scripts=[], |
| 56 | + description="Library for creating ServiceX Code Generators", |
| 57 | + long_description=long_description, |
| 58 | + long_description_content_type="text/markdown", |
| 59 | + author="Ben Galewsky (IRIS-HEP/NCSA/University of Illinois)", |
| 60 | + author_email="bengal1@illinois.edu", |
| 61 | + maintainer="Ben Galewsky (IRIS-HEP/NCSA/University of Illinois)", |
| 62 | + maintainer_email="bengal1@illinois.edu", |
| 63 | + url="https://github.com/ssl-hep/ServiceX_Code_Generator_lib", |
| 64 | + license="BSD", |
| 65 | + python_requires=">=3.7, <3.11", |
| 66 | + test_suite="tests", |
| 67 | + install_requires=[ |
| 68 | + "Flask==1.1.2", |
| 69 | + "Flask-RESTful==0.3.8", |
| 70 | + "Flask-WTF==0.14.3" |
| 71 | + ], |
| 72 | + extras_require={ |
| 73 | + "test": [ |
| 74 | + "pytest>=3.9", |
| 75 | + "pytest-mock", |
| 76 | + "pytest-cov", |
| 77 | + "coverage", |
| 78 | + "flake8", |
| 79 | + "codecov", |
| 80 | + "autopep8", |
| 81 | + "twine", |
| 82 | + "black", |
| 83 | + ] |
| 84 | + + extra_test_packages, |
| 85 | + }, |
| 86 | + classifiers=[ |
| 87 | + "Development Status :: 3 - Alpha", |
| 88 | + # "Development Status :: 4 - Beta", |
| 89 | + # "Development Status :: 5 - Production/Stable", |
| 90 | + # "Development Status :: 6 - Mature", |
| 91 | + "Intended Audience :: Developers", |
| 92 | + "Intended Audience :: Information Technology", |
| 93 | + "Programming Language :: Python", |
| 94 | + "Topic :: Software Development", |
| 95 | + "Topic :: Utilities", |
| 96 | + "Programming Language :: Python", |
| 97 | + "Programming Language :: Python :: 3.7", |
| 98 | + "Programming Language :: Python :: 3.8", |
| 99 | + "Programming Language :: Python :: 3.9", |
| 100 | + "Programming Language :: Python :: 3.10", |
| 101 | + ], |
| 102 | + platforms="Any", |
| 103 | +) |
0 commit comments