Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pypy in build pipeline #359

Merged
merged 5 commits into from
Nov 7, 2017
Merged
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
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ matrix:
- python: 3.6
env: TOXENV=py36-deps-devel

- python: pypy3
env: TOXENV=pypy
- python: 3.6
env: TOXENV=syntax

Expand Down
4 changes: 1 addition & 3 deletions examples/serializer_class.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
import asyncio
import zlib

Expand Down Expand Up @@ -40,9 +39,8 @@ async def serializer():
await cache.set("key", text)
print("-----------------------------------")
real_value = await cache.get("key")

compressed_value = await cache.raw("get", "main:key")
assert sys.getsizeof(compressed_value) < sys.getsizeof(real_value)
assert len(compressed_value) < len(real_value.encode())


def test_serializer():
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython'
'Programming Language :: Python :: Implementation :: PyPy',
'Framework :: AsyncIO',
],
packages=find_packages(),
Expand All @@ -40,7 +42,6 @@
'pytest-mock',
'codecov',
'marshmallow',
'mypy',
'asynctest==0.11.0',

'sphinx',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{35,36}
py{35,36,pypy}
py{35,36}-{deps-lowest,deps-devel}
py{35,36}-ujson
syntax
Expand Down