1.1.15 • Published 12 months ago

@open_resources/semantic-release-uv v1.1.15

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
12 months ago

⚙️🐍 semantic-release-uv

A semantic-release plugin to publish Python packages built with uv.\ NPM Version Gitlab Pipeline Status\ Semantic Release Gitlab Code Coverage

CI Environment

  • Node.js ≥ 18.0.0
  • Python ≥ 3.9
  • uv installed and available in PATH

Build System Interface

semantic-release-uv uses uv to build and publish Python packages defined with pyproject.toml.

  • Supports only PEP 621-compliant pyproject.toml configuration
  • Does not support legacy setup.py/setup.cfg-based builds
  • Requires uv to be installed and discoverable

Steps

StepDescription
verifyConditions- Verify the presence and validity of PYPI_TOKEN- Validate the pyproject.toml structure
prepareUpdate the version in pyproject.toml, locking and build the distribution with uv
publishUpload the package to PyPI or a custom index using uv publish

Environment Variables

VariableDescriptionRequiredDefault
PYPI_TOKENAPI token for PyPI
PYPI_REPO_URLCustom repository URLhttps://upload.pypi.org/legacy/
PYPI_USERNAMEUsername for repositorytoken

Usage

Add the plugin to your semantic-release configuration:

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@open_resources/semantic-release-uv"
  ]
}

Note that this plugin modifies the version inside of pyproject.toml and potentially change uv.lock. Make sure to commit pyproject.toml using the @semantic-release/git plugin, if you want to save the changes:

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "semantic-release-uv",
    [
      "@semantic-release/git",
      {
        "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
        "assets": ["pyproject.toml", "uv.lock"],
      }
    ]
  ]
}

Options

OptionTypeDefaultDescription
srcDirstring.Path to the project root
distDirstringdistOutput directory for built distributions
repoUrlstringhttps://upload.pypi.org/legacy/URL of the package index

Development

TODO

License

MIT License

Author Information

Deltamir - ITN Security Expert, DevSecOps Engineer and Certified Pentester in a Telecom company Contact via Github/Gitlab inbox

1.1.15

12 months ago

1.1.15-rc.1

12 months ago

1.1.14

12 months ago

1.1.14-rc.1

12 months ago

1.1.13

12 months ago

1.1.13-rc.1

12 months ago

1.1.12

12 months ago

1.1.12-rc.1

12 months ago

1.1.11

12 months ago

1.1.11-rc.1

12 months ago

1.1.10

12 months ago

1.1.10-rc.2

12 months ago

1.1.10-rc.1

12 months ago

1.1.9

12 months ago

1.1.9-rc.1

12 months ago

1.1.8

12 months ago

1.1.8-rc.1

12 months ago

1.1.7

12 months ago

1.1.7-rc.1

12 months ago

1.1.6

12 months ago

1.1.6-rc.1

12 months ago

1.1.5

12 months ago

1.1.5-rc.1

12 months ago

1.1.4

12 months ago

1.1.4-rc.1

12 months ago

1.1.1-rc.4

12 months ago

1.1.3

12 months ago

1.1.1-rc.3

12 months ago

1.1.2

12 months ago

1.1.1-rc.2

12 months ago

1.1.1

12 months ago

1.1.1-rc.1

12 months ago

1.1.0

12 months ago

1.1.0-rc.2

12 months ago

1.0.2

12 months ago