forked from regro/regolith
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·64 lines (55 loc) · 1.57 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
#!/usr/bin/env python
# coding=utf-8
"""The regolith installer."""
from __future__ import print_function
import os
import sys
try:
from setuptools import setup
from setuptools.command.develop import develop
HAVE_SETUPTOOLS = True
except ImportError:
from distutils.core import setup
HAVE_SETUPTOOLS = False
from regolith import __version__ as RG_VERSION
def main():
try:
if "--name" not in sys.argv:
print(logo)
except UnicodeEncodeError:
pass
with open(os.path.join(os.path.dirname(__file__), "README.rst"), "r") as f:
readme = f.read()
skw = dict(
name="regolith",
description="A research group content management system",
long_description=readme,
license="CC0",
version='0.5.0',
author="Anthony Scopatz",
maintainer="Anthony Scopatz",
author_email="[email protected]",
url="https://github.com/scopatz/regolith",
platforms="Cross Platform",
classifiers=["Programming Language :: Python :: 3"],
packages=["regolith", "regolith.builders"],
package_dir={"regolith": "regolith"},
package_data={
"regolith": [
"templates/*",
"static/*.*",
"static/img/*.*",
"*.xsh",
]
},
scripts=["scripts/regolith"],
zip_safe=False,
)
if HAVE_SETUPTOOLS:
skw["setup_requires"] = []
# skw['install_requires'] = ['Jinja2', 'pymongo']
setup(**skw)
logo = """
"""
if __name__ == "__main__":
main()