/
setup.py
executable file
·63 lines (52 loc) · 1.56 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
#!/usr/bin/env python
# stdlib
import os
from setuptools import setup, find_packages
def read(fname):
"""
Returns the contents of the file in the top level directory with the name
``fname``.
"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_files(path):
"""
Returns a list of the files under ``path``. The returned paths are
relative to ``path``.
"""
relative_to = os.path.dirname(path)
result = []
for dirpath, dirnames, filenames in os.walk(path):
result += [os.path.relpath(os.path.join(dirpath, i), relative_to) for i in filenames]
return result
setup(
name="phial",
version=read("VERSION").strip(),
author="John Sullivan and other contributers",
author_email="john@galahgroup.com",
description=(
"A static website generator that takes motivation from Flask and "
"Jekyll."
),
license="Apache v2.0",
keywords="python ssg",
url="https://www.github.com/brownhead/phial",
long_description="See https://www.github.com/brownhead/phial",
install_requires=[
"PyYAML>=3.10"
],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License"
],
entry_points={
"console_scripts": [
"phial = phial.tool:main"
]
},
# This ensures that the MANIFEST.IN file is used for both binary and source
# distributions.
include_package_data=True,
packages=find_packages(),
zip_safe=True
)