Skip to content

Commit b0e6810

Browse files
authored
CI, version, deprecation, precommit updates (#344)
- poetry 1.1.7 -> 1.1.12, use new installer - Drop python 3.6 - Add python 3.10 - CI: test 3.7 and 3.10 (low and high end of supported releases) - Update myst-parser and sphinx-autodoc-typehints - Add `.pre-commit-config.yaml` - black: update 21.9b0 -> 21.12b0
2 parents fccac42 + 0f287a3 commit b0e6810

File tree

9 files changed

+56
-100
lines changed

9 files changed

+56
-100
lines changed

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ["3.9"]
13+
python-version: ["3.10"]
1414
steps:
1515
- uses: actions/checkout@v1
1616
- name: Configure git
@@ -52,8 +52,8 @@ jobs:
5252
- name: Install poetry
5353
if: env.PUBLISH == 'true'
5454
run: |
55-
curl -O -sSL https://raw.githubusercontent.com/sdispater/poetry/master/install-poetry.py
56-
python install-poetry.py -y --version 1.1.7
55+
curl -O -sSL https://install.python-poetry.org/install-poetry.py
56+
python install-poetry.py -y --version 1.1.12
5757
echo "PATH=${HOME}/.poetry/bin:${PATH}" >> $GITHUB_ENV
5858
rm install-poetry.py
5959

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ["3.9"]
13+
python-version: ["3.7", "3.10"]
1414
tmux-version: ["2.6", "2.7", "2.8", "3.0a", "3.1b", "3.2a", "master"]
1515
steps:
1616
- uses: actions/checkout@v1
@@ -27,8 +27,8 @@ jobs:
2727

2828
- name: Install poetry
2929
run: |
30-
curl -O -sSL https://raw.githubusercontent.com/sdispater/poetry/master/install-poetry.py
31-
python install-poetry.py -y --version 1.1.7
30+
curl -O -sSL https://install.python-poetry.org/install-poetry.py
31+
python install-poetry.py -y --version 1.1.12
3232
echo "PATH=${HOME}/.poetry/bin:${PATH}" >> $GITHUB_ENV
3333
rm install-poetry.py
3434

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/ambv/black
3+
rev: 21.12b0
4+
hooks:
5+
- id: black
6+
language_version: python3.10
7+
- repo: https://github.com/pycqa/isort
8+
rev: 5.10.1
9+
hooks:
10+
- id: isort
11+
name: isort (python)
12+
- repo: https://gitlab.com/pycqa/flake8
13+
rev: 4.0.1
14+
hooks:
15+
- id: flake8

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
poetry 1.1.7
1+
poetry 1.1.12

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ See donation options at <https://git-pull.com/support.html>.
174174
# Project details
175175

176176
- tmux support: 1.8, 1.9a, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6
177-
- python support: >= 3.6, pypy, pypy3
177+
- python support: >= 3.7, pypy, pypy3
178178
- Source: <https://github.com/tmux-python/libtmux>
179179
- Docs: <https://libtmux.git-pull.com>
180180
- API: <https://libtmux.git-pull.com/api.html>

poetry.lock

Lines changed: 24 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ classifiers = [
1515
"Environment :: Web Environment",
1616
"Intended Audience :: Developers",
1717
"Programming Language :: Python",
18-
"Programming Language :: Python :: 3.6",
1918
"Programming Language :: Python :: 3.7",
2019
"Programming Language :: Python :: 3.8",
2120
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
2222
"Programming Language :: Python :: Implementation :: PyPy",
2323
"Topic :: Utilities",
2424
"Topic :: System :: Shells"
@@ -32,17 +32,18 @@ readme = "README.md"
3232
"Bug Tracker" = "https://github.com/tmux-python/libtmux/issues"
3333
Documentation = "https://libtmux.git-pull.com"
3434
Repository = "https://github.com/tmux-python/libtmux"
35+
Changes = "https://github.com/tmux-python/libtmux/blob/master/CHANGES"
3536

3637
[tool.poetry.dependencies]
37-
python = "^3.6"
38+
python = "^3.7"
3839

3940
[tool.poetry.dev-dependencies]
4041
### Docs ###
4142
sphinx = "*"
4243
alagitpull = "~0.1.0"
4344
sphinx-issues = "^1.2.0"
44-
sphinx-autodoc-typehints = "^1.12.0"
45-
myst_parser = "^0.15.0"
45+
sphinx-autodoc-typehints = "~1.14.1"
46+
myst_parser = "~0.16.1"
4647

4748
### Testing ###
4849
pytest = "*"
@@ -55,7 +56,7 @@ coverage = "*"
5556
pytest-cov = "*"
5657

5758
### Format ###
58-
black = {version="==21.9b0", python="^3.6.2"}
59+
black = "==21.12b0"
5960
isort = "*"
6061

6162
### Lint ###

requirements/dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
isort<5
2-
flake8<4
1+
isort
2+
flake8
33
twine

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
"Environment :: Web Environment",
5555
"Intended Audience :: Developers",
5656
"Programming Language :: Python",
57-
"Programming Language :: Python :: 3.6",
5857
"Programming Language :: Python :: 3.7",
5958
"Programming Language :: Python :: 3.8",
6059
"Programming Language :: Python :: 3.9",
60+
"Programming Language :: Python :: 3.10",
6161
"Programming Language :: Python :: Implementation :: PyPy",
6262
"Topic :: Utilities",
6363
"Topic :: System :: Shells",

0 commit comments

Comments
 (0)