|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +import io |
| 4 | +import os |
| 5 | + |
| 6 | +from setuptools import find_packages, setup |
| 7 | + |
| 8 | +# Package meta-data. |
| 9 | +NAME = 'fluid' |
| 10 | +DESCRIPTION = 'Tekton Workflow compiler.' |
| 11 | +URL = 'https://github.com/wangkuiyi/fluid' |
| 12 | +EMAIL = 'sqlflow@list.alibaba-inc.com' |
| 13 | +AUTHOR = 'SQLFlow Dev' |
| 14 | +REQUIRES_PYTHON = '>=3.5.0' |
| 15 | +VERSION = None |
| 16 | + |
| 17 | +# What packages are required for this module to be executed? |
| 18 | +SETUP_REQUIRED = ['pytest-runner'] |
| 19 | +TEST_REQUIRED = [ |
| 20 | + 'pytest', |
| 21 | +] |
| 22 | + |
| 23 | +# What packages are optional? |
| 24 | +EXTRAS = {} |
| 25 | + |
| 26 | +# The rest you shouldn't have to touch too much :) |
| 27 | +# ------------------------------------------------ |
| 28 | +# Except, perhaps the License and Trove Classifiers! |
| 29 | +# If you do change the License, remember to change the Trove Classifier for that! |
| 30 | + |
| 31 | +here = os.path.abspath(os.path.dirname(__file__)) |
| 32 | + |
| 33 | +# Import the README and use it as the long-description. |
| 34 | +# Note: this will only work if 'README.md' is present in your MANIFEST.in file! |
| 35 | +try: |
| 36 | + with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: |
| 37 | + long_description = '\n' + f.read() |
| 38 | +except FileNotFoundError: |
| 39 | + long_description = DESCRIPTION |
| 40 | + |
| 41 | +# Load the package's version.py module as a dictionary. |
| 42 | +about = {} |
| 43 | +if not VERSION: |
| 44 | + with open(os.path.join(here, NAME, 'version.py')) as f: |
| 45 | + exec(f.read(), about) |
| 46 | +else: |
| 47 | + about['__version__'] = VERSION |
| 48 | + |
| 49 | +# Where the magic happens: |
| 50 | +setup( |
| 51 | + name=NAME, |
| 52 | + version=about['__version__'], |
| 53 | + description=DESCRIPTION, |
| 54 | + long_description=long_description, |
| 55 | + long_description_content_type='text/markdown', |
| 56 | + author=AUTHOR, |
| 57 | + author_email=EMAIL, |
| 58 | + python_requires=REQUIRES_PYTHON, |
| 59 | + url=URL, |
| 60 | + packages=find_packages(exclude=('tests', )), |
| 61 | + setup_requires=SETUP_REQUIRED, |
| 62 | + tests_require=TEST_REQUIRED, |
| 63 | + extras_require=EXTRAS, |
| 64 | + license='Apache License 2.0', |
| 65 | + classifiers=[ |
| 66 | + # Trove classifiers |
| 67 | + # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers |
| 68 | + 'License :: OSI Approved :: Apache Software License', |
| 69 | + 'Programming Language :: Python', |
| 70 | + 'Programming Language :: Python :: 3 :: Only', |
| 71 | + 'Programming Language :: Python :: 3.5', |
| 72 | + 'Programming Language :: Python :: 3.6', |
| 73 | + 'Programming Language :: Python :: 3.7', |
| 74 | + 'Programming Language :: Python :: Implementation :: CPython', |
| 75 | + 'Programming Language :: Python :: Implementation :: PyPy' |
| 76 | + ], |
| 77 | +) |
0 commit comments