Skip to content

Commit 4263c21

Browse files
authored
Merge pull request #2 from uncovertruth/feature/enable_ci
Set up CI
2 parents eabbfc1 + abb81fe commit 4263c21

File tree

5 files changed

+179
-22
lines changed

5 files changed

+179
-22
lines changed

.gitignore

Lines changed: 84 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,101 @@
1+
### https://raw.github.com/github/gitignore/f57304e9762876ae4c9b02867ed0cb887316387e/python.gitignore
2+
3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
15
*.py[cod]
6+
*$py.class
27

38
# C extensions
49
*.so
510

6-
# Packages
7-
*.egg
8-
*.egg-info
9-
dist
10-
build
11-
eggs
12-
parts
13-
bin
14-
var
15-
sdist
16-
develop-eggs
11+
# Distribution / packaging
12+
.Python
13+
env/
14+
build/
15+
develop-eggs/
16+
dist/
17+
downloads/
18+
eggs/
19+
.eggs/
20+
lib/
21+
lib64/
22+
parts/
23+
sdist/
24+
var/
25+
wheels/
26+
*.egg-info/
1727
.installed.cfg
18-
lib
19-
lib64
20-
__pycache__
28+
*.egg
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
2135

2236
# Installer logs
2337
pip-log.txt
38+
pip-delete-this-directory.txt
2439

2540
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
2643
.coverage
27-
.tox
44+
.coverage.*
45+
.cache
2846
nosetests.xml
47+
coverage.xml
48+
*,cover
49+
.hypothesis/
2950

3051
# Translations
3152
*.mo
53+
*.pot
54+
55+
# Django stuff:
56+
*.log
57+
local_settings.py
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# dotenv
85+
.env
86+
87+
# virtualenv
88+
.venv
89+
venv/
90+
ENV/
91+
92+
# Spyder project settings
93+
.spyderproject
94+
95+
# Rope project settings
96+
.ropeproject
97+
98+
# mkdocs documentation
99+
/site
100+
32101

33-
# Mr Developer
34-
.mr.developer.cfg
35-
.project
36-
.pydevproject
37-
.idea

.travis.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
sudo: false
2+
language: python
3+
cache: pip
4+
matrix:
5+
fast_finish: true
6+
include:
7+
- python: 2.7
8+
env: TOXENV=py27-dj18
9+
- python: 3.3
10+
env: TOXENV=py33-dj18
11+
- python: 3.4
12+
env: TOXENV=py34-dj18
13+
- python: 3.5
14+
env: TOXENV=py34-dj18
15+
- python: 2.7
16+
env: TOXENV=py27-dj19
17+
- python: 3.4
18+
env: TOXENV=py34-dj19
19+
- python: 3.5
20+
env: TOXENV=py35-dj19
21+
- python: 2.7
22+
env: TOXENV=py27-dj110
23+
- python: 3.4
24+
env: TOXENV=py34-dj110
25+
- python: 3.5
26+
env: TOXENV=py35-dj110
27+
- python: 2.7
28+
env: TOXENV=py27-dj111
29+
- python: 3.4
30+
env: TOXENV=py34-dj111
31+
- python: 3.5
32+
env: TOXENV=py35-dj111
33+
- python: 3.6
34+
env: TOXENV=py36-dj111
35+
- python: 3.5
36+
env: TOXENV=py35-djdev
37+
- python: 3.6
38+
env: TOXENV=py36-djdev
39+
- python: 3.6
40+
env: TOXENV=flake8
41+
- python: 3.6
42+
env: TOXENV=isort
43+
- python: 3.6
44+
env: TOXENV=readme
45+
allow_failures:
46+
- env: TOX_ENV=py35-djdev
47+
- env: TOX_ENV=py36-djdev
48+
49+
install:
50+
- pip install tox codecov
51+
script:
52+
- tox -v
53+
after_success:
54+
- codecov

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ node in the cluster using
88
## Requirements
99

1010
* pymemcache
11-
* Django 1.7+.
11+
* Django >= 1.8
1212

1313
It was written and tested on Python 2.7 and 3.5.
1414

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
license='MIT',
1616
keywords='elasticache amazon cache pymemcache memcached aws',
1717
packages=['django_elastipymemcache'],
18-
install_requires=['pymemcache', 'Django>=1.7'],
18+
install_requires=['pymemcache', 'Django>=1.8'],
1919
classifiers=[
2020
'Development Status :: 4 - Beta',
2121
'Environment :: Web Environment',

tox.ini

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[tox]
2+
envlist =
3+
py{27,33,34,35,36}-dj{18,19,110,111,dev}
4+
flake8,
5+
isort,
6+
readme
7+
8+
[testenv]
9+
basepython =
10+
py27: python2.7
11+
py33: python3.3
12+
py34: python3.4
13+
py35: python3.5
14+
py36: python3.6
15+
deps =
16+
dj18: Django>=1.8,<1.9
17+
dj19: Django>=1.9,<1.10
18+
dj110: Django>=1.10,<1.11
19+
dj111: Django>=1.11,<2.0
20+
djdev: https://github.com/django/django/archive/master.tar.gz
21+
coverage
22+
setenv =
23+
PYTHONPATH = {toxinidir}
24+
commands = coverage run --source=django_elastipymemcache -a setup.py test
25+
26+
[testenv:flake8]
27+
basepython = python3.6
28+
commands = make flake8
29+
deps = flake8
30+
31+
[testenv:isort]
32+
basepython = python3.6
33+
commands = make isort_check_only
34+
deps = isort
35+
36+
[testenv:readme]
37+
basepython = python3.6
38+
commands = python setup.py check -r -s
39+
deps = readme_renderer

0 commit comments

Comments
 (0)