2013-12-09 12:41:05 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
import re
|
|
|
|
import os
|
|
|
|
import codecs
|
|
|
|
|
|
|
|
|
|
|
|
# Borrowed from
|
|
|
|
# https://github.com/jezdez/django_compressor/blob/develop/setup.py
|
|
|
|
def read(*parts):
|
|
|
|
return codecs.open(os.path.join(os.path.dirname(__file__), *parts)).read()
|
|
|
|
|
|
|
|
|
|
|
|
def find_version(*file_paths):
|
|
|
|
version_file = read(*file_paths)
|
|
|
|
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
|
|
|
|
version_file, re.M)
|
|
|
|
if version_match:
|
|
|
|
return version_match.group(1)
|
|
|
|
raise RuntimeError("Unable to find version string.")
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='plum',
|
|
|
|
version=find_version("plum", "__init__.py"),
|
|
|
|
description='',
|
2013-12-11 10:39:17 +01:00
|
|
|
url='https://github.com/orchardup/plum',
|
2013-12-09 12:41:05 +01:00
|
|
|
author='Orchard Laboratories Ltd.',
|
|
|
|
author_email='hello@orchardup.com',
|
|
|
|
packages=['plum'],
|
|
|
|
package_data={},
|
|
|
|
include_package_data=True,
|
2013-12-09 17:25:50 +01:00
|
|
|
install_requires=[],
|
2013-12-09 12:41:05 +01:00
|
|
|
dependency_links=[],
|
|
|
|
entry_points="""
|
|
|
|
[console_scripts]
|
2013-12-11 15:25:32 +01:00
|
|
|
plum=plum.cli.main:main
|
2013-12-09 12:41:05 +01:00
|
|
|
""",
|
|
|
|
)
|