setup.py 2.1 KB
Newer Older
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
1
2
3
4
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages

Nicolas  MAILLET's avatar
Nicolas MAILLET committed
5
6
_MAJOR = 1
_MINOR = 0
7
_MICRO = 3
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
8
9
10
11
12
13
14
15
16
17
18
version = '%d.%d.%d' % (_MAJOR, _MINOR, _MICRO)
release = '%d.%d' % (_MAJOR, _MINOR)

metainfo = {
    'authors': {
        'Maillet': ('Nicolas Maillet', 'nicolas.maillet@pasteur.fr'),
        },
    'version': version,
    'license': 'GPLv3',
    'description': 'In silico protein digestion',
    'platforms': ['Linux', 'Unix', 'MacOsX', 'Windows'],
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
19
    "keywords": ["protein", "peptide", "enzyme", "protease", "digestion"],
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
20
    'classifiers': [
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
21
        'Development Status :: 5 - Production/Stable',
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
22
        'Intended Audience :: Science/Research',
23
        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
24
        'Operating System :: OS Independent',
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
25
        'Programming Language :: Python :: 3.5',
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
26
        'Programming Language :: Python :: 3.6',
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
27
        'Programming Language :: Python :: 3.7',
28
        'Topic :: Scientific/Engineering :: Bio-Informatics',]
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
    }


with open('README.rst') as f:
    readme = f.read()

requirements = open("requirements.txt").read().split()

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
    # mock, pillow, sphinx, sphinx_rtd_theme installed on RTD
    # but we also need numpydoc and sphinx_gallery
    extra_packages = ["numpydoc", "sphinx_gallery"]
    requirements += extra_packages


setup(
    name='rpg',
    version=version,
    maintainer=metainfo['authors']['Maillet'][0],
    maintainer_email=metainfo['authors']['Maillet'][1],
    author='Nicolas Maillet',
    author_email=metainfo['authors']['Maillet'][1],
    long_description=readme,
    keywords=metainfo['keywords'],
    description=metainfo['description'],
    license=metainfo['license'],
    platforms=metainfo['platforms'],
    classifiers=metainfo['classifiers'],
    zip_safe=False,
    packages=find_packages(),
    install_requires=requirements,

    # This is recursive include of data files
    exclude_package_data={"": ["__pycache__"]},
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
64
65
66
67
68
69
    # Command line
    entry_points={
        'console_scripts': [
            'rpg=rpg.RapidPeptidesGenerator:main'
        ]
    }
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
70
)