Skip to content

Replace make dist with python -m build in PyPI workflow#160

Merged
MMathisLab merged 3 commits intoMMathisLab/pypi-releasefrom
copilot/sub-pr-158
Feb 14, 2026
Merged

Replace make dist with python -m build in PyPI workflow#160
MMathisLab merged 3 commits intoMMathisLab/pypi-releasefrom
copilot/sub-pr-158

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

The PyPI release workflow referenced a non-existent make dist command. The repository has no Makefile and uses pyproject.toml with setuptools for package configuration.

Changes:

  • Replace make dist with python -m build (standard Python packaging tool)
  • Add build package to pip dependencies, ordered before twine
  • Fix tarball filename pattern from deeplabcut-live-*.tar.gz to deeplabcut_live-*.tar.gz to match actual build output
- name: Install dependencies
  run: |
    pip install --upgrade pip
    pip install wheel
    pip install "packaging>=24.2"
    pip install build
    pip install twine

- name: Build and publish to PyPI
  run: |
    python -m build
    ls dist/
    tar tvf dist/deeplabcut_live-*.tar.gz
    python3 -m twine upload --verbose dist/*

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 14, 2026 10:23
Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com>
Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix GitHub Actions workflow for PyPI release Replace make dist with python -m build in PyPI workflow Feb 14, 2026
@MMathisLab MMathisLab marked this pull request as ready for review February 14, 2026 10:25
@MMathisLab MMathisLab merged commit f2deb31 into MMathisLab/pypi-release Feb 14, 2026
Copilot AI requested a review from MMathisLab February 14, 2026 10:25
@MMathisLab MMathisLab deleted the copilot/sub-pr-158 branch February 14, 2026 10:25
MMathisLab added a commit that referenced this pull request Feb 14, 2026
* Update GitHub Actions workflow for PyPI release

* Add missing twine installation to PyPI release workflow (#159)

* Initial plan

* Add twine installation to PyPI release workflow

Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Replace `make dist` with `python -m build` in PyPI workflow (#160)

* Initial plan

* Replace make dist with python -m build in PyPI workflow

Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com>

* Reorder pip install to place build before twine

Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

Comments