Skip to content

Commit f59c3a9

Browse files
committed
Add files for app distribution
1 parent 7f05fe0 commit f59c3a9

File tree

3 files changed

+100
-0
lines changed

3 files changed

+100
-0
lines changed

LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2018, Michael F. Covington
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of django-project-home-templatetags nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include CHANGELOG.rst
2+
include LICENSE
3+
include README.rst
4+
recursive-include project_home_tags/templatetags *

setup.py

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
import os
2+
import sys
3+
from setuptools import setup
4+
5+
6+
# Confirmed good on 2.7.15 and from 3.4.0 through 3.7.1
7+
if ((sys.version_info < (2, 7))
8+
| ((sys.version_info.major == 3) & (sys.version_info.minor < 2))):
9+
print("Sorry, django-project-home-templatetags currently requires Python 2.7+/3.2+.")
10+
sys.exit(1)
11+
12+
# From: https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
13+
def read(*paths):
14+
"""Build a file path from *paths* and return the contents."""
15+
with open(os.path.join(*paths), 'r') as f:
16+
return f.read()
17+
18+
# allow setup.py to be run from any path
19+
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
20+
21+
install_requires = [
22+
"Django", # Confirmed good from 1.5.0 through 2.1.3
23+
]
24+
25+
setup(
26+
name='django-project-home-templatetags',
27+
version='0.0.0',
28+
packages=['project_home_tags'],
29+
include_package_data=True,
30+
license='BSD License',
31+
keywords='templatetags home project breadcrumbs',
32+
description='A collection of Django templatetags to flexibly incorporate links and breadcrumbs from app pages to the homepage of a project',
33+
long_description=(read('README.rst') + '\n\n' +
34+
read('CHANGELOG.rst')),
35+
url='https://github.com/mfcovington/django-project-home-templatetags',
36+
author='Michael F. Covington',
37+
author_email='[email protected]',
38+
classifiers=[
39+
'Development Status :: 3 - Alpha',
40+
'Environment :: Web Environment',
41+
'Framework :: Django',
42+
'Framework :: Django :: 1.5',
43+
'Framework :: Django :: 1.6',
44+
'Framework :: Django :: 1.7',
45+
'Framework :: Django :: 1.8',
46+
'Framework :: Django :: 1.9',
47+
'Framework :: Django :: 1.10',
48+
'Framework :: Django :: 1.11',
49+
'Framework :: Django :: 2.0',
50+
'Framework :: Django :: 2.1',
51+
'Intended Audience :: Developers',
52+
'License :: OSI Approved :: BSD License',
53+
'Operating System :: OS Independent',
54+
'Programming Language :: Python',
55+
'Programming Language :: Python :: 2',
56+
'Programming Language :: Python :: 2.7',
57+
'Programming Language :: Python :: 3',
58+
'Programming Language :: Python :: 3.2',
59+
'Programming Language :: Python :: 3.3',
60+
'Programming Language :: Python :: 3.4',
61+
'Programming Language :: Python :: 3.5',
62+
'Programming Language :: Python :: 3.6',
63+
'Programming Language :: Python :: 3.7',
64+
'Topic :: Documentation',
65+
'Topic :: Internet :: WWW/HTTP',
66+
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
67+
],
68+
install_requires=install_requires,
69+
)

0 commit comments

Comments
 (0)