-
Notifications
You must be signed in to change notification settings - Fork 0
Cleanup package infrastructure #60
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| uv.lock linguist-generated=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| $schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
| extends: [ | ||
| 'github>kitware-resonant/.github:renovate-library.json5', | ||
| ], | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,24 +4,24 @@ on: | |
| push: | ||
| branches: | ||
| - master | ||
| schedule: | ||
| - cron: "0 0 * * *" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think these nightly runs are helpful anymore, now that we have a lockfile. Plus, Renovate will be making PRs weekly. |
||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
| python-version: ["3.12", "3.13", "3.14"] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v2 | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| # Tags are needed to compute the current version number | ||
| fetch-depth: 0 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install tox | ||
| run: | | ||
| pip install --upgrade pip | ||
| pip install tox | ||
| - name: Run tests | ||
| run: | | ||
| tox | ||
| uv run tox | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,23 +5,21 @@ on: | |
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| environment: release | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| # Tags are needed to compute the current version number | ||
| fetch-depth: 0 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: "3.x" | ||
| - name: Install tox | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| - name: Build the Python distribution | ||
| run: | | ||
| pip install --upgrade pip | ||
| pip install tox | ||
| - name: Publish to PyPI | ||
| env: | ||
| TWINE_USERNAME: "__token__" | ||
| TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've deleted the |
||
| TWINE_NON_INTERACTIVE: "true" | ||
| uv build | ||
| - name: Publish the Python distributions to PyPI | ||
| run: | | ||
| tox -e release | ||
| uv publish --trusted-publishing=always | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've setup the appropriate trusted publishing setup on PyPI just now, so this will be ready to publish. I've also setup the |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.12 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| Copyright 2022 Kitware, Inc. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| See accompanying LICENSE file. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've configured Renovate to run on this repo, once this is merged.