|
| 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 | + |
| 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