-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (51 loc) · 1.59 KB
/
setup.py
File metadata and controls
62 lines (51 loc) · 1.59 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
# -*- coding: utf-8 -*-
"""
Package configuraiton information for Importastic.
"""
import os
import sys
from setuptools import setup
from setuptools import find_packages
# requires
requires = {}
def get_long_desc():
"""
Concat README.rst and CHANGES.txt into one string.
"""
here = os.path.abspath(os.path.dirname(__file__))
readme_file = open(os.path.join(here, 'README.rst'))
README = readme_file.read()
changes_file = open(os.path.join(here, 'CHANGES.rst'))
CHANGES = changes_file.read()
return README + '\n\n' + CHANGES
def main():
"""
Script entry point.
"""
setup(name = 'importastic',
version = '0.2',
description = """
Python import system to allow pluggable packages to be imported as
packages. Example: foo_bar to be imported as foo.bar
""",
long_description = get_long_desc(),
classifiers=[
"Programming Language :: Python",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Utilities"
],
keywords = 'import system pluggable',
author = 'michr',
author_email = 'example@example.com',
url = 'https://github.com/michr/importastic',
license='BSD',
packages=find_packages(exclude = ['ez_setup', 'examples', 'tests']),
include_package_data = True,
zip_safe = False,
install_requires = requires,
entry_points = "",
)
if __name__ == '__main__':
main()