diff --git a/.gitignore b/.gitignore index 7cf0792..8761a6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .coverage docs/_build *.egg-info +*.egg test.db diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..2078faa --- /dev/null +++ b/setup.cfg @@ -0,0 +1,42 @@ +[metadata] +name = django-configurations +version = 0.3 +author = Jannis Leidel +author-email = jannis@leidel.info +summary = A helper for organizing Django settings. +description-file = README.rst +license = BSD +requires-dist = six +home-page = http://django-configurations.readthedocs.org/ +project-url = + Github, https://github.com/jezdez/django-configurations/ +classifier = + Development Status :: 4 - Beta + Environment :: Web Environment + Framework :: Django + Intended Audience :: Developers + License :: OSI Approved :: BSD License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 2.6 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3.2 + Programming Language :: Python :: 3.3 + Topic :: Utilities + +[files] +packages = + configurations + configurations.tests + configurations.tests.settings +extra_files = + README.rst + CHANGES.rst + AUTHORS + .travis.yml + manage.py + Makefile + requirements/tests.txt + +[backwards_compat] +zip_safe = False diff --git a/setup.py b/setup.py index 0f798b0..0fe0c2f 100644 --- a/setup.py +++ b/setup.py @@ -1,54 +1,4 @@ -import codecs -import re -from os import path +#!/usr/bin/env python from setuptools import setup - -def read(*parts): - file_path = path.join(path.dirname(__file__), *parts) - return codecs.open(file_path, encoding='utf-8').read() - - -def find_version(*parts): - version_file = read(*parts) - version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", - version_file, re.M) - if version_match: - return version_match.group(1) - raise RuntimeError("Unable to find version string.") - - -setup( - name='django-configurations', - version=find_version('configurations', '__init__.py'), - description='A helper for organizing Django project settings by relying ' - 'on well established programming patterns.', - long_description=read('README.rst') + u'\n\n' + read('CHANGES.rst'), - author='Jannis Leidel', - author_email='jannis@leidel.info', - license='BSD', - url='http://django-configurations.readthedocs.org/', - packages=[ - 'configurations', - 'configurations.tests', - 'configurations.tests.settings', - ], - install_requires=[ - 'six', - ], - classifiers=[ - 'Development Status :: 4 - Beta', - 'Environment :: Web Environment', - 'Framework :: Django', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: BSD License', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2.5', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.2', - 'Programming Language :: Python :: 3.3', - 'Topic :: Utilities', - ], -) +setup(setup_requires=['d2to1'], d2to1=True)