Skip to content
Snippets Groups Projects
Commit 14cccdc9 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Make package pip-installable

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
parent ba61dd71
No related branches found
No related tags found
No related merge requests found
setup.py 0 → 100644
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')]
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment