Skip to content

Commit eabfc0b

Browse files
committed
set ujson as optional dependency, test CPython builds with ujson
1 parent fcda567 commit eabfc0b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ install:
1010
- pip install coveralls
1111
- pip install -r requirements.txt
1212
- pip install -r requirements-dev.txt
13+
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
1314
script:
1415
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/
15-
- 'if [ $TRAVIS_PYTHON_VERSION != 3.3 ] && [ $TRAVIS_PYTHON_VERSION != pypy3 ]; then pre-commit run --all-files; fi'
16+
- if [ $TRAVIS_PYTHON_VERSION != 3.3 ] && [ $TRAVIS_PYTHON_VERSION != pypy3 ]; then pre-commit run --all-files; fi
1617
after_success:
1718
coveralls

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ def requirements():
3434
long_description=fd.read(),
3535
packages=find_packages(exclude=['tests*']),
3636
install_requires=requirements(),
37+
extras_require={
38+
'json': 'ujson',
39+
},
3740
include_package_data=True,
3841
classifiers=[
3942
'Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)