mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
Minor review of packaging. Added dependency to setuptools.
This commit is contained in:
parent
c671037db0
commit
5159adae93
1 changed files with 25 additions and 24 deletions
49
setup.py
49
setup.py
|
|
@ -8,34 +8,35 @@ def read_relative_file(filename):
|
|||
"""Returns contents of the given file, which path is supposed relative
|
||||
to this module."""
|
||||
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
|
||||
return f.read()
|
||||
return f.read().strip()
|
||||
|
||||
|
||||
NAME = 'django-downloadview'
|
||||
README = read_relative_file('README')
|
||||
VERSION = read_relative_file('VERSION').strip()
|
||||
VERSION = read_relative_file('VERSION')
|
||||
PACKAGES = ['django_downloadview']
|
||||
REQUIRES = ['django>=1.4']
|
||||
REQUIRES = ['setuptools', 'django>=1.4']
|
||||
|
||||
|
||||
setup(name=NAME,
|
||||
version=VERSION,
|
||||
description='Generic download views for Django.',
|
||||
long_description=README,
|
||||
classifiers=['Development Status :: 4 - Beta',
|
||||
'License :: OSI Approved :: BSD License',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 2.6',
|
||||
'Framework :: Django',
|
||||
],
|
||||
keywords='class-based view, generic view, download, file, FileField, ' \
|
||||
'ImageField, nginx, x-accel, x-sendfile',
|
||||
author='Benoit Bryon',
|
||||
author_email='benoit@marmelune.net',
|
||||
url='https://github.com/benoitbryon/%s' % NAME,
|
||||
license='BSD',
|
||||
packages=PACKAGES,
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=REQUIRES,
|
||||
)
|
||||
if __name__ == '__main__': # Don't run setup() when we import this module.
|
||||
setup(name=NAME,
|
||||
version=VERSION,
|
||||
description='Generic download views for Django.',
|
||||
long_description=README,
|
||||
classifiers=['Development Status :: 4 - Beta',
|
||||
'License :: OSI Approved :: BSD License',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 2.6',
|
||||
'Framework :: Django',
|
||||
],
|
||||
keywords='class-based view, generic view, download, file, '
|
||||
'FileField, ImageField, nginx, x-accel, x-sendfile',
|
||||
author='Benoît Bryon',
|
||||
author_email='benoit@marmelune.net',
|
||||
url='https://github.com/benoitbryon/%s' % NAME,
|
||||
license='BSD',
|
||||
packages=PACKAGES,
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=REQUIRES,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue