dpaste/setup.py

66 lines
1.8 KiB
Python
Raw Normal View History

2011-05-30 09:03:04 +10:00
#!/usr/bin/env python
from sys import exit
2014-12-15 04:03:35 +11:00
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
errno = tox.cmdline(self.test_args)
exit(errno)
2011-05-30 09:03:04 +10:00
long_description = u'\n\n'.join((
open('README.rst').read(),
open('CHANGELOG').read()
))
setup(
name='dpaste',
2017-09-01 19:32:58 +10:00
version='3.0a',
description='dpaste is a Django based pastebin. It\'s intended to run '
'separately but its also possible to be installed into an '
'existing Django project like a regular app.',
long_description=long_description,
author='Martin Mahner',
author_email='martin@mahner.org',
url='https://github.com/bartTC/dpaste/',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Framework :: Django',
],
packages=find_packages(),
2013-12-18 21:41:27 +11:00
package_data={
'dpaste': ['static/*.*', 'templates/*.*'],
'docs': ['*'],
},
include_package_data=True,
install_requires=[
2018-01-27 04:19:58 +11:00
'django>=1.8,<2.0;python_version<"3.4"',
'django>=2.0;python_version>="3.4"',
'pygments>=1.6',
2016-03-24 22:54:54 +11:00
'django-markup>=1.0',
2018-01-08 03:26:07 +11:00
'django-csp>=3.3',
],
tests_require=[
2018-01-08 03:20:50 +11:00
'tox>=1.6.1',
'coverage',
],
cmdclass={
'test': Tox
},
)