setup.py 1.47 KB
Newer Older
Patrick Kimber's avatar
Patrick Kimber committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import os
from distutils.core import setup


def read_file_into_string(filename):
    path = os.path.abspath(os.path.dirname(__file__))
    filepath = os.path.join(path, filename)
    try:
        return open(filepath).read()
    except IOError:
        return ''


def get_readme():
    for name in ('README', 'README.rst', 'README.md'):
        if os.path.exists(name):
            return read_file_into_string(name)
    return ''


setup(
Patrick Kimber's avatar
Patrick Kimber committed
22
    name='kb-invoice',
Patrick Kimber's avatar
Patrick Kimber committed
23
    packages=['invoice', 'invoice.management', 'invoice.management.commands', 'invoice.tests', 'invoice.migrations'],
Patrick Kimber's avatar
Patrick Kimber committed
24 25 26 27
    package_data={
        'invoice': [
            'templates/*.*',
            'templates/invoice/*.*',
Patrick Kimber's avatar
Patrick Kimber committed
28 29 30
            'templates/search/*.*',
            'templates/search/indexes/*.*',
            'templates/search/indexes/invoice/*.*',
Patrick Kimber's avatar
Patrick Kimber committed
31 32
        ],
    },
Patrick Kimber's avatar
Patrick Kimber committed
33
    version='0.1.86',
Patrick Kimber's avatar
Patrick Kimber committed
34
    description='invoice',
Patrick Kimber's avatar
Patrick Kimber committed
35 36
    author='Patrick Kimber',
    author_email='code@pkimber.net',
Patrick Kimber's avatar
Patrick Kimber committed
37
    url='git@gitlab.com:kb/invoice.git',
Patrick Kimber's avatar
Patrick Kimber committed
38 39 40 41 42 43 44 45
    classifiers=[
        'Development Status :: 1 - Planning',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
Patrick Kimber's avatar
Patrick Kimber committed
46
        'Programming Language :: Python :: 3',
Patrick Kimber's avatar
Patrick Kimber committed
47
        'Framework :: Django :: 1.8',
Patrick Kimber's avatar
Patrick Kimber committed
48 49 50
        'Topic :: Office/Business :: Scheduling',
    ],
    long_description=get_readme(),
Patrick Kimber's avatar
Patrick Kimber committed
51
)