Skip to content

Commit 16e88f0

Browse files
committed
Only py3.11+, improve metadata, ufmt
1 parent e12a610 commit 16e88f0

File tree

8 files changed

+30
-34
lines changed

8 files changed

+30
-34
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: [3.6, 3.7, 3.8]
17+
python-version: ["3.11", "3.12"]
1818
os: [macOS-latest, ubuntu-latest, windows-latest]
1919

2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v1
22+
uses: actions/checkout@v4
2323
- name: Set Up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v1
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 John Reese
3+
Copyright (c) 2020-2024 Amethyst Reese
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ test:
2121

2222
.PHONY: format
2323
format:
24-
python -m isort --recursive -y $(SOURCES)
25-
python -m black $(SOURCES)
24+
python -m ufmt format $(SOURCES)
2625

2726
.PHONY: lint
2827
lint:
29-
python -m isort --recursive --diff $(SOURCES)
30-
python -m black --check $(SOURCES)
28+
python -m ufmt check $(SOURCES)
3129
python -m flake8 $(SOURCES)
3230
mypy --strict squatter
3331

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ python -m squatter generate --upload mypackage
1414

1515
# License
1616

17-
Squatter is copyright [John Reese](https://noswap.com/), and licensed under
17+
Squatter is copyright [Amethyst Reese](https://noswap.com/), and licensed under
1818
the MIT license. I am providing code in this repository to you under an open
1919
source license. This is my personal repository; the license you receive to
2020
my code is from me and not from my employer. See the `LICENSE` file for details.

requirements-dev.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
black==19.10b0
2-
coverage==4.5.4
3-
flake8==3.7.9
4-
isort==4.3.21
5-
mypy==0.750
6-
tox==3.14.1
7-
twine==3.1.1
1+
black==24.1a1
2+
coverage==7.4.0
3+
flake8==7.0.0
4+
mypy==1.8.0
5+
tox==4.12.0
6+
twine==4.0.2
87
volatile==2.1.0
9-
wheel==0.38.1
8+
wheel==0.42.0
9+
ufmt==2.3.0
10+
usort==1.0.7

setup.cfg

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@ long_description = file: README.md
55
long_description_content_type = text/markdown
66
license = MIT
77
url = https://github.com/python-packaging/squatter
8-
author = John Reese
9-
author_email = [email protected]
8+
author = Amethyst Reese
9+
author_email = [email protected]
1010

1111
[options]
1212
packages = squatter
1313
setup_requires =
14-
setuptools_scm
14+
setuptools_scm >= 8
15+
setuptools >= 38.3.0
16+
python_requires = >=3.11
17+
install_requires =
1518
setuptools >= 38.3.0
16-
python_requires = >=3.6
1719

18-
[bdist_wheel]
19-
universal = true
20+
[options.entry_points]
21+
console_scripts =
22+
squatter = squatter.__main__:cli
2023

2124
[check]
2225
metadata = true
@@ -33,26 +36,19 @@ precision = 1
3336
show_missing = True
3437
skip_covered = True
3538

36-
[isort]
37-
line_length = 88
38-
multi_line_output = 3
39-
force_grid_wrap = False
40-
include_trailing_comma = True
41-
use_parentheses = True
42-
4339
[mypy]
4440
ignore_missing_imports = True
4541

4642
[tox:tox]
47-
envlist = py36, py37, py38
43+
envlist = py311, py312
4844

4945
[testenv]
5046
deps = -rrequirements-dev.txt
5147
whitelist_externals = make
5248
commands =
5349
make test
5450
setenv =
55-
py{36,37,38}: COVERAGE_FILE={envdir}/.coverage
51+
py{311,312}: COVERAGE_FILE={envdir}/.coverage
5652

5753
[flake8]
5854
ignore = E203, E231, E266, E302, E501, W503

squatter/tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_env_git_prompts(self, check_output_mock: Any) -> None:
3636
("git", "config", "user.name"): "Bob",
3737
("git", "config", "user.email"): "[email protected]",
3838
}
39-
check_output_mock.side_effect = lambda cmd, **kwargs: tbl[tuple(cmd)] # type: ignore
39+
check_output_mock.side_effect = lambda cmd, **kwargs: tbl[tuple(cmd)]
4040

4141
with TemporaryDirectory() as d:
4242
env = Env(d)
@@ -62,7 +62,7 @@ def test_cli_functional(self, check_call_mock: Any, check_output_mock: Any) -> N
6262
("git", "config", "user.name"): "Bob",
6363
("git", "config", "user.email"): "[email protected]",
6464
}
65-
check_output_mock.side_effect = lambda cmd, **kwargs: tbl[tuple(cmd)] # type: ignore
65+
check_output_mock.side_effect = lambda cmd, **kwargs: tbl[tuple(cmd)]
6666

6767
uploads = 0
6868

0 commit comments

Comments
 (0)