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

how to specify build version with uv build? #8162

Closed
struckchure opened this issue Oct 13, 2024 · 3 comments
Closed

how to specify build version with uv build? #8162

struckchure opened this issue Oct 13, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists question Asking for clarification or support

Comments

@struckchure
Copy link

I'm building a Python package, and I need to add a release workflow, with a version tag too.

name: Publish to PyPI

on:
  push:
    tags:
      - "v*"

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Install uv
        uses: astral-sh/setup-uv@v3

      - name: Set up Python
        run: uv python install

      - name: Install dependencies
        run: uv sync

      - name: Build and publish
        run: |
          uv build
          uv publish --token ${{ secrets.PYPI_API_TOKEN }}

I basically need the equivalent of this, poetry version $(git describe --tags --abbrev=0)

@charliermarsh
Copy link
Member

Like, you need to extract the current project version into an environment variable?

@charliermarsh charliermarsh added the question Asking for clarification or support label Oct 14, 2024
@struckchure
Copy link
Author

Like, you need to extract the current project version into an environment variable?

I need to set a build version for my package

@zanieb
Copy link
Member

zanieb commented Oct 14, 2024

You're looking for #6298, we don't support this yet but you can track it there.

@zanieb zanieb closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
@zanieb zanieb added the duplicate This issue or pull request already exists label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

3 participants