Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Update_packaging #732

Merged
merged 48 commits into from
Jan 4, 2025
Merged

Conversation

Adamtaranto
Copy link
Collaborator

Work in progress, do not merge.

Migrating from setuptools to Hatch as the build system.

Currently stuck on getting hatch-cython to build only "jcvi_assembly_chic" and "jcvi_formats_cblast".

if savefig fails. Instead just return error msg.
Allows collection of outputs.
Added redirect_error arg so stderr can be
redirected to stdout and user in error logging.
…w on MacOS, change error to warning if homebrew path not found.
@tanghaibao tanghaibao marked this pull request as draft January 3, 2025 04:51
@Adamtaranto Adamtaranto self-assigned this Jan 4, 2025
@Adamtaranto
Copy link
Collaborator Author

Adamtaranto commented Jan 4, 2025

  • Use Hatch for majority of build and install tasks (kept setuptools for build Cython modules)
  • Move all practical config content into pyproject.toml
  • Add conda env YAMLs to handle install of non-python deps (i.e. bedtools and imagemagick) - no more manual install steps or requirements for homebrew on MacOS.
  • Updated install instructions to include conda env YAMLs
  • Moved package modules into src dir in line with modern package structure
  • Use hatch-vcs to dynamically set version based on git tags (add a new tag prefixed with "v" before creating new releases)
  • Build with one step hatch build and upload to pypi as normal.
  • I haven't tested the environment.yml setup on a linux machine yet

Bug fixes:

@Adamtaranto Adamtaranto marked this pull request as ready for review January 4, 2025 04:28
@Adamtaranto Adamtaranto requested a review from tanghaibao January 4, 2025 04:29
@tanghaibao tanghaibao merged commit ea05c58 into tanghaibao:main Jan 4, 2025
7 checks passed
@Adamtaranto Adamtaranto deleted the update_packaging branch January 4, 2025 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants