forked from MetOffice/stylist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (56 loc) · 1.91 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
"""Setup Stylist for distribution on PyPI."""
from ast import literal_eval
import os
from setuptools import setup, find_packages # type: ignore
# Get the long description from the README file
HERE = os.path.dirname(__file__)
with open(os.path.join(HERE, 'README.md'), encoding='utf-8',) as handle:
LONG_DESCRIPTION = handle.read()
with open(
os.path.join(HERE, 'source', 'stylist', '__init__.py'),
encoding='utf-8',
) as handle:
for line in handle:
items = line.split('=', 1)
if items[0].strip() == '__version__':
VERSION = literal_eval(items[1].strip())
break
else:
raise RuntimeError('Cannot determine package version.')
setup(
name='stylist',
version=VERSION,
description=(
'Extensible code style checker'
' currently supporting Fortran, PSyclone DSL, etc'
),
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
url='https://github.com/MetOffice/stylist',
author='Met Office',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Quality Assurance',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
keywords='linter fortran psyclone',
package_dir={'': 'source'},
packages=find_packages(where='source'),
python_requires='>=3.6, <4',
install_requires=['fparser > 0.0.10'],
extras_require={
'dev': ['check-manifest', 'flake8'],
'test': ['pytest', 'pytest-cov'],
},
entry_points={
'console_scripts': ['stylist=stylist.__main__:main'],
},
project_urls={
'Bug Reports': 'https://github.com/MetOffice/stylist/issues',
'Source': 'https://github.com/MetOffice/stylist/',
},
)