Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
language: python
sudo: false
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "pypy"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "pypy3"
install:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install -r requirements26.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then pip install -r requirements.txt; fi
- pip install -r requirements.txt
script:
- nosetests
after_success:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Querylist can be installed like any other python package:

> pip install querylist

Querylist is tested against Python 2.6, 2.7, 3.3, 3.4, and pypy.
Querylist is tested against Python 3.6+ and pypy.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might be duplicate content in docs/ that needs updating.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated docs too. Also, I allowed myself to update CHANGELOG.


## Usage

Expand Down
18 changes: 0 additions & 18 deletions TODO.md

This file was deleted.

6 changes: 6 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

**0.5.0**

* Dropped support for Python 2
* Dropped support for all Python 3 versions below Python 3.6.
* Dropped support for PyPy based on Python 2.7.

**0.4.0**

* Fixed an issue building wheels caused by an empty string as a requirement in
Expand Down
2 changes: 1 addition & 1 deletion docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ the querylist module.

>>> from querylist import BetterDict, QueryList

Querylist is tested against Python 2.6, 2.7, 3.3, 3.4, and pypy.
Querylist is tested against Python 3.6+ and pypy.
2 changes: 1 addition & 1 deletion querylist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from querylist.list import QueryList
from querylist.dict import BetterDict

__version__ = '0.4.0'
__version__ = '0.5.0'
__author__ = 'Thomas Welfley'

__all__ = ['QueryList', 'BetterDict']
18 changes: 9 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Testing requirements.
coveralls==1.1
flake8==2.3.0
coveralls==3.0.0
flake8==3.8.4
frosted==1.4.1
nose==1.3.7
pep257==0.4.1
spec==1.2.2
testtube==1.0.0
pep257==0.7.0
spec==1.4.1
testtube==1.1.0

# Documentation requirements.
Pygments==1.5
Jinja2==2.6
docutils==0.9.1
Sphinx==1.1.3
Pygments==2.7.4
Jinja2==2.11.2
docutils==0.16
Sphinx==3.4.3
4 changes: 0 additions & 4 deletions requirements26.txt

This file was deleted.

30 changes: 15 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
import sys
from pathlib import Path

from setuptools import setup, find_packages

import querylist


tests_require = [
'nose>=1.3.6,<1.4',
'spec>=1.2.2,<1.3',
]

if sys.version_info < (2, 7):
# spec causes python setup.py test to fail. This import fixes that for
# some reason.
import multiprocessing # noqa

# If we're still on python 2.6, we need unittest2
tests_require.append('unittest2<1.2')
with open(Path(__file__).absolute().parent / 'README.md', encoding='utf-8') as f:
long_description = f.read()

setup(
name='querylist',
Expand All @@ -29,12 +18,23 @@
'ORM-esque filtering, excluding, and getting for lists. It '
'also provides BetterDict, a dot lookup/assignment capable '
'wrapper for dicts that is 100% backwards compatible.',
long_description=long_description,
long_description_content_type='text/markdown',
license='MIT',
packages=find_packages(),
tests_require=tests_require,
tests_require=['nose>=1.3.7,<1.4', 'spec>=1.4.1,<1.5'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
test_suite='nose.collector',
)
4 changes: 0 additions & 4 deletions tests/base.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/betterdict_dict_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from querylist import BetterDict
from unittest import TestCase

from tests.base import TestCase
from querylist import BetterDict


class BetterDictActsAsDict(TestCase):
Expand Down
3 changes: 1 addition & 2 deletions tests/betterdict_tests.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from copy import deepcopy
from unittest import TestCase

from querylist import BetterDict

from tests.base import TestCase

SRC_DICT = {
'foo': 1,
'bar': {
Expand Down
4 changes: 2 additions & 2 deletions tests/betterdictlookup_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from querylist.dict import BetterDictLookUp
from unittest import TestCase

from tests.base import TestCase
from querylist.dict import BetterDictLookUp


class BetterDictLookUpInstancesCan(TestCase):
Expand Down
4 changes: 2 additions & 2 deletions tests/comparator_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from querylist.fieldlookup import FieldLookup
from unittest import TestCase

from tests.base import TestCase
from querylist.fieldlookup import FieldLookup

fl = FieldLookup

Expand Down
4 changes: 2 additions & 2 deletions tests/fieldlookup_tests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from unittest import TestCase

from querylist import BetterDict
from querylist.fieldlookup import FieldLookup, field_lookup

from tests.base import TestCase


class FieldLookupTests(TestCase):
def setUp(self):
Expand Down
4 changes: 2 additions & 2 deletions tests/querylist_list_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from querylist import BetterDict, QueryList
from unittest import TestCase

from tests.base import TestCase
from querylist import BetterDict, QueryList


class QueryListAddition(TestCase):
Expand Down
4 changes: 2 additions & 2 deletions tests/querylist_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from querylist import QueryList, BetterDict
from unittest import TestCase

from tests.base import TestCase
from querylist import BetterDict, QueryList
from tests.fixtures import SITE_LIST


Expand Down