forked from jazzband/django-sorter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
157 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,4 @@ MANIFEST | |
.tox/ | ||
*.egg | ||
docs/_build/ | ||
tests/.coverage | ||
tests/.tox | ||
.coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
before_install: | ||
- export PIP_USE_MIRRORS=true | ||
- export PIP_INDEX_URL=https://simple.crate.io/ | ||
- export DJANGO_SETTINGS_MODULE=sorter.test_settings | ||
install: | ||
- pip install -e . | ||
- pip install -r requirements/tests.txt Django==$DJANGO | ||
before_script: | ||
- flake8 sorter --ignore=E501 | ||
script: | ||
- make test | ||
env: | ||
- DJANGO=1.3.1 | ||
- DJANGO=1.4 | ||
branches: | ||
only: | ||
- develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
test: | ||
coverage run --branch --source=sorter `which django-admin.py` test --settings=sorter.test_settings sorter | ||
coverage report --omit=sorter/test* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
Changelog | ||
========= | ||
|
||
v0.1 (2011-09-02) | ||
v0.2 (2012-05-26) | ||
----------------- | ||
|
||
- Made sure the ordering isn't reset when no querystring parameter is passed. | ||
|
||
- Moved to Travis for testing: http://travis-ci.org/jezdez/django-sorter | ||
|
||
- Updated dependency of URLObject to > 2.0.1. This could backwards | ||
incomaptible if you're using a previous version (< 2.0). | ||
|
||
- Dropped support for Python 2.5. | ||
|
||
v0.1 (2011-09-07) | ||
----------------- | ||
|
||
- Initial release, yay! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
docutils | ||
milkman | ||
django-ttag>=2.3 | ||
django-discover-runner | ||
coverage | ||
flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
from os import path | ||
import os | ||
import codecs | ||
import re | ||
from setuptools import setup | ||
|
||
read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read() | ||
|
||
def read(*parts): | ||
return codecs.open(os.path.join(os.path.dirname(__file__), *parts)).read() | ||
|
||
|
||
def find_version(*file_paths): | ||
version_file = read(*file_paths) | ||
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-sorter', | ||
version=":versiontools:sorter:", | ||
version=find_version("sorter", "__init__.py"), | ||
description='A helper app for sorting objects in Django templates.', | ||
long_description=read(path.join(path.dirname(__file__), 'README.rst')), | ||
long_description=read('README.rst'), | ||
author='Jannis Leidel', | ||
author_email='[email protected]', | ||
license='BSD', | ||
url='http://github.com/jezdez/django-sorter/', | ||
url='http://django-sorter.readthedocs.org/', | ||
packages=['sorter', 'sorter.templatetags'], | ||
package_data={ | ||
'sorter': [ | ||
|
@@ -33,12 +46,9 @@ | |
'Programming Language :: Python :: 2.7', | ||
'Topic :: Utilities', | ||
], | ||
setup_requires=[ | ||
'versiontools >= 1.7', | ||
], | ||
install_requires=[ | ||
'django-appconf >= 0.4', | ||
'django-ttag >= 2.3', | ||
'urlobject == 0.5.1', | ||
'URLObject >= 2.0.1', | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# following PEP 386, versiontools will pick it up | ||
__version__ = (0, 1, 0, "final", 0) | ||
__version__ = "0.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.