Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
*~
__pycache__
.eggs
build
dist
fluid.egg-info
1 change: 1 addition & 0 deletions fluid/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from fluid.pyfunc import *
File renamed without changes.
4 changes: 2 additions & 2 deletions fluid.py → fluid/pyfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import yaml

import tekton
import k8s
import fluid.tekton as tekton
import fluid.k8s as k8s


def dump_yaml(content):
Expand Down
2 changes: 1 addition & 1 deletion tekton.py → fluid/tekton.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'''

import inspect
import k8s
import fluid.k8s as k8s


def task(func):
Expand Down
5 changes: 5 additions & 0 deletions fluid/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-

VERSION = (0, 0, 1, 'dev')

__version__ = '.'.join(map(str, VERSION))
77 changes: 77 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# -*- coding: utf-8 -*-

import io
import os

from setuptools import find_packages, setup

# Package meta-data.
NAME = 'fluid'
DESCRIPTION = 'Tekton Workflow compiler.'
URL = 'https://github.com/wangkuiyi/fluid'
EMAIL = 'sqlflow@list.alibaba-inc.com'
AUTHOR = 'SQLFlow Dev'
REQUIRES_PYTHON = '>=3.5.0'
VERSION = None

# What packages are required for this module to be executed?
SETUP_REQUIRED = ['pytest-runner']
TEST_REQUIRED = [
'pytest',
]

# What packages are optional?
EXTRAS = {}

# The rest you shouldn't have to touch too much :)
# ------------------------------------------------
# Except, perhaps the License and Trove Classifiers!
# If you do change the License, remember to change the Trove Classifier for that!

here = os.path.abspath(os.path.dirname(__file__))

# Import the README and use it as the long-description.
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
try:
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = '\n' + f.read()
except FileNotFoundError:
long_description = DESCRIPTION

# Load the package's version.py module as a dictionary.
about = {}
if not VERSION:
with open(os.path.join(here, NAME, 'version.py')) as f:
exec(f.read(), about)
else:
about['__version__'] = VERSION

# Where the magic happens:
setup(
name=NAME,
version=about['__version__'],
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
url=URL,
packages=find_packages(exclude=('tests', )),
setup_requires=SETUP_REQUIRED,
tests_require=TEST_REQUIRED,
extras_require=EXTRAS,
license='Apache License 2.0',
classifiers=[
# Trove classifiers
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
],
)