You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.0 KiB

8 years ago
#!/usr/bin/env python
import os
from io import open
from setuptools import find_packages, setup
def get_version(prefix):
import re
with open(os.path.join(prefix, '__init__.py')) as fd:
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", fd.read()))
return metadata['version']
8 years ago
def read(filename):
path = os.path.join(os.path.dirname(__file__), filename)
with open(path, encoding='utf-8') as handle:
return handle.read()
setup(
name='django-shared-people',
version=get_version('shared/people'),
8 years ago
description='Person model, mixins and helpers for Django',
long_description=read('README.md'),
8 years ago
author='Erik Stein',
author_email='erik@classlibrary.net',
url='https://github.com/sha-red/django-people/',
8 years ago
license='BSD License',
platforms=['OS Independent'],
packages=find_packages(
exclude=['tests', 'testapp']
),
namespace_packages=['shared'],
8 years ago
include_package_data=True,
install_requires=[
# 'Django>=1.9', commented out to make `pip install -U` easier
# 'django-admin-steroids', # Optional
8 years ago
'django-polymorphic',
'django-shared-utils',
],
dependency_links=[
'git+https://github.com/sha-red/django-shared-utils.git#egg=django-shared-utils',
8 years ago
],
extras_require={
'all': [
],
},
classifiers=[
# 'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development',
],
zip_safe=False,
)