2015-10-20 02:19:03 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
# -*- coding: utf-8 -*-
|
2018-05-31 04:12:58 +00:00
|
|
|
''' Django notification setup file for pip package '''
|
2015-12-14 02:01:43 +00:00
|
|
|
import ast
|
2018-05-31 02:55:54 +00:00
|
|
|
import re
|
|
|
|
|
|
2018-05-30 04:28:42 +00:00
|
|
|
try:
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
except ImportError:
|
2018-05-31 04:12:58 +00:00
|
|
|
from distutils.core import setup # pylint: disable=no-name-in-module,import-error
|
2015-12-14 02:01:43 +00:00
|
|
|
|
|
|
|
|
|
2018-05-31 04:12:58 +00:00
|
|
|
_version_re = re.compile(r'__version__\s+=\s+(.*)') # pylint: disable=invalid-name
|
2015-12-14 02:01:43 +00:00
|
|
|
|
|
|
|
|
with open('notifications/__init__.py', 'rb') as f:
|
2018-05-31 04:12:58 +00:00
|
|
|
version = str(ast.literal_eval(_version_re.search( # pylint: disable=invalid-name
|
2015-12-14 02:01:43 +00:00
|
|
|
f.read().decode('utf-8')).group(1)))
|
|
|
|
|
|
2012-07-22 13:14:44 +00:00
|
|
|
|
2015-12-11 13:32:20 +00:00
|
|
|
setup(
|
2015-12-14 08:02:02 +00:00
|
|
|
name='django-notifications-hq',
|
|
|
|
|
version=version,
|
|
|
|
|
description='GitHub notifications alike app for Django.',
|
|
|
|
|
long_description=open('README.rst').read(),
|
|
|
|
|
author='django-notifications team',
|
|
|
|
|
author_email='yang@yangyubo.com',
|
|
|
|
|
url='http://github.com/django-notifications/django-notifications',
|
|
|
|
|
install_requires=[
|
2020-01-24 16:17:16 +00:00
|
|
|
'django>=2.2',
|
|
|
|
|
'django-model-utils>=3.1.0',
|
2020-02-13 20:13:56 +00:00
|
|
|
'jsonfield>=2.1.0',
|
2019-04-28 18:59:42 +00:00
|
|
|
'pytz',
|
|
|
|
|
'swapper'
|
2015-12-14 08:02:02 +00:00
|
|
|
],
|
|
|
|
|
test_requires=[
|
2020-01-24 16:17:16 +00:00
|
|
|
'django>=2.2',
|
|
|
|
|
'django-model-utils>=3.1.0',
|
2020-02-13 20:13:56 +00:00
|
|
|
'jsonfield>=2.1.0',
|
2015-12-14 08:02:02 +00:00
|
|
|
'pytz'
|
|
|
|
|
],
|
|
|
|
|
packages=[
|
|
|
|
|
'notifications',
|
2019-10-24 16:10:06 +00:00
|
|
|
'notifications.base',
|
2015-12-14 08:02:02 +00:00
|
|
|
'notifications.templatetags',
|
|
|
|
|
'notifications.migrations',
|
|
|
|
|
],
|
2021-04-06 10:01:11 +00:00
|
|
|
include_package_data=True,
|
2015-12-14 08:02:02 +00:00
|
|
|
classifiers=[
|
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
|
'Environment :: Web Environment',
|
|
|
|
|
'Framework :: Django',
|
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
|
'Operating System :: OS Independent',
|
2017-06-25 23:27:43 +00:00
|
|
|
'Framework :: Django',
|
2020-01-19 06:18:25 +00:00
|
|
|
'Framework :: Django :: 2.2',
|
|
|
|
|
'Framework :: Django :: 3.0',
|
2015-12-14 08:02:02 +00:00
|
|
|
# Specify the Python versions you support here. In particular, ensure
|
|
|
|
|
# that you indicate whether you support Python 2, Python 3 or both.
|
|
|
|
|
'Programming Language :: Python',
|
|
|
|
|
'Programming Language :: Python :: 3',
|
2020-01-19 06:18:25 +00:00
|
|
|
'Programming Language :: Python :: 3.5',
|
|
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
|
'Programming Language :: Python :: 3.7',
|
|
|
|
|
'Programming Language :: Python :: 3.8',
|
2015-12-14 08:02:02 +00:00
|
|
|
'Topic :: Utilities'
|
|
|
|
|
],
|
|
|
|
|
keywords='django notifications github action event stream',
|
|
|
|
|
license='MIT',
|
2015-12-11 13:32:20 +00:00
|
|
|
)
|