-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsetup.py
58 lines (49 loc) · 1.59 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
# -*- coding: utf-8 -*-
# Inits
from setuptools import setup, find_packages
import sys
import os
# Version, etc
sys.path.insert(0, 'sphinxfortran')
from sphinxfortran import ( __version__ as version, __author__ as author,
__email__ as author_email, __date__ as date)
del sys.path[0]
# From files
base = os.path.dirname(__file__)
with open(os.path.join(base, 'README.rst')) as f:
long_description = f.read()
with open(os.path.join(base, 'requirements.txt')) as f:
requires = filter(None, f.read().split('\n'))
# Other infos
description = 'Fortran domain and autodoc extensions to Sphinx'
maintainer = author
maintainer_email = author_email
license = "CeCiLL-A"
url = "http://sphinx-fortran.readthedocs.org"
classifiers = [
"Framework :: Sphinx :: Extension",
("License :: OSI Approved :: CEA CNRS Inria Logiciel "
"Libre License, version 2.1 (CeCILL-2.1)"),
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
]
if __name__ == '__main__':
# Lauch setup
setup(name='sphinx-fortran',
version=version,
date=date,
description=description,
long_description=long_description,
author=author,
author_email=author_email,
maintainer=author,
maintainer_email=author_email,
license=license,
url=url,
classifiers=classifiers,
packages=find_packages(),
install_requires=requires,
)