Skip to content
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

Upgrade Hatch to 1.7.0 #504

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ asdf global python 3.11.0

# If you do this, you also need to install hatch for each python version
# asdf global python 3.7.15
# pip install hatch==1.6.3
# pip install hatch==1.7.0

# Setup virtualenv, install all dependencies
cd /workspaces/gitlint
pip install hatch==1.6.3
pip install hatch==1.7.0
hatch env create
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: python -m pip install build==0.10.0

- name: Install Hatch
run: python -m pip install hatch==1.6.3
run: python -m pip install hatch==1.7.0

- name: Unit Tests
run: hatch run test:unit-tests
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
python-version: 3.11

- name: Install Hatch
run: python -m pip install hatch==1.6.3
run: python -m pip install hatch==1.7.0

- name: Docs validation (mkdocs build & linkchecker)
run: hatch run docs:validate
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
python-version: 3.11

- name: Install Hatch
run: python -m pip install hatch==1.6.3
run: python -m pip install hatch==1.7.0

- name: Deploy dev docs
run: hatch run docs:mike deploy --push --update-aliases ${{ inputs.docs_version }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: python -m pip install build==0.10.0

- name: Install Hatch
run: python -m pip install hatch==1.6.3
run: python -m pip install hatch==1.7.0

- uses: actions/checkout@v3.3.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
run: python -m pip install hatch==1.6.3
run: python -m pip install hatch==1.7.0

- name: Install gitlint
# We need to add the --extra-index-url to the pip install command to deal with PYPI_TARGET=https://test.pypi.org/legacy,
Expand Down
4 changes: 2 additions & 2 deletions docs/contributing/environment_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cd gitlint
# You can choose whether to install hatch in a virtualenv or globally
# Either way, hatch will use virtualenvs under-the-hood for gitlint
virtualenv .venv && source .venv/bin/activate
pip install hatch==1.6.3
pip install hatch==1.7.0

# Run gitlint
hatch run dev:gitlint --version # (1)
Expand Down Expand Up @@ -68,7 +68,7 @@ asdf install python 3.9.15
asdf global python 3.9.15

# IMPORTANT: install hatch for this python version
pip install hatch==1.6.3
pip install hatch==1.7.0
# You also need to prune your hatch environment first before running other commands
hatch env prune

Expand Down