|
| 1 | +#!/usr/bin/env python |
| 2 | +# -*- coding: utf-8 -*- |
| 3 | +# |
| 4 | +# Copyright (c) 2020 The WorkflowHub Team. |
| 5 | +# |
| 6 | +# This program is free software: you can redistribute it and/or modify |
| 7 | +# it under the terms of the GNU General Public License as published by |
| 8 | +# the Free Software Foundation, either version 3 of the License, or |
| 9 | +# (at your option) any later version. |
| 10 | + |
| 11 | +import codecs |
| 12 | +import os.path |
| 13 | + |
1 | 14 | from setuptools import setup, find_packages
|
2 | 15 |
|
3 |
| -with open("README.md", "r") as fh: |
4 |
| - long_description = fh.read() |
| 16 | + |
| 17 | +def read(rel_path): |
| 18 | + here = os.path.abspath(os.path.dirname(__file__)) |
| 19 | + with codecs.open(os.path.join(here, rel_path), 'r') as fp: |
| 20 | + return fp.read() |
| 21 | + |
| 22 | + |
| 23 | +def get_version(rel_path): |
| 24 | + for line in read(rel_path).splitlines(): |
| 25 | + if line.startswith('__version__'): |
| 26 | + delim = '"' if '"' in line else "'" |
| 27 | + return line.split(delim)[1] |
| 28 | + else: |
| 29 | + raise RuntimeError("Unable to find version string.") |
| 30 | + |
| 31 | + |
| 32 | +with open('README.md', 'r') as fh: |
| 33 | + long_description = fh.read() |
5 | 34 |
|
6 | 35 | setup(
|
7 |
| - name="workflowhub", |
8 |
| - version="0.1", |
9 |
| - author="WorkflowHub team", |
10 |
| - |
11 |
| - description="Community Framework for Enabling Scientific Workflow Research and Education", |
12 |
| - long_description=long_description, |
13 |
| - long_description_content_type="text/markdown", |
14 |
| - url="https://github.com/workflowhub/workflowhub", |
15 |
| - packages=find_packages(), |
16 |
| - classifiers=[ |
17 |
| - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", |
18 |
| - "Operating System :: OS Independent", |
19 |
| - "Programming Language :: Python :: 3", |
20 |
| - "Programming Language :: Python :: 3.3", |
21 |
| - "Programming Language :: Python :: 3.4", |
22 |
| - "Programming Language :: Python :: 3.5", |
23 |
| - "Programming Language :: Python :: 3.6", |
24 |
| - "Programming Language :: Python :: 3.7", |
25 |
| - "Programming Language :: Python :: 3.8", |
26 |
| - "Programming Language :: Python :: 3.9", |
27 |
| - "Intended Audience :: Developers", |
28 |
| - "Intended Audience :: Education", |
29 |
| - "Intended Audience :: Science/Research", |
30 |
| - "Natural Language :: English", |
31 |
| - "Topic :: Documentation :: Sphinx", |
32 |
| - "Topic :: System :: Distributed Computing" |
33 |
| - ], |
34 |
| - python_requires='>=3.3', |
| 36 | + name='workflowhub', |
| 37 | + version=get_version("workflowhub/__init__.py"), |
| 38 | + license='GPLv3', |
| 39 | + author='WorkflowHub team', |
| 40 | + |
| 41 | + description='Community Framework for Enabling Scientific Workflow Research and Education', |
| 42 | + long_description=long_description, |
| 43 | + long_description_content_type='text/markdown', |
| 44 | + url='https://github.com/workflowhub/workflowhub', |
| 45 | + packages=find_packages(), |
| 46 | + install_requires=[ |
| 47 | + 'jsonschema', |
| 48 | + 'matplotlib', |
| 49 | + 'networkx', |
| 50 | + 'numpy', |
| 51 | + 'pygraphviz', |
| 52 | + 'python-dateutil', |
| 53 | + 'requests', |
| 54 | + 'scipy', |
| 55 | + 'setuptools' |
| 56 | + ], |
| 57 | + classifiers=[ |
| 58 | + 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', |
| 59 | + 'Operating System :: OS Independent', |
| 60 | + 'Programming Language :: Python :: 3', |
| 61 | + 'Programming Language :: Python :: 3.3', |
| 62 | + 'Programming Language :: Python :: 3.4', |
| 63 | + 'Programming Language :: Python :: 3.5', |
| 64 | + 'Programming Language :: Python :: 3.6', |
| 65 | + 'Programming Language :: Python :: 3.7', |
| 66 | + 'Programming Language :: Python :: 3.8', |
| 67 | + 'Programming Language :: Python :: 3.9', |
| 68 | + 'Intended Audience :: Developers', |
| 69 | + 'Intended Audience :: Education', |
| 70 | + 'Intended Audience :: Science/Research', |
| 71 | + 'Natural Language :: English', |
| 72 | + 'Topic :: Documentation :: Sphinx', |
| 73 | + 'Topic :: System :: Distributed Computing' |
| 74 | + ], |
| 75 | + python_requires='>=3.3', |
35 | 76 | )
|
0 commit comments