-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (45 loc) · 1.5 KB
/
setup.py
File metadata and controls
50 lines (45 loc) · 1.5 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
from setuptools import setup, find_packages
import os, sys
# Which directory is this file's parent?
parent_directory = os.path.abspath(os.path.dirname(__file__))
dependancies = [
'pyramid',
'repoze.tm2>=1.0b1',
'WebError',
'markdown',
]
meta_files = {
'README.md': None,
'CHANGES.md': None,
'CLASSIFIERS.txt': None,
'ENTRY_POINTS.ini': None,
}
# The following bit will read each index from meta_files and fill it's value
# with the contents of that file if it is able to read the file.
for filename in meta_files:
try:
current_file = open(os.path.join(parent_directory, filename))
meta_files[filename] = current_file.read()
current_file.close()
except IOError:
pass
setup(name = 'pyramid-flatpages',
version = '0.0.1-mdfix',
description = 'Manage your site\'s pages using configurable data sources for storage.',
long_description = meta_files['README.md'] + '\n\n' + meta_files['CHANGES.md'],
classifiers = meta_files['CLASSIFIERS.txt'],
author = 'Brandon R. Stoner',
author_email = 'monokrome@limpidtech.com',
url = 'http://github.com/LimpidTech/pyramid-flatpages/',
keywords = 'web pylons pyramid',
packages = find_packages(),
include_package_data = True,
zip_safe = False,
install_requires = dependancies,
tests_require = dependancies,
test_suite = 'flatpages',
entry_points = meta_files['ENTRY_POINTS.ini'],
paster_plugins = [
'pyramid',
],
)