mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
Standardized demo's packaging.
This commit is contained in:
parent
2e5d778651
commit
1790094422
3 changed files with 38 additions and 37 deletions
|
|
@ -10,7 +10,7 @@ Demo project
|
||||||
Documentation includes code from the demo
|
Documentation includes code from the demo
|
||||||
*****************************************
|
*****************************************
|
||||||
|
|
||||||
Almost every example in this documentation comes from the demo:
|
Almost every example in the documentation comes from the demo:
|
||||||
|
|
||||||
* discover examples in the documentation;
|
* discover examples in the documentation;
|
||||||
* browse related code and tests in demo project.
|
* browse related code and tests in demo project.
|
||||||
|
|
@ -1,46 +1,47 @@
|
||||||
# coding=utf-8
|
# -*- coding: utf-8 -*-
|
||||||
"""Python packaging."""
|
"""Python packaging."""
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
def read_relative_file(filename):
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
"""Returns contents of the given file, which path is supposed relative
|
project_root = os.path.dirname(here)
|
||||||
to this module."""
|
|
||||||
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
|
|
||||||
return f.read()
|
|
||||||
|
|
||||||
|
|
||||||
NAME = 'django-downloadview-demo'
|
NAME = 'django-downloadview-demo'
|
||||||
README = read_relative_file('README')
|
DESCRIPTION = 'Serve files with Django and reverse-proxies.'
|
||||||
VERSION = '0.1'
|
README = open(os.path.join(here, 'README.rst')).read()
|
||||||
|
VERSION = open(os.path.join(project_root, 'VERSION')).read().strip()
|
||||||
|
AUTHOR = u'Benoît Bryon'
|
||||||
|
EMAIL = u'benoit@marmelune.net'
|
||||||
|
URL = 'https://{name}.readthedocs.org/'.format(name=NAME)
|
||||||
|
CLASSIFIERS = ['Development Status :: 4 - Beta',
|
||||||
|
'License :: OSI Approved :: BSD License',
|
||||||
|
'Programming Language :: Python :: 2.7',
|
||||||
|
'Programming Language :: Python :: 2.6',
|
||||||
|
'Framework :: Django']
|
||||||
|
KEYWORDS = []
|
||||||
PACKAGES = ['demoproject']
|
PACKAGES = ['demoproject']
|
||||||
REQUIRES = ['django-downloadview',
|
REQUIREMENTS = ['django-downloadview', 'django-nose']
|
||||||
'django-nose']
|
ENTRY_POINTS = {
|
||||||
|
'console_scripts': ['demo = demoproject.manage:main']
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
setup(name=NAME,
|
if __name__ == '__main__': # Don't run setup() when we import this module.
|
||||||
version=VERSION,
|
setup(name=NAME,
|
||||||
description='Demo project for Django-DownloadView.',
|
version=VERSION,
|
||||||
long_description=README,
|
description=DESCRIPTION,
|
||||||
classifiers=['Development Status :: 1 - Planning',
|
long_description=README,
|
||||||
'License :: OSI Approved :: BSD License',
|
classifiers=CLASSIFIERS,
|
||||||
'Programming Language :: Python :: 2.7',
|
keywords=' '.join(KEYWORDS),
|
||||||
'Programming Language :: Python :: 2.6',
|
author=AUTHOR,
|
||||||
'Framework :: Django',
|
author_email=EMAIL,
|
||||||
],
|
url=URL,
|
||||||
keywords='class-based view, generic view, download',
|
license='BSD',
|
||||||
author='Benoit Bryon',
|
packages=PACKAGES,
|
||||||
author_email='benoit@marmelune.net',
|
include_package_data=True,
|
||||||
url='https://github.com/benoitbryon/%s' % NAME,
|
zip_safe=False,
|
||||||
license='BSD',
|
install_requires=REQUIREMENTS,
|
||||||
packages=PACKAGES,
|
entry_points=ENTRY_POINTS)
|
||||||
include_package_data=True,
|
|
||||||
zip_safe=False,
|
|
||||||
install_requires=REQUIRES,
|
|
||||||
entry_points={
|
|
||||||
'console_scripts': [
|
|
||||||
'demo = demoproject.manage:main',
|
|
||||||
]
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
.. include:: ../demo/README
|
.. include:: ../demo/README.rst
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue