Skip to content

Commit 5aac3a0

Browse files
author
Gal Ben David
authored
Deploy pipeline fix (#6)
- Deploy pipeline was causing problems due to compatibility issues. It is now fixed - Update dependencies versions
1 parent 141747e commit 5aac3a0

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333
uses: actions/setup-python@v2
3434
with:
3535
python-version: ${{ matrix.python-version }}
36-
- name: Run image
37-
uses: abatilo/[email protected]
3836
- name: Install Rust
3937
uses: actions-rs/toolchain@v1
4038
with:
4139
profile: minimal
4240
toolchain: stable
4341
override: true
42+
- name: Install Poetry
43+
uses: abatilo/[email protected]
4444
- name: Install dependencies
4545
run: poetry install
4646
- name: Build Python package

.github/workflows/deploy.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,23 @@ jobs:
2323
profile: minimal
2424
toolchain: stable
2525
override: true
26-
- name: Install maturin
27-
run: |
28-
python -m pip install --upgrade pip maturin
29-
- name: Build & Publish to PyPi
30-
if: matrix.os == 'ubuntu-latest'
31-
run: |
32-
python -m pip install --upgrade twine auditwheel;
33-
maturin build --no-sdist --interpreter python${{ matrix.python-version }} --manylinux=2014 --skip-auditwheel;
34-
auditwheel repair target/wheels/*.whl;
35-
twine upload --username __token__ wheelhouse/*.whl;
36-
env:
37-
TWINE_PASSWORD: ${{ secrets.pypi_password }}
38-
- name: Build & Publish to PyPi
39-
if: matrix.os == 'macos-latest'
40-
run: maturin publish --username __token__ --no-sdist --interpreter python${{ matrix.python-version }} --manylinux=2014
26+
- name: Publish Package
27+
if: matrix.os != 'windows-latest'
28+
uses: messense/maturin-action@v1
29+
with:
30+
maturin-version: latest
31+
command: publish
32+
manylinux: 2014
33+
args: --username=__token__ --no-sdist --interpreter=python${{ matrix.python-version }}
4134
env:
4235
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
43-
- name: Build & Publish to PyPi
36+
- name: Publish Package
4437
if: matrix.os == 'windows-latest'
45-
run: maturin publish --username=__token__ --no-sdist --interpreter=python --manylinux=2014
38+
uses: messense/maturin-action@v1
39+
with:
40+
maturin-version: latest
41+
command: publish
42+
manylinux: 2014
43+
args: --username=__token__ --no-sdist --interpreter=python
4644
env:
4745
MATURIN_PASSWORD: ${{ secrets.pypi_password }}

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ parking_lot = "0.11"
4242
crossbeam = "0.8"
4343
crossbeam-utils = "0.8"
4444

45+
[dependencies.libgit2-sys]
46+
version = "0.12"
47+
features = ["https"]
48+
4549
[dependencies.git2]
4650
version = "0.13"
51+
features = ["vendored-openssl"]
4752

4853
[dependencies.pyo3]
49-
version = "0.14.2"
54+
version = "0.14.5"
5055
features = ["extension-module"]
5156

5257
[profile.release]

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ sdist-include = [
99
"pyrepscan/*.py",
1010
"pyrepscan/*.pyi"
1111
]
12-
manylinux = "2014"
1312
strip = true
1413

1514
[tool.poetry]
@@ -45,7 +44,7 @@ python = "^3.6"
4544

4645
[tool.poetry.dev-dependencies]
4746
pytest = "*"
48-
gitpython = "*"
47+
gitpython = { git = "https://github.com/gitpython-developers/GitPython" }
4948
wheel = "*"
5049
pytest-runner = "*"
5150
maturin = "*"

0 commit comments

Comments
 (0)