-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
191 lines (183 loc) · 6.07 KB
/
setup.py
File metadata and controls
191 lines (183 loc) · 6.07 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup for packaging |pago|"
"""
__docformat__ = "restructuredtext en"
import os
from setuptools import setup, find_packages
VERSION_FILE = 'VERSION'
version = open(VERSION_FILE).read().strip()
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="pypago",
version=version,
author="PAGO team",
author_email="pago-dev@groupes.renater.fr",
maintainer='Nicolas Barrier',
maintainer_email='nicolas.barrier@ird.fr',
description="Python Physical Analysis of Gridded Ocean",
long_description_content_type="text/markdown",
keywords="ocean; grid model; transport; sections; budgets; heat; freshwater; ROMS; NEMO; IPSL; CNRM; GFDL",
include_package_data=True,
url="https://sourcesup.renater.fr/pago",
packages=find_packages(),
install_requires=['docutils>=0.12',
'sphinx>=1.3.1',
'pylint>=1.4.2',
'pyenchant>=1.6.6',
'pep8>=1.6.2',
'pyflakes>=0.9.2',
'check-manifest>=0.25',
'numpy>=1.9',
'netCDF4>=1.1',
'matplotlib>=1.4',
'basemap>=1.0',
],
requires=['numpy(>=1.9.2)',
'matplotlib(>=1.43)',
'basemap(>=1.0.7)',
'netcdf4(>1.1.9)',
],
long_description=open('README.md').read(),
classifiers = [
#"Development Status :: 5 - Production/Stable",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Unix",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
# ++ test_suite =
# ++ download_url
platforms=['linux', 'mac osx'],
scripts = ['pypago/bin/make_grid.py',
'pypago/bin/make_gridsec.py',
'pypago/bin/make_areas.py',
'pypago/bin/make_coords.py',
'pypago/guis/gui_sections_edition.py',
'pypago/guis/gui_grid_model.py']
)
#
# todo
# ====
#
# validation with :samp:` python setup.py check` and
# :samp:`python setup.py test`
#
# check evolution of 'sphinxcontrib-bibtex after >=0.3.3
#
# identify scripts to be place in bin/, to be documented with man
#
# add requirement for developer (doc builder, commiter) : doc8,
# hunspell (with its hunspell-dict-en_us dictionary)
#
# think about uninstall
#
# requires or install_requires
#
# make a difference between requirement for doc production and execution
#
# make it work for pip install
#
# make it work for pip register
#
# license
#
# complete with pipy classifiers
# cf. http://pypi.python.org/pypi?%3aaction=list_classifiers
#
# check for the next version of setuptools if sphinx latexpdf builder available
#
# link to svn repository
#
# EVOLUTIONS
# ==========
#
# - fplod 20151030T145305Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * version uniquely defined in :file:`VERSION`
# thanks to https://packaging.python.org/en/latest/single_source_version/
# and others
# * project name not anymore pypago. replace by PAGO
#
# - fplod 20151028T171338Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * move usage to packaging.rst
#
# - fplod 20150918T145617Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * add requirement pyenchant
#
# - fplod 20150914T085629Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * give up usage of sphinxcontrib-bibtex
#
# - fplod 20150811T123543Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * usage of find_packages to avoid hard coded path of pypago sub-directories
# * add |matlab| files see :file:`matlab/__init__.py` and file:`MANIFEST.in`
#
# - fplod 20150810T113415Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * add wheel distribution making (this will replace egg)
# thanks to https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
# not so dirty ...
#
# - fplod 20150807T155911Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * get inspired by pylint version of setup files
# cf. https://bitbucket.org/logilab/pylint/src
#
# - fplod 20150806T125248Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * add requirement of pep8, pyflakes, pylint
#
# .. note:: pep8 bug
#
# pep8 1.6.2 do not detect syntax error in
# https://sourcesup.renater.fr/scm/viewvc.php/trunk/pypago/pypago.py?view=markup&revision=53&root=pago&pathrev=53 # pylint: disable=line-too-long
#
# - fplod 20150805T120655Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * more precise requirements
# * fix typo for sphinxcontrib.bibtex (module vs package name)
#
# - fplod 20150804T160106Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * better pylint mark
# * read README.txt to fill long_description
# see output of :samp:`python setup.py --long_description`
#
# - fplod 20150731T102757Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * new topics, add audience thanks to inspiring
# https://forge.ifremer.fr/scm/viewvc.php/trunk/setup.py?view=markup&root=vacumm
#
# - fplod 20150730T160440Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * thanks to MANIFEST.in, HTML and latexpdf produced by sphinx
# are in the tar.gz file
#
# - fplod 20150730T123052Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * apply https://docs.python.org/2/distutils/examples.html
# recommendations for packages
# * add command for production of sphinx html builder (see also setup.cfg)
#
# - fplod 20150728T154914Z guest-242.locean-ipsl.upmc.fr (Darwin)
#
# * 2d round - missing doc, test
#
# - fplod 20150618T114221Z callisto.locean-ipsl.upmc.fr (Linux)
#
# * 1st draft thanks to
# http://pythonhosted.org/an_example_pypi_project/setuptools.html