django-select2/setup.py

73 lines
1.7 KiB
Python
Raw Normal View History

2015-03-03 09:01:51 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
import os
import sys
from setuptools import Command, find_packages, setup
2015-03-30 09:19:27 +00:00
def read(file_name):
file_path = os.path.join(os.path.dirname(__file__), file_name)
return codecs.open(file_path, encoding='utf-8').read()
2015-03-03 09:01:51 +00:00
PACKAGE = "django_select2"
NAME = "Django-Select2"
DESCRIPTION = "Select2 option fields for Django"
2012-08-23 19:57:32 +00:00
AUTHOR = "Nirupam Biswas"
AUTHOR_EMAIL = "admin@applegrew.com"
URL = "https://github.com/applegrew/django-select2"
VERSION = __import__(PACKAGE).__version__
2015-03-03 09:01:51 +00:00
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
import subprocess
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=read("README.md"),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
2012-08-23 19:57:32 +00:00
license="LICENSE.txt",
url=URL,
2015-04-27 16:49:15 +00:00
packages=find_packages(),
include_package_data=True,
classifiers=[
2012-08-23 19:57:32 +00:00
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
2015-09-16 09:02:44 +00:00
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Framework :: Django :: 1.7",
"Framework :: Django :: 1.8",
"Framework :: Django",
],
install_requires=[
'django-appconf>=0.6.0',
],
2014-07-16 20:00:06 +00:00
zip_safe=False,
2015-03-03 09:01:51 +00:00
cmdclass={'test': PyTest},
)