mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-05-14 02:23:12 +00:00
Use d2to1.
This commit is contained in:
parent
669b578000
commit
5f69231de1
3 changed files with 45 additions and 52 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
.coverage
|
||||
docs/_build
|
||||
*.egg-info
|
||||
*.egg
|
||||
test.db
|
||||
|
|
|
|||
42
setup.cfg
Normal file
42
setup.cfg
Normal file
|
|
@ -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
|
||||
54
setup.py
54
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue