2011-05-30 09:03:04 +10:00
|
|
|
#!/usr/bin/env python
|
2013-12-18 20:06:22 +11:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2013-12-18 20:06:22 +11:00
|
|
|
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
|
|
|
|
2013-12-18 21:41:39 +11:00
|
|
|
long_description = u'\n\n'.join((
|
|
|
|
open('README.rst').read(),
|
|
|
|
open('CHANGELOG').read()
|
|
|
|
))
|
|
|
|
|
2013-11-25 07:06:46 +11:00
|
|
|
setup(
|
|
|
|
name='dpaste',
|
2017-01-20 21:53:40 +11:00
|
|
|
version='2.13',
|
2013-11-30 05:55:30 +11:00
|
|
|
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.',
|
2013-12-18 21:41:39 +11:00
|
|
|
long_description=long_description,
|
2013-11-30 05:55:30 +11:00
|
|
|
author='Martin Mahner',
|
|
|
|
author_email='martin@mahner.org',
|
|
|
|
url='https://github.com/bartTC/dpaste/',
|
2013-12-14 23:17:53 +11:00
|
|
|
classifiers=[
|
2013-11-30 05:55:30 +11:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
'Environment :: Web Environment',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Operating System :: OS Independent',
|
2014-12-28 23:20:29 +11:00
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 3',
|
2013-11-30 05:55:30 +11:00
|
|
|
'Framework :: Django',
|
2013-12-14 23:17:53 +11:00
|
|
|
],
|
2013-11-25 07:06:46 +11:00
|
|
|
packages=find_packages(),
|
2013-12-18 21:41:27 +11:00
|
|
|
package_data={
|
|
|
|
'dpaste': ['static/*.*', 'templates/*.*'],
|
|
|
|
'docs': ['*'],
|
|
|
|
},
|
2013-12-14 23:17:53 +11:00
|
|
|
include_package_data=True,
|
|
|
|
install_requires=[
|
2017-12-13 06:24:14 +11:00
|
|
|
'django>=1.8,<2.0',
|
2013-11-25 07:06:46 +11:00
|
|
|
'pygments>=1.6',
|
2013-12-18 20:06:22 +11:00
|
|
|
],
|
|
|
|
tests_require=[
|
2013-12-18 20:07:40 +11:00
|
|
|
'tox>=1.6.1'
|
2013-12-18 20:06:22 +11:00
|
|
|
],
|
|
|
|
cmdclass={
|
|
|
|
'test': Tox
|
|
|
|
},
|
2013-11-25 07:06:46 +11:00
|
|
|
)
|