Browse Source

Setuptools package.

backports/m1-live
Erik Stein 9 years ago
parent
commit
70fe76eabc
  1. 53
      setup.py
  2. 7
      utils/__init__.py
  3. 0
      utils/dateformat.py
  4. 0
      utils/fields.py
  5. 0
      utils/forms.py
  6. 0
      utils/markdown_utils.py
  7. 0
      utils/templatetags/__init__.py
  8. 0
      utils/templatetags/daterange.py
  9. 0
      utils/templatetags/markup_tags.py
  10. 0
      utils/templatetags/text_tags.py
  11. 0
      utils/templatetags/translation_tags.py
  12. 0
      utils/text.py
  13. 0
      utils/timezone.py
  14. 0
      utils/translation.py

53
setup.py

@ -0,0 +1,53 @@
#!/usr/bin/env python
from io import open
import os
from setuptools import setup, find_packages
def read(filename):
path = os.path.join(os.path.dirname(__file__), filename)
with open(path, encoding='utf-8') as handle:
return handle.read()
setup(
name='django-shared-utils',
version=__import__('utils').__version__,
description=' Mix of Python and Django utility functions, classed etc.',
long_description=read('README.md'),
author='Erik Stein',
author_email='code@classlibrary.net',
url='https://projects.c--y.net/erik/django-shared-utils/',
license='MIT License',
platforms=['OS Independent'],
packages=find_packages(
exclude=['tests', 'testapp'],
),
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
# 'Programming Language :: Python :: 2',
# 'Programming Language :: Python :: 2.7',
# 'Programming Language :: Python :: 3',
# 'Programming Language :: Python :: 3.3',
# 'Programming Language :: Python :: 3.4',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
zip_safe=False,
tests_require=[
'Django',
# 'coverage',
# 'django-mptt',
# 'pytz',
],
test_suite='testapp.runtests.runtests',
)

7
__init__.py → utils/__init__.py

@ -1,9 +1,12 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals from __future__ import unicode_literals
# Erik Stein <code@classlibrary.net>, 2015 # Erik Stein <code@classlibrary.net>, 2007-2016
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
SLUG_HELP = _("Kurzfassung des Namens für die Adresszeile im Browser. Vorzugsweise englisch, keine Umlaute, nur Bindestrich als Sonderzeichen.") VERSION = (0, 1, 0)
__version__ = '.'.join(map(str, VERSION))
SLUG_HELP = _("Kurzfassung des Namens für die Adresszeile im Browser. Vorzugsweise englisch, keine Umlaute, nur Bindestrich als Sonderzeichen.")

0
dateformat.py → utils/dateformat.py

0
fields.py → utils/fields.py

0
forms.py → utils/forms.py

0
markdown_utils.py → utils/markdown_utils.py

0
templatetags/__init__.py → utils/templatetags/__init__.py

0
templatetags/daterange.py → utils/templatetags/daterange.py

0
templatetags/markup_tags.py → utils/templatetags/markup_tags.py

0
templatetags/text_tags.py → utils/templatetags/text_tags.py

0
templatetags/translation_tags.py → utils/templatetags/translation_tags.py

0
text.py → utils/text.py

0
timezone.py → utils/timezone.py

0
translation.py → utils/translation.py

Loading…
Cancel
Save