Commit 584b869a authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

MNT: setup.py

parent 2aad7422
Pipeline #5711 failed
#!/usr/bin/env python
import os.path as op
from setuptools import setup, find_packages
basedir = op.dirname(__file__)
with open(op.join(basedir, 'requirements.txt'), 'rt') as f:
install_requires = [line.strip() for line in f.readlines()]
install_requires = [line for line in install_requires if line != '']
version = {}
with open(op.join(basedir, 'fsl', 'add_module', '__init__.py')) as f:
for line in f:
if line.startswith('__version__ = '):
exec(line, version)
break
version = version['__version__']
with open(op.join(basedir, 'README.md'), 'rt') as f:
readme = f.read()
setup(
name='fsl_add_module',
version=version,
description='Script to download and install FSL modules',
long_description=readme,
long_description_content_type='text/markdown',
url='https://git.fmrib.ox.ac.uk/fsl/fsl_add_module',
author='Paul McCarthy',
author_email='paul.mccarthy@ndcn.ox.ac.uk',
license='Apache License Version 2.0',
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
install_requires=install_requires,
packages=find_packages(),
include_package_data=True,
entry_points={
'console_scripts' : [
'fsl_add_module = fsl.scripts.fsl_add_module:main',
]
}
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment