From b92f1558e12d8b585216e7ec0090bc977e59fed7 Mon Sep 17 00:00:00 2001 From: Benjamin Lefaudeux Date: Fri, 29 Jan 2021 23:14:04 +0000 Subject: [PATCH 1/3] adding fairseq's gha --- .github/workflows/build_wheels.yml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build_wheels.yml diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml new file mode 100644 index 000000000..ff370b6f9 --- /dev/null +++ b/.github/workflows/build_wheels.yml @@ -0,0 +1,40 @@ +name: build_wheels + +on: + push: + branches: + - v[0-9]+.[0-9]+.[x0-9]+ + tags: + - v* + +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: '3.7' + + - name: Install cibuildwheel + run: | + python -m pip install cibuildwheel + - name: Build wheels for CPython + run: | + python -m cibuildwheel --output-dir dist + env: + CIBW_BUILD: "cp36-*64 cp37-*64 cp38-*64" + CIBW_MANYLINUX_X86_64_IMAGE: manylinux1 + CIBW_BEFORE_BUILD: git submodule update --init --recursive && pip install . + + - uses: actions/upload-artifact@v2 + with: + name: wheels + path: ./dist/*.whl \ No newline at end of file From e6b89597b1fe3f298fa666b77e9fd59ec659e118 Mon Sep 17 00:00:00 2001 From: Benjamin Lefaudeux Date: Mon, 1 Feb 2021 09:03:16 -0800 Subject: [PATCH 2/3] adding py3.9, removing submodules --- .github/workflows/build_wheels.yml | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index ff370b6f9..d26f13de7 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -30,9 +30,9 @@ jobs: run: | python -m cibuildwheel --output-dir dist env: - CIBW_BUILD: "cp36-*64 cp37-*64 cp38-*64" + CIBW_BUILD: "cp36-*64 cp37-*64 cp38-*64 cp39-*64" CIBW_MANYLINUX_X86_64_IMAGE: manylinux1 - CIBW_BEFORE_BUILD: git submodule update --init --recursive && pip install . + CIBW_BEFORE_BUILD: pip install . - uses: actions/upload-artifact@v2 with: diff --git a/pyproject.toml b/pyproject.toml index 363c814e5..9b2d7cee8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,4 +28,4 @@ use_parentheses = true skip_glob = ["build/*", "stubs/*"] # Don't split "import" and "from". force_sort_within_sections = true -known_third_party = ["benchmark_dataset", "datasets", "golden_configs", "helpers", "models", "numpy", "pytest", "recommonmark", "setuptools", "torch", "torch_pg", "torchtext", "torchvision"] +known_third_party = ["benchmark_dataset", "dataclasses", "datasets", "golden_configs", "helpers", "models", "numpy", "pytest", "recommonmark", "setuptools", "torch", "torch_pg", "torchtext", "torchvision"] From 99e81cd07447e8a92a7dfcddc41c1ddb860578de Mon Sep 17 00:00:00 2001 From: Benjamin Lefaudeux Date: Mon, 1 Feb 2021 09:04:11 -0800 Subject: [PATCH 3/3] yaml linting --- .github/workflows/build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index d26f13de7..26921c0e3 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -37,4 +37,4 @@ jobs: - uses: actions/upload-artifact@v2 with: name: wheels - path: ./dist/*.whl \ No newline at end of file + path: ./dist/*.whl