Skip to content

[sys] Fix deployment via github actions and pypi#1144

Merged
fso42 merged 1 commit into
masterfrom
fixDeploy
Jun 16, 2025
Merged

[sys] Fix deployment via github actions and pypi#1144
fso42 merged 1 commit into
masterfrom
fixDeploy

Conversation

@fso42
Copy link
Copy Markdown
Contributor

@fso42 fso42 commented Jun 16, 2025

This moves away from buildmanylinux to cibuildwheel in the github actions

@fso42 fso42 added this to the Version 1.13 milestone Jun 16, 2025
@fso42 fso42 self-assigned this Jun 16, 2025
@fso42 fso42 added the enhancement New feature or request label Jun 16, 2025
@qltysh
Copy link
Copy Markdown
Contributor

qltysh Bot commented Jun 16, 2025

All good ✅

Comment thread setup.py Outdated
Comment thread setup.py Outdated
@fso42 fso42 changed the title Fix deploy [sys] Fix deployment via github actions an pypi Jun 16, 2025
@fso42 fso42 changed the title [sys] Fix deployment via github actions an pypi [sys] Fix deployment via github actions and pypi Jun 16, 2025
…dwheel

- Update cibuildwheel version to `v3.0.0`.
- Include steps to install dependencies and compile Cython code for source distribution.

chore(config): switch from hatch to setuptools build system

- Replace `hatchling` build backend with `setuptools.build_meta` in `pyproject.toml`.
- Add `setuptools-scm` to project dependencies and configure versioning in `pyproject.toml`.

chore(ci): refine PyPi workflow and versioning configuration

- Add `version_file` to `setuptools_scm` configuration in `pyproject.toml`.
- Simplify OS matrix in GitHub Actions workflow, removing specific ARM runners.
- Introduce `CIBW_PLATFORM` environment variable for cibuildwheel.
- Update source distribution step to use `python -m build` without `--wheel`.

chore(ci): update python version and refine PyPi workflow

- Upgrade Python version from `3.11` to `3.12` in the GitHub Actions workflow.
- Set `fetch-depth` to 0 for full repository history.
- Update `setuptools_scm` versioning configuration in `pyproject.toml` to use `no-guess-dev` scheme.

chore(ci): update cibuildwheel settings and restore cython directives

- Add specific cibuildwheel settings to `pyproject.toml` and GitHub Actions workflow, skipping `*musllinux*` builds.
- Restore Cython compiler directives to `*.pyx` files for optimized performance.

chore(ci): update `cibuildwheel` settings to skip `*-win32` builds

- Modify `pyproject.toml` to include `*-win32` in the skip patterns for `cibuildwheel`.

chore(config): include Cython source files in `MANIFEST.in` and update build settings

- Add `*.pyx` and `*.pxd` files from `com1DFA` to `MANIFEST.in`.
- Update `pyproject.toml` to fix capitalization of `Cython` and add pre-build commands for dependency installation.
- Remove obsolete `#!python` comments and Cython compiler directives from `*.pyx` files for cleaner code.

chore(config): update setuptools configuration and package setup

- Disable implicit namespace packages in `pyproject.toml`.
- Add `cython` to installation requirements in `setup.py`.

chore(config): simplify file path handling in `setup.py`

- Replace `os.path.join` with direct string paths for Cython files.

chore(ci): comment out unused settings in PyPI workflow and `pyproject.toml`

- Disable `CIBW_SKIP` and unused release conditionals in GitHub Actions.

chore(config): adjust `pyproject.toml` and `setup.py` settings for consistency

- Exclude `docs` from packages in `pyproject.toml` and disable implicit namespaces.
- Comment out unused `cibuildwheel` build settings for CPython 3.12.
- Remove outdated file path comments in `setup.py` for cleaner configuration.

chore(config, ci): update `pyproject.toml` and refine PyPI workflow

chore(ci): remove `releaseWithManylinux.yml` and coverage reporting with `codeclimate-action`

- Delete `releaseWithManylinux.yml` to streamline workflows.
- Remove `codeclimate-action` for coverage reporting from `runTestSinglePython.yml`.

chore(config): remove unused package discovery from `setup.py`

chore(config, ci): update Cython configuration and refine build workflow

- Add `pytest-mock` to dependencies in `pyproject.toml`.
- Update `setuptools-scm` to use `local_scheme="node-and-date"`.
- Enable `include-package-data` in `pyproject.toml`.
- Restore Cython directives in relevant `*.pyx` files for optimized performance.
- Refactor `setup.py` to include extensions unconditionally and enable `linetrace` for Cython modules.
@fso42 fso42 linked an issue Jun 16, 2025 that may be closed by this pull request
@qltysh
Copy link
Copy Markdown
Contributor

qltysh Bot commented Jun 16, 2025

Diff Coverage: Not applicable. There was no coverage data reported for the files in this diff.

Total Coverage: This PR will decrease coverage by 0.02%.

File Coverage Changes
Path File Coverage Δ Indirect
avaframe/com1DFA/DFAfunctionsCython.pyx -0.2
🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@fso42 fso42 merged commit 0d4d6cc into master Jun 16, 2025
4 checks passed
@fso42 fso42 deleted the fixDeploy branch June 16, 2025 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch to cibuildwheels in github release action

1 participant