-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (60 loc) · 2.54 KB
/
setup.py
File metadata and controls
70 lines (60 loc) · 2.54 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
from distutils.core import setup
import os
import re
import fnmatch
def find_package_data_files(directory):
for root, dirs, files in os.walk(directory):
for basename in files:
if fnmatch.fnmatch(basename, '*'):
filename = os.path.join(root, basename)
yield filename.replace('pyosl/', '', 1)
def _read(fname):
"""Returns contents of a file.
"""
fpath = os.path.dirname(__file__)
fpath = os.path.join(fpath, fname)
with open(fpath, 'r') as file_:
return file_.read()
def _get_version():
"""Returns library version by inspecting pyosl/__init__.py file.
"""
return re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
_read("pyosl/__init__.py"),
re.MULTILINE).group(1)
long_description = """
Python based ontology specification language, with tools
========================================================
The Python Ontology Specfication Lanaguage (pyosl) provides the documentation and implementation
of a methodology, with tools, for manipulating an ontology expressed in python according to a
metamodel documented in this package.
It should be used with one or more ontologies, defined in python as described in the
documentation, and identified via the configuration.
"""
setup(name = "pyosl",
long_description = long_description,
version = _get_version(),
description = "TODO",
author = "Bryan Lawrence",
maintainer = "Bryan Lawrence",
maintainer_email = "bryan.lawrence@ncas.ac.uk",
author_email = "bryan.lawrence@ncas.ac.uk",
url = "https://github.com/es-doc/pyosl",
download_url = "https://pypi.org/project/pyosl/#files",
platforms = ["Linux", "MacOS", "Windows"],
keywords = ['metadata', 'science', 'simulation', 'ontology',
'oceanography', 'meteorology', 'climate'],
classifiers = ["Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
],
packages = ['pyosl',
'pyosl/uml',
'pyosl/test',
'pyosl/tools',
],
package_data = {'pyosl': ['etc/*.ini']},
)