Skip to content

Commit 95ef372

Browse files
committed
ci: upgrade pip, set Python version
1 parent 406a153 commit 95ef372

5 files changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/python.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949

50+
- name: Upgrade pip
51+
run: python -m pip install --upgrade pip
52+
5053
# https://github.com/ymyzk/tox-gh-actions
5154
# This action didn't work: https://github.com/marketplace/actions/run-tox-gh-actions ¯\_(ツ)_/¯
5255
# Error: Unable to resolve action `ymyzk/tox-gh-actions@main`, unable to find version `main`
@@ -113,6 +116,10 @@ jobs:
113116
uses: actions/checkout@v5
114117
with:
115118
persist-credentials: false
119+
- name: Set up Python 3.11
120+
uses: actions/setup-python@v6
121+
with:
122+
python-version: "3.11"
116123
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
117124
- name: Add to PATH
118125
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
poetry 1.7.1
1+
poetry 2.1.4
22
pre-commit 4.2.0

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ Run this command to download and use the opinionated `default style file <nitpic
377377

378378
nitpick init
379379

380-
You can use it as a template to `configure-your-own-style`_.
380+
You can use it as a template to configure your own style.
381381

382382
To fix and modify your files directly::
383383

ci-prepare-cmd.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ pre-commit run --all-files prettier
1313
set -e
1414

1515
rm -rf dist/
16-
# Remove certain markers from the .rst file, otherwise twine check will fail with:
17-
# ERROR `long_description` has syntax errors in markup and would not be rendered on PyPI.
18-
sed -i -e 's/:ref://' -e 's/:gitref://' README.rst
1916
poetry build
2017

2118
# https://twine.readthedocs.io/en/latest/#twine-check

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ testfixtures = {optional = true, version = "*"}
9090
toml = "*" # TODO: refactor: use only tomlkit and remove uiri/toml
9191
tomlkit = ">=0.8.0" # SingleKey() class introduced in this version
9292

93-
[tool.poetry.dev-dependencies]
94-
icecream = "*"
95-
ipython = "*"
96-
pudb = "*"
97-
9893
[tool.poetry.extras]
9994
doc = ["sphinx", "sphinx-gitref", "sphinx_rtd_theme", "sphobjinv"]
10095
lint = ["pylint"]
10196
test = ["freezegun", "pytest", "pytest-cov", "pytest-datadir", "pytest-socket", "pytest-testmon", "pytest-watch", "responses", "testfixtures"]
10297

98+
[tool.poetry.group.dev.dependencies]
99+
icecream = "*"
100+
ipython = "*"
101+
pudb = "*"
102+
103103
[tool.poetry.plugins."flake8.extension"]
104104
NIP = "nitpick.flake8:NitpickFlake8Extension"
105105

0 commit comments

Comments
 (0)