File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 55 - " 3.5"
66
77env :
8- - PENDULUM_EXTENSIONS=true
9- - PENDULUM_EXTENSIONS=false
8+ - PENDULUM_EXTENSIONS=1
9+ - PENDULUM_EXTENSIONS=0
1010
1111before_install :
1212 - pip install codecov
Original file line number Diff line number Diff line change @@ -24,17 +24,14 @@ def get_version():
2424__version__ = get_version ()
2525
2626# C Extensions
27- with_extensions = os .environ . get ('PENDULUM_EXTENSIONS' , '' )
27+ with_extensions = os .getenv ('PENDULUM_EXTENSIONS' , False )
2828
29- if with_extensions .lower () == 'false' :
30- with_extensions = False
31- else :
29+ if with_extensions == '1' :
3230 with_extensions = True
3331
3432if hasattr (sys , 'pypy_version_info' ):
3533 with_extensions = False
3634
37-
3835extensions = []
3936if with_extensions :
4037 try :
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ deps = -rtests-requirements.txt
66commands = py.test tests -sq
77
88setenv =
9- without-extensions: PENDULUM_EXTENSIONS =false
10- with-extensions: PENDULUM_EXTENSIONS =true
9+ without-extensions: PENDULUM_EXTENSIONS =0
10+ with-extensions: PENDULUM_EXTENSIONS =1
1111
1212[testenv:flake8]
1313basepython =python
You can’t perform that action at this time.
0 commit comments