Skip to content

Feat/add uv and semantic release#30

Closed
juliette0704 wants to merge 11 commits into
mainfrom
feat/add_uv_and_semantic_release
Closed

Feat/add uv and semantic release#30
juliette0704 wants to merge 11 commits into
mainfrom
feat/add_uv_and_semantic_release

Conversation

@juliette0704
Copy link
Copy Markdown
Contributor

Description

Checklist

  • I have run the tests locally with make install-dev and make test
  • I have updated the README.md if my changes affected it
  • I have updated the package version in linkup/_version.py if I plan on creating a new release

@juliette0704 juliette0704 requested review from BruceWouaigne and removed request for BruceWouaigne June 30, 2025 08:02
@BruceWouaigne BruceWouaigne requested a review from cjumel July 1, 2025 10:28
Copy link
Copy Markdown
Contributor

@cjumel cjumel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be nice to split this PR in two, one focusing on switching the project to uv, the other one for the introduction of the semantic release (which I'm not familiar with so this will be more difficult to review for me 😬)
Besides the comments I made, I have two additional remarks:

  • adding a small, concise description in the PR is nice in cases somebody who doesn't have the context of this work (like me 😇) has to look at this
  • if we're going to use something like the conventional commit parser, then it can be nice to follow this convention, typically in your PR title (e.g. using chore: switch to uv), if you plan to squash and merge your PR
  • can you change the project structure to use the src layout? (you can check or other repositories, or use the uv init --lib command to generate an example)

Comment thread README.md Outdated

```bash
pip install linkup-sdk
uv pip install linkup-sdk
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command shouldn't be changed, this describes how to install the package from the PyPI index, so it can still be using pip (which is still the standard from the community globally)

Comment thread pyproject.toml Outdated

[dependency-groups]
dev = [
"distlib==0.3.9",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need more than what was previously in the requirements-dev.txt in this section

Comment thread pyproject.toml Outdated
[project]
authors = []
dependencies = [
"cohere>=5.14.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dependencies (the main ones) are defined in the setup.py file already (in install_required), so make sure they are the same; globally the setup.py should be replaced by the new set up in the pyproject.toml and can be removed afterwards

with:
python-version: ${{ matrix.python-version }}

- name: Install uv
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will also setup python, so you can remove the set up python step I think (check the documentation maybe but this is what we did in some of our other repositories)

Comment thread Makefile Outdated
Comment on lines +1 to +8
install:
@echo "Installing local package..."
pip install .
uv sync
uv run pre-commit install
install-dev:
@echo "Installing local package in developper mode..."
pip install -e .
pip install -r requirements-dev.txt
pre-commit install
uv pip install -e ".[dev]"
uv run pre-commit install
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need both make install and make install-dev, maybe we can keep only make install-dev (since that the ones that we really care about), with uv sync (which does include the development deps) and the pre-commit setup, for when doing local development

@juliette0704 juliette0704 requested review from cjumel and removed request for BruceWouaigne July 4, 2025 10:01
Copy link
Copy Markdown
Contributor

@cjumel cjumel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR still on the table, or should we close this in favor of #34?

@cjumel cjumel deleted the feat/add_uv_and_semantic_release branch September 12, 2025 16:21
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