Skip to content

Commit 62dbe5d

Browse files
committed
tox.ini: pin versions and test latest
1 parent f95eb1a commit 62dbe5d

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

fluent.runtime/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
'Programming Language :: Python :: 3.5',
2020
],
2121
packages=['fluent', 'fluent.runtime'],
22+
# These should also be duplicated in tox.ini
2223
install_requires=[
2324
'fluent.syntax>=0.10,<=0.13',
2425
'attrs',

fluent.runtime/tox.ini

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
[tox]
2-
envlist = py27, py35, py36, py37, pypy, pypy3
2+
envlist = {py27, py35, py36, py37, pypy, pypy3}-syntax0.12, py36-syntax0.10, latest
33
skipsdist=True
44

55
[testenv]
66
setenv =
77
PYTHONPATH = {toxinidir}
88
deps =
9-
.
9+
attrs==19.1.0
10+
babel==2.6.0
11+
pytz==2018.9
12+
six==1.12.0
13+
syntax0.10: fluent.syntax==0.10.0
14+
syntax0.12: fluent.syntax==0.12.0
1015
commands = ./runtests.py
16+
17+
[testenv:latest]
18+
basepython = python3.6
19+
deps =
20+
# Here we try to reproduce what a user gets if they do 'pip install fluent.runtime'
21+
# It's tempting to use '.' here to get 'pip install .'
22+
# Unfortunately it is super slow: https://github.com/pypa/pip/issues/2195
23+
# Instead we define the same requirements as in setup.py
24+
fluent.syntax>=0.10,<=0.13
25+
attrs
26+
babel
27+
pytz
28+
six

0 commit comments

Comments
 (0)