Skip to content

Commit

Permalink
Remove leftover references to dev-requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
davfsa committed Mar 4, 2025
1 parent c6ff2af commit 7b7beb0
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 18 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install the latest version of uv
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Run tests
shell: bash
run: |
uv pip install nox
uv pip install --group nox
nox -s pytest
nox -s pytest-all-features -- --cov-append
Expand All @@ -68,8 +68,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.10"

Expand Down Expand Up @@ -97,7 +97,8 @@ jobs:
- name: Combine coverage
run: |
pip install -r dev-requirements/coverage.txt
uv pip install --group coverage
coverage combine
coverage xml
coverage report
Expand All @@ -123,7 +124,7 @@ jobs:

- name: Install nox
run: |
uv pip install nox
uv pip install --group nox
- name: Check stubs
if: always()
Expand Down Expand Up @@ -182,14 +183,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: 3.9

- name: Test twemoji mapping
run: |
pip install -r dev-requirements.txt
uv pip install --group nox
nox -s twemoji-test
docs:
Expand All @@ -199,15 +201,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
# NOTE: This should be kept up to date with .readthedocs.yaml
python-version: 3.11

- name: Build documentation
run: |
pip install -r dev-requirements.txt
uv pip install --group nox
nox -s mkdocs
- name: Upload artifacts
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/fragments-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:

- name: Check if changelog fragment was added
run: |
# FIXME: Temporary - https://github.com/astral-sh/uv/issues/8590
uv export --only-group=towncrier | uv pip install --requirements=-
uv pip install --group towncrier
if ! towncrier check --compare-with origin/${{ github.base_ref }}; then
exit 1
Expand Down
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ To aid with the generation of `CHANGELOG.md` as well as the releases changelog w

You will need to install `towncrier` and `hikari` from source before making changelog additions.
```bash
pip install -r dev-requirements/towncrier.txt
pip install -e .
pip install --group towncrier -e .
```

For every pull request made to this project, there should be a short explanation of the change under `changes/`
Expand Down Expand Up @@ -79,7 +78,7 @@ We have nox to help out with running pipelines locally and provides some helpful

You will need to install `nox` locally before running any pipelines.
```bash
pip install -r dev-requirements.txt
pip install --group nox
```

Nox is similar to tox, but uses a pure Python configuration instead of an INI based configuration. Nox and tox are
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ In the repository, make a virtual environment (`python -m venv .venv`) and enter
Linux, or for Windows use one of `.venv\Scripts\activate.ps1`, `.venv\Scripts\activate.bat`,
`source .venv/Scripts/activate`).

The first thing you should run is `pip install -r dev-requirements.txt` to install nox.
The first thing you should run is `pip install --group nox` to install nox.
This handles running predefined tasks and pipelines.

Once this is complete, you can run `nox` without any arguments to ensure everything builds and is correct.
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ server = ["pynacl~=1.5"]
"CI" = "https://github.com/hikari-py/hikari/actions"

[dependency-groups]
nox = ["nox==2025.2.9"]

audit = ["pip-audit"]
codespell = ["codespell==2.3.0"]
coverage = ["coverage[toml]==7.6.12"]
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ echo "==========================================================================
python -m hikari
echo "=========================================================================="

echo "-- Building package --"
uv build
echo "-- Contents of . --"
ls -ahl
Expand Down

0 comments on commit 7b7beb0

Please sign in to comment.