Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add the Pinax Patch to readme * update to latest CI stack * update to build matrix * drop support for older versions of Django * update import ordering to match our new isort config
- Loading branch information
Showing
24 changed files
with
395 additions
and
257 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 |
---|---|---|
@@ -0,0 +1,136 @@ | ||
version: 2.0 | ||
|
||
common: &common | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v2-deps-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
- v2-deps- | ||
- run: | ||
name: install dependencies | ||
command: pip install --user tox | ||
- run: | ||
name: run tox | ||
command: ~/.local/bin/tox | ||
- run: | ||
name: upload coverage report | ||
command: | | ||
if [[ "$TOXENV" != checkqa ]]; then | ||
PATH=$HOME/.local/bin:$PATH | ||
pip install --user codecov | ||
~/.local/bin/codecov --required --flags $CIRCLE_JOB | ||
fi | ||
- save_cache: | ||
paths: | ||
- .tox | ||
- ~/.cache/pip | ||
- ~/.local | ||
- ./eggs | ||
key: v2-deps-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
|
||
jobs: | ||
lint: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.6.1 | ||
environment: | ||
TOXENV=checkqa | ||
py27dj18: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:2.7 | ||
environment: | ||
TOXENV=py27-dj18 | ||
py27dj110: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:2.7 | ||
environment: | ||
TOXENV=py27-dj110 | ||
py27dj111: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:2.7 | ||
environment: | ||
TOXENV=py27-dj111 | ||
py34dj18: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.4 | ||
environment: | ||
TOXENV=py34-dj18 | ||
py34dj110: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.4 | ||
environment: | ||
TOXENV=py34-dj110 | ||
py34dj111: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.4 | ||
environment: | ||
TOXENV=py34-dj111 | ||
py34dj20: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.4 | ||
environment: | ||
TOXENV=py34-dj20 | ||
py35dj18: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.5 | ||
environment: | ||
TOXENV=py35-dj18 | ||
py35dj110: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.5 | ||
environment: | ||
TOXENV=py35-dj110 | ||
py35dj111: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.5 | ||
environment: | ||
TOXENV=py35-dj111 | ||
py35dj20: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.5 | ||
environment: | ||
TOXENV=py35-dj20 | ||
py36dj111: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.6 | ||
environment: | ||
TOXENV=py36-dj111 | ||
py36dj20: | ||
<<: *common | ||
docker: | ||
- image: circleci/python:3.6 | ||
environment: | ||
TOXENV=py36-dj20 | ||
|
||
workflows: | ||
version: 2 | ||
test: | ||
jobs: | ||
- lint | ||
- py27dj18 | ||
- py27dj110 | ||
- py27dj111 | ||
- py34dj18 | ||
- py34dj110 | ||
- py34dj111 | ||
- py34dj20 | ||
- py35dj18 | ||
- py35dj110 | ||
- py35dj111 | ||
- py35dj20 | ||
- py36dj111 | ||
- py36dj20 |
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,3 +1,4 @@ | ||
.cache | ||
build | ||
dist | ||
.coverage | ||
|
@@ -8,3 +9,4 @@ MANIFEST | |
*.egg | ||
docs/_build/ | ||
htmlcov/ | ||
.eggs |
This file was deleted.
Oops, something went wrong.
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
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,23 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
import django | ||
|
||
|
||
def run(*args): | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pinax.points.tests.settings") | ||
django.setup() | ||
|
||
parent = os.path.dirname(os.path.abspath(__file__)) | ||
sys.path.insert(0, parent) | ||
|
||
django.core.management.call_command( | ||
"makemigrations", | ||
"pinax_points", | ||
*args | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
run(*sys.argv[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,4 +1,5 @@ | ||
import pkg_resources | ||
|
||
|
||
default_app_config = "pinax.points.apps.AppConfig" | ||
__version__ = pkg_resources.get_distribution("pinax-points").version |
Oops, something went wrong.