2013-09-29 15:59:16 +02:00
|
|
|
"""
|
|
|
|
setup for nsupdate package
|
|
|
|
"""
|
|
|
|
|
2013-12-14 00:35:29 +01:00
|
|
|
import sys
|
|
|
|
PY2 = sys.version_info[0] == 2
|
|
|
|
|
2013-09-28 18:49:09 +02:00
|
|
|
from setuptools import setup, find_packages
|
2013-09-28 09:16:17 +02:00
|
|
|
|
2013-11-09 21:45:30 +01:00
|
|
|
from nsupdate import version
|
|
|
|
|
2013-09-28 18:49:09 +02:00
|
|
|
with open('README.rst') as f:
|
2013-09-28 09:16:17 +02:00
|
|
|
readme_content = f.read()
|
|
|
|
|
2013-12-14 00:35:29 +01:00
|
|
|
if PY2:
|
|
|
|
install_requires = ['dnspython', ]
|
|
|
|
else:
|
|
|
|
install_requires = ['dnspython3', ]
|
|
|
|
|
2013-09-28 09:16:17 +02:00
|
|
|
setup(
|
|
|
|
name='nsupdate',
|
2013-11-09 21:45:30 +01:00
|
|
|
version=str(version),
|
2013-10-03 00:43:33 +02:00
|
|
|
url='http://github.com/nsupdate-info/nsupdate.info/',
|
2013-09-28 10:43:49 +02:00
|
|
|
license='BSD',
|
2013-09-28 09:16:17 +02:00
|
|
|
author='The nsupdate.info Team (see AUTHORS)',
|
|
|
|
author_email='info@nsupdate.info',
|
|
|
|
description='A dynamic DNS update service',
|
|
|
|
long_description=readme_content,
|
2013-09-28 18:49:09 +02:00
|
|
|
keywords="dyndns ddns dynamic dns django",
|
|
|
|
packages=find_packages(exclude=['_tests', ]),
|
|
|
|
package_data={
|
2013-10-17 23:58:44 +02:00
|
|
|
'nsupdate': [
|
2013-11-09 20:00:57 +01:00
|
|
|
'templates/*.html',
|
|
|
|
'templates/includes/*.html',
|
2013-10-17 23:58:44 +02:00
|
|
|
'static/*.html',
|
2013-11-09 20:00:57 +01:00
|
|
|
'static/*.png',
|
|
|
|
'static/css/*.css',
|
2013-10-17 23:58:44 +02:00
|
|
|
],
|
|
|
|
'nsupdate.accounts': [
|
|
|
|
'templates/accounts/*.html',
|
|
|
|
'templates/registration/*.html',
|
2013-11-09 20:00:57 +01:00
|
|
|
'templates/registration/*.txt',
|
2013-10-17 23:58:44 +02:00
|
|
|
],
|
|
|
|
'nsupdate.main': [
|
|
|
|
'templates/main/*.html',
|
2013-11-09 20:00:57 +01:00
|
|
|
'templates/main/includes/*.html',
|
2013-10-17 23:58:44 +02:00
|
|
|
],
|
2013-09-28 18:49:09 +02:00
|
|
|
},
|
2013-09-28 09:16:17 +02:00
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
platforms='any',
|
2013-12-25 00:42:51 +01:00
|
|
|
install_requires=install_requires + [
|
2014-07-17 15:13:41 +02:00
|
|
|
'django >=1.6, <1.7', # 1.7 is not tested yet
|
|
|
|
# django >= 1.5.3 also works, but needs a code change, see
|
|
|
|
# https://github.com/nsupdate-info/nsupdate.info/issues/141
|
2013-09-28 15:06:34 +02:00
|
|
|
'south',
|
|
|
|
'django-bootstrap-form',
|
|
|
|
'django-registration',
|
2013-10-18 15:30:17 -07:00
|
|
|
'django-extensions',
|
2013-11-02 05:15:06 +01:00
|
|
|
'python-social-auth',
|
2013-11-26 03:03:51 +01:00
|
|
|
'requests', # for our ddns_client
|
2013-09-28 09:16:17 +02:00
|
|
|
],
|
|
|
|
classifiers=[
|
2014-07-17 15:15:45 +02:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2013-09-28 09:16:17 +02:00
|
|
|
'Environment :: Web Environment',
|
|
|
|
'Framework :: Django',
|
2013-09-28 10:43:49 +02:00
|
|
|
'License :: OSI Approved :: BSD License',
|
2013-09-28 09:16:17 +02:00
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python',
|
2013-12-14 00:35:29 +01:00
|
|
|
'Programming Language :: Python :: 2',
|
2013-12-12 01:27:36 +01:00
|
|
|
'Programming Language :: Python :: 2.6',
|
2013-09-28 09:16:17 +02:00
|
|
|
'Programming Language :: Python :: 2.7',
|
2013-12-14 00:35:29 +01:00
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Programming Language :: Python :: 3.3',
|
2014-08-27 17:57:33 +02:00
|
|
|
'Programming Language :: Python :: 3.4',
|
2013-09-28 09:16:17 +02:00
|
|
|
'Topic :: Internet :: Name Service (DNS)',
|
|
|
|
],
|
|
|
|
)
|