Skip to content

Commit bacb0b9

Browse files
authored
Merge pull request #157 from PythonOT/build_wheels
[MRG] build wheels on release
2 parents e7e485a + ebf8fe9 commit bacb0b9

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed

.github/workflows/build_wheels.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build dist and wheels
2+
3+
on:
4+
release:
5+
6+
jobs:
7+
build_wheels:
8+
name: ${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ubuntu-18.04]
13+
# macosx-latest, windows-latest
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up Python 3.8
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: 3.8
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install -U "cython"
27+
28+
- name: Install cibuildwheel
29+
run: |
30+
python -m pip install cibuildwheel==1.3.0
31+
32+
- name: Install Visual C++ for Python 2.7
33+
if: startsWith(matrix.os, 'windows')
34+
run: |
35+
choco install vcpython27 -f -y
36+
37+
- name: Build wheel
38+
env:
39+
CIBW_BEFORE_BUILD: "pip install numpy cython"
40+
run: |
41+
python -m cibuildwheel --output-dir wheelhouse
42+
43+
- uses: actions/upload-artifact@v1
44+
with:
45+
name: wheels
46+
path: ./wheelhouse

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ Some demonstrations are available in the [documentation](https://pythonot.gith
5050
#### Using and citing the toolbox
5151

5252
If you use this toolbox in your research and find it useful, please cite POT
53-
using the following bibtex reference:
53+
using the following reference:
5454
```
55-
Rémi Flamary and Nicolas Courty, POT Python Optimal Transport library, Website: https://pythonot.github.io/, 2017
55+
Rémi Flamary and Nicolas Courty, POT Python Optimal Transport library,
56+
Website: https://pythonot.github.io/, 2017
5657
```
5758

5859
In Bibtex format:
@@ -86,9 +87,9 @@ You can install the toolbox through PyPI with:
8687
```
8788
pip install POT
8889
```
89-
or get the very latest version by downloading it and then running:
90+
or get the very latest version by running:
9091
```
91-
python setup.py install --user # for user install (no root)
92+
pip install -U https://github.com/PythonOT/POT/archive/master.zip # with --user for user install (no root)
9293
```
9394

9495

@@ -165,7 +166,7 @@ This toolbox has been created and is maintained by
165166

166167
The contributors to this library are
167168

168-
* [Alexandre Gramfort](http://alexandre.gramfort.net/) (CI)
169+
* [Alexandre Gramfort](http://alexandre.gramfort.net/) (CI, documentation)
169170
* [Laetitia Chapel](http://people.irisa.fr/Laetitia.Chapel/) (Partial OT)
170171
* [Michael Perrot](http://perso.univ-st-etienne.fr/pem82055/) (Mapping estimation)
171172
* [Léo Gautheron](https://github.com/aje) (GPU implementation)

0 commit comments

Comments
 (0)