mirror of
https://github.com/mtshiba/pylyzer.git
synced 2025-07-07 17:45:00 +00:00
build: lower minimum version requirements
This commit is contained in:
parent
965418be80
commit
a08003d5b8
3 changed files with 5 additions and 15 deletions
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -30,12 +30,6 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# - target: armv7-unknown-linux-gnueabihf
|
|
||||||
# os: ubuntu-latest
|
|
||||||
# - target: aarch64-unknown-linux-gnu
|
|
||||||
# os: ubuntu-latest
|
|
||||||
# - target: aarch64-apple-darwin
|
|
||||||
# os: macos-latest
|
|
||||||
- target: x86_64-unknown-linux-gnu
|
- target: x86_64-unknown-linux-gnu
|
||||||
platform: linux
|
platform: linux
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
|
@ -45,8 +39,6 @@ jobs:
|
||||||
- target: x86_64-pc-windows-msvc
|
- target: x86_64-pc-windows-msvc
|
||||||
platform: windows
|
platform: windows
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
# - target: i686-pc-windows-msvc
|
|
||||||
# os: windows-latest
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -56,12 +48,11 @@ jobs:
|
||||||
- name: setup-tools
|
- name: setup-tools
|
||||||
run: |
|
run: |
|
||||||
rustup update stable
|
rustup update stable
|
||||||
pip3 install twine build cibuildwheel setuptools-rust
|
pip3 install twine build cibuildwheel setuptools-rust tomli
|
||||||
rustup target add ${{ matrix.target }}
|
rustup target add ${{ matrix.target }}
|
||||||
- name: build
|
- name: build
|
||||||
run: cibuildwheel --output-dir dist --platform ${{ matrix.platform }}
|
run: cibuildwheel --output-dir dist --platform ${{ matrix.platform }}
|
||||||
env:
|
env:
|
||||||
# CIBW_BUILD: '${{ matrix.python-version }}-*'
|
|
||||||
# rust doesn't seem to be available for musl linux on i686
|
# rust doesn't seem to be available for musl linux on i686
|
||||||
CIBW_SKIP: '*-musllinux_i686'
|
CIBW_SKIP: '*-musllinux_i686'
|
||||||
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_TERM_COLOR="always"'
|
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_TERM_COLOR="always"'
|
||||||
|
@ -70,7 +61,6 @@ jobs:
|
||||||
CIBW_BEFORE_BUILD_LINUX: >
|
CIBW_BEFORE_BUILD_LINUX: >
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
|
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
|
||||||
rustup show
|
rustup show
|
||||||
# CIBW_TEST_SKIP: '*-macosx_arm64 *-macosx_universal2:arm64'
|
|
||||||
# CIBW_BUILD_VERBOSITY: 1
|
# CIBW_BUILD_VERBOSITY: 1
|
||||||
- name: upload
|
- name: upload
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools", "setuptools-rust", "wheel"]
|
requires = ["setuptools", "setuptools-rust", "wheel", "tomli"]
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -2,11 +2,11 @@ from pathlib import Path
|
||||||
import os
|
import os
|
||||||
import shlex
|
import shlex
|
||||||
from glob import glob
|
from glob import glob
|
||||||
import tomllib
|
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from setuptools import setup, Command
|
from setuptools import setup, Command
|
||||||
from setuptools_rust import RustBin
|
from setuptools_rust import RustBin
|
||||||
|
import tomli
|
||||||
|
|
||||||
class Clean(Command):
|
class Clean(Command):
|
||||||
user_options = []
|
user_options = []
|
||||||
|
@ -23,7 +23,7 @@ with open("README.md", encoding="utf-8", errors="ignore") as fp:
|
||||||
long_description = fp.read()
|
long_description = fp.read()
|
||||||
|
|
||||||
with open("Cargo.toml", "rb") as fp:
|
with open("Cargo.toml", "rb") as fp:
|
||||||
toml = tomllib.load(fp)
|
toml = tomli.load(fp)
|
||||||
name = toml["package"]["name"]
|
name = toml["package"]["name"]
|
||||||
description = toml["package"]["description"]
|
description = toml["package"]["description"]
|
||||||
version = toml["workspace"]["package"]["version"]
|
version = toml["workspace"]["package"]["version"]
|
||||||
|
@ -54,7 +54,7 @@ setup(
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
version=version,
|
version=version,
|
||||||
license=license,
|
license=license,
|
||||||
python_requires=">=3.11",
|
python_requires=">=3",
|
||||||
rust_extensions=[
|
rust_extensions=[
|
||||||
RustBin("pylyzer", args=cargo_args, cargo_manifest_args=["--locked"])
|
RustBin("pylyzer", args=cargo_args, cargo_manifest_args=["--locked"])
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue