-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
94 lines (77 loc) · 2.48 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#
# SetupTools script for nevis
#
from setuptools import setup, find_packages
# Get version number
import os
import sys
sys.path.append(os.path.abspath('nevis'))
from _nevis_version import __version__ as version # noqa
sys.path.pop()
del os, sys
# Load text for long description
with open('README.md', encoding='utf-8') as f:
readme = f.read()
# Go!
setup(
# See https://python-packaging.readthedocs.io/en/latest/index.html
# for details of what goes in here.
# Module name (lowercase)
name='nevis',
# Version
version=version,
# Description
description=('Presents the landscape of Great Britain as a testbed for'
' optimisation and sampling methods.'),
long_description=readme,
long_description_content_type='text/markdown',
# Author and license
license='BSD 3-clause license',
author='The Where Is Ben Nevis team',
author_email='[email protected]',
# Project URLs (only first is required, rest is for PyPI)
url='https://github.com/CardiacModelling/BenNevis',
project_urls={
'Bug Tracker': 'https://github.com/CardiacModelling/BenNevis/issues/',
'Documentation': 'https://nevis.readthedocs.io/',
'Source Code': 'https://github.com/CardiacModelling/BenNevis/',
},
# Classifiers for pypi
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
],
# Packages to include
packages=find_packages(include=('nevis', 'nevis.*')),
# Include non-python files (via MANIFEST.in)
include_package_data=True,
# List of dependencies
install_requires=[
'bnglonlat',
'matplotlib>=1.5',
'numpy',
'pykml',
'scipy',
'setuptools',
'zipfile-deflate64',
],
# Optional extras
extras_require={
'dev': [
#'coverage', # Coverage checking
'flake8>=3', # Style checking
'sphinx>=1.5, !=1.7.3', # Doc generation
],
'extras': [
'convertbng', # Accurate version of bnglonlat
'pillow', # To check generated image sizes (PIL)
],
},
# Python version
python_requires='>=3.6',
)