Skip to content

Commit

Permalink
[chore] Fix uv publishing (#108)
Browse files Browse the repository at this point in the history
Why
===

I missed the significance of `--locked` vs `--frozen` when setting up
for publishing.

What changed
============

- Using `--frozen` to _verify_ `uv.lock` but permit metadata changes
(like the package `version` that gets updated prior to publishing)
- Adding missing package classifiers

Test plan
=========

Can we publish? Can we install? Does the installed package work?
  • Loading branch information
blast-hardcheese authored Nov 7, 2024
1 parent 1a24d9c commit 8b7034d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Build and publish
run: |
uv sync --locked
uv sync --frozen # NB: Not --locked, since bumping the version changes the lockfile.
uv build
UV_PUBLISH_TOKEN="${{ secrets.PYPI_TOKEN }}" \
uv publish
4 changes: 0 additions & 4 deletions poetry.toml

This file was deleted.

14 changes: 13 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@ authors = [{ name = "Replit", email = "[email protected]" }]
license = { file = "LICENSE" }
keywords = ["rpc", "websockets"]
readme = "README.md"
requires-python = ">=3.11"
requires-python = ">=3.11,<4"
classifiers = [
"Development Status :: 4 - Beta",

"Intended Audience :: Developers",
"Topic :: Internet",

"License :: OSI Approved :: MIT License",

"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"pydantic==2.9.2",
"aiochannel>=1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b7034d

Please sign in to comment.