4b7738c0f2
* starting py3 upgrade * b64 not base64 * more progress, some more future things, and encoding * tox * update circle.yml * that version doesnt exist yet, oops * install? * sigh * Docker me? * update readme, requirements * fix for python3 * python35 * morgan remediations * does this work? * how about this? * one more time * no blank lines? * revert a bit * add future imports
66 lines
1.9 KiB
Python
66 lines
1.9 KiB
Python
import re
|
|
import os
|
|
|
|
try:
|
|
from setuptools import setup
|
|
except ImportError:
|
|
from ez_setup import use_setuptools
|
|
use_setuptools()
|
|
from setuptools import setup
|
|
|
|
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')
|
|
os.system('rm -vrf .tox')
|
|
|
|
setup(
|
|
name="django-dbfilestorage",
|
|
version="0.9.3",
|
|
description="Database backed file storage for testing.",
|
|
long_description="Database backed file storage for testing. Stores files as base64 encoded textfields.",
|
|
author="Tyrel Souza",
|
|
author_email="tyrelsouza@gmail.com",
|
|
url="https://github.com/tyrelsouza/django-dbfilestorage",
|
|
download_url="https://github.com/tyrelsouza/django-dbfilestorage.git",
|
|
license="MIT License",
|
|
packages=[
|
|
"dbfilestorage",
|
|
"dbfilestorage.migrations",
|
|
],
|
|
include_package_data=True,
|
|
install_requires=[
|
|
"Django==1.11.10",
|
|
],
|
|
tests_require=[
|
|
"nose",
|
|
"coverage",
|
|
"future",
|
|
],
|
|
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",
|
|
],
|
|
cmdclass={
|
|
'clean': CleanCommand,
|
|
}
|
|
)
|