Skip to content

Commit 8bbe443

Browse files
committed
requirements cleanup/streamlining and trying something different for travis.
1 parent ba5e7e5 commit 8bbe443

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
dist: xenial # required for Python >= 3.7
22
language: python
33
env:
4-
- REQUIREMENTS=true
5-
- REQUIREMENTS=false
4+
- IMAGESIZE=true
5+
- IMAGESIZE=false
66
python:
77
- "3.5"
88
- "3.6"
@@ -12,10 +12,9 @@ python:
1212
- "pypy3"
1313
# command to install dependencies
1414
install:
15-
- if [[ $REQUIREMENTS == true ]] ; then pip install -r requirements.txt ; fi
1615
- pip install -U coveralls pytest pytest-cov 'coverage<5' codecov
17-
- pip install -e .
18-
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' && $REQUIREMENTS == true ]] ; then pip uninstall -y regex; fi
16+
- if [[ $IMAGESIZE == true ]] ; then pip install -e '.[imagesize]' ; fi
17+
- if [[ $IMAGESIZE == false ]] ; then pip install -e . ; fi
1918
# command to run tests
2019
script: py.test
2120
after_success:

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
html5lib>=1.0.1
21
Pillow
3-
regex

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,11 @@ def get_version():
5757
keywords='textile,text,html markup',
5858
install_requires=[
5959
'html5lib>=1.0.1',
60+
'regex ; python_implementation != PyPy',
6061
],
6162
extras_require={
62-
':python_version=="2.6"': ['ordereddict>=1.1'],
6363
'develop': ['pytest', 'pytest-cov'],
6464
'imagesize': ['Pillow>=3.0.0'],
65-
'regex': ['regex'],
6665
},
6766
entry_points={'console_scripts': ['pytextile=textile.__main__:main']},
6867
setup_requires=['pytest-runner'],

0 commit comments

Comments
 (0)