Skip to content

publish to PyPI as rsconnect and rsconnect-python #667

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

Merged
merged 1 commit into from
May 28, 2025

Conversation

edavidaja
Copy link
Collaborator

@edavidaja edavidaja commented May 16, 2025

  • update makefile to support building wheels with a different package name
  • add a script to rewrite the package name in CI
    • uv run is used for this so that the necessary toml dependency
      is installed without drama

Copy link

github-actions bot commented May 16, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5096 3828 75% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 15b5a09 by action🐍

@edavidaja edavidaja requested a review from a team May 16, 2025 15:26
@tdstein
Copy link
Collaborator

tdstein commented May 16, 2025

It might be worth reverting from pyproject.toml to setup.py to support this: #668

Comment on lines 123 to 127
- uses: actions/setup-python@v4
with:
python-version: 3.8.x
- name: Install uv # see scripts/temporary-rename
uses: astral-sh/setup-uv@v5
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like the python version is builtin now as well:

        uses: astral-sh/setup-uv@v6
        with:
          python-version: ${{ matrix.python-version }}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think that changes a few assumptions about how package installation works in the rest of the steps, which I'd prefer to leave in place for now.

I think we could simplify much of the build infrastructure here out of docker and into uv and that's probably worth doing on its own.

@edavidaja
Copy link
Collaborator Author

It might be worth reverting from pyproject.toml to setup.py to support this: #668

PyPA docs suggest pyproject.toml is the way.

@tdstein
Copy link
Collaborator

tdstein commented May 16, 2025

It might be worth reverting from pyproject.toml to setup.py to support this: #668

PyPA docs suggest pyproject.toml is the way.

Ya, it's just unconventional for the name field in pyproject.toml to be dynamic. I guess publishing the same project under two different names is also unconventional.

Why not stop using rsconnect-python and wholly migrate to rsconnect?

@edavidaja
Copy link
Collaborator Author

Why not stop using rsconnect-python and wholly migrate to rsconnect?

I think it will make sense to keep both versions on PyPI up to date until we have the opportunity to update the places where the CLI is used.

@edavidaja edavidaja force-pushed the pip-install-rsconnect branch from 59a9cea to 2e7ff0d Compare May 16, 2025 21:55
@edavidaja edavidaja requested a review from tdstein May 21, 2025 01:15
@edavidaja edavidaja force-pushed the pip-install-rsconnect branch from 2e7ff0d to 0268029 Compare May 22, 2025 13:26
Copy link

github-actions bot commented May 22, 2025

PR Preview Action v1.6.1
Preview removed because the pull request was closed.
2025-05-28 15:54 UTC

@edavidaja
Copy link
Collaborator Author

Merging here appears to be blocked because of the test-connect failures and #649.

- update makefile to support building wheels with a different package name
- add a script to rewrite the package name in CI
  - `uv run` is used for this so that the necessary `toml` dependency
    is installed without drama
- matrix the distributions step
- change how dev version numbers are set in build
@edavidaja edavidaja force-pushed the pip-install-rsconnect branch from 5d735a6 to 15b5a09 Compare May 28, 2025 15:14
@edavidaja
Copy link
Collaborator Author

matrixing the distributions job caused the branch protection rules to go out of sync (see this discussion); I've disabled just the branch protection rule requiring a passing of the distributions check, which I will re-add if I can get it to pass here or after it merges to main.

@edavidaja edavidaja merged commit 0e604b8 into main May 28, 2025
15 checks passed
@edavidaja edavidaja deleted the pip-install-rsconnect branch May 28, 2025 15:54
@edavidaja
Copy link
Collaborator Author

re-enabled branch protections for the distributions jobs before merging

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