2016-12-08 03:50:48 +00:00
|
|
|
import re
|
|
|
|
import os
|
|
|
|
|
|
|
|
try:
|
|
|
|
from setuptools import setup
|
|
|
|
except ImportError:
|
|
|
|
from ez_setup import use_setuptools
|
|
|
|
use_setuptools()
|
|
|
|
from setuptools import setup
|
|
|
|
|
2016-12-09 15:07:27 +00:00
|
|
|
from setuptools import setup, Command
|
|
|
|
|
|
|
|
class CleanCommand(Command):
|
|
|
|
"""Custom clean command to tidy up the project root."""
|
|
|
|
user_options = []
|
|
|
|
def initialize_options(self):
|
|
|
|
pass
|
|
|
|
def finalize_options(self):
|
|
|
|
pass
|
|
|
|
def run(self):
|
|
|
|
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
|
|
|
|
os.system('rm -vrf htmlcov .coverage')
|
|
|
|
os.system('rm -vrf .DS_Store')
|
2018-03-01 20:32:02 +00:00
|
|
|
os.system('rm -vrf .tox')
|
2016-12-09 15:07:27 +00:00
|
|
|
|
2016-12-08 03:50:48 +00:00
|
|
|
setup(
|
|
|
|
name="django-dbfilestorage",
|
2018-03-01 20:32:02 +00:00
|
|
|
version="0.9.3",
|
2016-12-08 03:50:48 +00:00
|
|
|
description="Database backed file storage for testing.",
|
|
|
|
long_description="Database backed file storage for testing. Stores files as base64 encoded textfields.",
|
|
|
|
author="Tyrel Souza",
|
2016-12-08 04:05:01 +00:00
|
|
|
author_email="tyrelsouza@gmail.com",
|
|
|
|
url="https://github.com/tyrelsouza/django-dbfilestorage",
|
|
|
|
download_url="https://github.com/tyrelsouza/django-dbfilestorage.git",
|
2016-12-08 03:50:48 +00:00
|
|
|
license="MIT License",
|
|
|
|
packages=[
|
|
|
|
"dbfilestorage",
|
2017-01-20 19:57:29 +00:00
|
|
|
"dbfilestorage.migrations",
|
2016-12-08 03:50:48 +00:00
|
|
|
],
|
|
|
|
include_package_data=True,
|
|
|
|
install_requires=[
|
2018-03-01 20:32:02 +00:00
|
|
|
"Django==1.11.10",
|
2016-12-08 03:50:48 +00:00
|
|
|
],
|
|
|
|
tests_require=[
|
|
|
|
"nose",
|
|
|
|
"coverage",
|
2018-03-01 20:32:02 +00:00
|
|
|
"future",
|
2016-12-08 03:50:48 +00:00
|
|
|
],
|
|
|
|
zip_safe=False,
|
|
|
|
test_suite="tests.runtests.start",
|
|
|
|
classifiers=[
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Development Status :: 3 - Alpha",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Framework :: Django",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Programming Language :: Python :: 2",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
2016-12-09 15:07:27 +00:00
|
|
|
],
|
|
|
|
cmdclass={
|
|
|
|
'clean': CleanCommand,
|
|
|
|
}
|
2016-12-08 03:50:48 +00:00
|
|
|
)
|