Skip to content

Commit

Permalink
Fix PHIS: PyDomDisco | Fixes in pyproject.toml, deploy files
Browse files Browse the repository at this point in the history
  • Loading branch information
ostern-r7 authored Sep 19, 2023
2 parents 9bd9db6 + a21ecd2 commit 77a9556
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 23 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
name: Deploy
on:
release:
types: [released]
types:
- released
jobs:
deploy:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10','3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Rust
Expand All @@ -29,25 +38,13 @@ jobs:
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
- name: Publish Package
if: matrix.os != 'windows-latest'
uses: messense/maturin-action@v1
uses: PyO3/maturin-action@v1
with:
maturin-version: latest
command: publish
manylinux: 2014
args: --username=__token__ --no-sdist --interpreter=python${{ matrix.python-version }}
args: --username=__token__ ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' && '' || '--no-sdist' }} --interpreter=python${{ !startsWith(matrix.os, 'windows') && matrix.python-version || '' }}
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
- name: Publish Package
if: matrix.os != 'macos-latest'
uses: messense/maturin-action@v1
with:
maturin-version: latest
command: publish
manylinux: 2014
args: --username=__token__ --no-sdist --interpreter=python
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
- name: Publish macOS (x86_64) Package
if: matrix.os == 'macos-latest'
uses: PyO3/maturin-action@v1
Expand All @@ -63,5 +60,4 @@ jobs:
command: publish
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-apple-darwin --no-sdist
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}

MATURIN_PASSWORD: ${{ secrets.pypi_password }}
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pydomdisco"
version = "0.4.1"
version = "0.4.2"
description = "A fast async domain discovery tool written in Rust"
authors = [
{email = "[email protected]"},
Expand Down Expand Up @@ -34,7 +34,7 @@ sdist-include = [

[tool.poetry]
name = "pydomdisco"
version = "0.4.0"
version = "0.4.2"
authors = ["Gal Ben David <[email protected]>"]
description = "A fast async domain discovery tool written in Rust"
readme = "README.md"
Expand Down

0 comments on commit 77a9556

Please sign in to comment.