Forked from
ResearchAndDevelopment / LINC
243 commits behind the upstream repository.
-
Marcel Loose authored
Added a setup.py file, which makes the package installable through pip. Former-commit-id: 320bf259 [formerly 696f56d6] Former-commit-id: f132298c Former-commit-id: 6e0223bc
Marcel Loose authoredAdded a setup.py file, which makes the package installable through pip. Former-commit-id: 320bf259 [formerly 696f56d6] Former-commit-id: f132298c Former-commit-id: 6e0223bc
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
setup.py 1.26 KiB
from setuptools import setup
import os
import pathlib
def read(rel_path):
"""Function read() was copied from setup.py in Pip package."""
here = os.path.abspath(os.path.dirname(__file__))
# intentionally *not* adding an encoding option to open, See:
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
with open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
setup(
name='prefactor3-cwl',
version='0.3.0',
url='https://git.astron.nl/eosc/prefactor3-cwl/',
description="Prefactor 3 pipeline (CWL version)",
long_description=read('README.md'),
platforms='any',
classifiers=['Programming Language :: Python :: 3',
'Development Status :: 3 - Alpha',
'Natural Language :: English',
'Intended Audience :: Science/Research',
'Operating System :: POSIX :: Linux',
'Topic :: Scientific/Engineering :: Astronomy'],
install_requires=[
'prefactor@git+https://github.com/lofar-astron/prefactor.git'
],
data_files=[(os.path.join('share', 'prefactor', dir),
[str(p) for p in pathlib.Path(dir).glob('**/*.cwl')]) for dir in
('lofar-cwl', 'steps', 'subworkflow', 'workflows')]
)