Skip to content
Snippets Groups Projects
setup.py 1.23 KiB
Newer Older
Paul McCarthy's avatar
Paul McCarthy committed
#!/usr/bin/env python

from setuptools import setup
Paul McCarthy's avatar
Paul McCarthy committed
from setuptools import find_packages
Paul McCarthy's avatar
Paul McCarthy committed

Paul McCarthy's avatar
Paul McCarthy committed
# Import version number from
# the project package (see
# the section on versioning).
Paul McCarthy's avatar
Paul McCarthy committed
from mypackage import __version__

Paul McCarthy's avatar
Paul McCarthy committed
# Read in requirements from
# the requirements.txt file.
Paul McCarthy's avatar
Paul McCarthy committed
with open('requirements.txt', 'rt') as f:
    requirements = [l.strip() for l in f.readlines()]

Paul McCarthy's avatar
Paul McCarthy committed
# Generate a list of all of the
# packages that are in your project.
packages = find_packages()

Paul McCarthy's avatar
Paul McCarthy committed
setup(

    name='Example project',
    description='Example Python project for PyTreat',
    url='https://git.fmrib.ox.ac.uk/fsl/pytreat-2018-practicals/',
    author='Paul McCarthy',
    author_email='pauldmccarthy@gmail.com',
    license='Apache License Version 2.0',

Paul McCarthy's avatar
Paul McCarthy committed
    packages=packages,

Paul McCarthy's avatar
Paul McCarthy committed
    version=__version__,

    install_requires=requirements,

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development :: Libraries :: Python Modules'],
)