Skip to content

Commit

Permalink
Remove blis python version constraints (explosion#6522)
Browse files Browse the repository at this point in the history
* Remove blis version constraints

After updating the blis sdist in v0.7.4, remove python version
constraints for blis build and install dependencies.

* Install sdist with --prefer-binary for python 3.5

* Fix duplicate sdist install steps

* Fix sdist install step types

* Fix blis pins in requirements.txt

* Remove wheel hack for python 3.5 from CI
  • Loading branch information
adrianeboyd authored Dec 8, 2020
1 parent 4e77349 commit df4891b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
22 changes: 15 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,16 @@ jobs:
versionSpec: '$(python.version)'
architecture: 'x64'

- script: |
python -m pip install -U pip setuptools
pip install -r requirements.txt --prefer-binary
- script: python -m pip install -U pip setuptools
displayName: 'Update pip'

- script: pip install -r requirements.txt --prefer-binary
displayName: 'Install dependencies (python 3.5: prefer binary)'
condition: eq(variables['python.version'], '3.5')

- script: pip install -r requirements.txt
displayName: 'Install dependencies'
condition: not(eq(variables['python.version'], '3.5'))

- script: |
python setup.py build_ext --inplace -j 2
Expand All @@ -109,15 +115,17 @@ jobs:
pip uninstall -y -r installed.txt
displayName: 'Uninstall all packages'
- script: |
pip install wheel
condition: and(eq(variables['os'], 'linux'), eq(variables['python.version'], '3.5'))
displayName: 'Hack: install wheel for python 3.5'
- bash: |
SDIST=$(python -c "import os;print(os.listdir('./dist')[-1])" 2>&1)
pip install dist/$SDIST --prefer-binary
displayName: 'Install from sdist (python 3.5: prefer binary)'
condition: eq(variables['python.version'], '3.5')
- bash: |
SDIST=$(python -c "import os;print(os.listdir('./dist')[-1])" 2>&1)
pip install dist/$SDIST
displayName: 'Install from sdist'
condition: not(eq(variables['python.version'], '3.5'))
- script: |
pip install -r requirements.txt --prefer-binary
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ requires = [
"preshed>=3.0.2,<3.1.0",
"murmurhash>=0.28.0,<1.1.0",
"thinc>=7.4.1,<7.5.0",
"blis>=0.4.0,<0.8.0; python_version >= '3.6'",
"blis>=0.4.0,<0.5.0; python_version < '3.6'",
"blis>=0.4.0,<0.8.0",
"numpy>=1.15.0",
]
build-backend = "setuptools.build_meta"
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
cymem>=2.0.2,<2.1.0
preshed>=3.0.2,<3.1.0
thinc>=7.4.1,<7.5.0
blis>=0.4.0,<0.8.0; python_version >= "3.6"
blis>=0.4.0,<0.5.0; python_version < "3.6"
blis>=0.4.0,<0.8.0
murmurhash>=0.28.0,<1.1.0
wasabi>=0.4.0,<1.1.0
srsly>=1.0.2,<1.1.0
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ install_requires =
cymem>=2.0.2,<2.1.0
preshed>=3.0.2,<3.1.0
thinc>=7.4.1,<7.5.0
blis>=0.4.0,<0.8.0; python_version >= "3.6"
blis>=0.4.0,<0.5.0; python_version < "3.6"
blis>=0.4.0,<0.8.0
wasabi>=0.4.0,<1.1.0
srsly>=1.0.2,<1.1.0
catalogue>=0.0.7,<1.1.0
Expand Down

0 comments on commit df4891b

Please sign in to comment.