Skip to content

Commit fc7c646

Browse files
Merge pull request #39 from pytest-dev/prepare-release-3.0
Prepare release 3.0
2 parents e91f456 + 52d9587 commit fc7c646

16 files changed

+410
-354
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 88
3+
extend-ignore = E203

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
src/apipkg/version.py
1+
src/apipkg/_version.py
22
__pycache__
33
*.egg-info
44
.pytest_cache/
55
.eggs/
66
.tox/
7+
dist/

.pre-commit-config.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ repos:
1313
args: [--remove]
1414
- id: check-yaml
1515
- id: debug-statements
16-
language_version: python3
17-
- repo: https://gitlab.com/pycqa/flake8
18-
rev: 3.9.2
16+
- repo: https://github.com/pycqa/flake8
17+
rev: 4.0.1
1918
hooks:
2019
- id: flake8
21-
language_version: python3
2220
additional_dependencies:
2321
- flake8-typing-imports==1.9.0
2422
- repo: https://github.com/asottile/reorder_python_imports
@@ -30,7 +28,13 @@ repos:
3028
rev: v2.32.1
3129
hooks:
3230
- id: pyupgrade
33-
- repo: https://github.com/asottile/setup-cfg-fmt
34-
rev: v1.20.1
31+
args: [--py37-plus]
32+
33+
- repo: https://github.com/tox-dev/pyproject-fmt
34+
rev: "0.3.3"
35+
hooks:
36+
- id: pyproject-fmt
37+
- repo: https://github.com/pre-commit/mirrors-mypy
38+
rev: 'v0.960'
3539
hooks:
36-
- id: setup-cfg-fmt
40+
- id: mypy

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2+
3.0.0
3+
-----
4+
* add support for python 3.11 and drop dead pythons (thanks hukgo)
5+
* migrate to hatch
6+
* split up __init__.py
7+
* add some type annotations
8+
19
2.1.1
210
-----
311

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import py
1+
import pathlib
22

33
import apipkg
44

5-
LOCAL_APIPKG = py.path.local(__file__).dirpath().join("src/apipkg/__init__.py")
5+
LOCAL_APIPKG = pathlib.Path(__file__).parent.joinpath("src/apipkg/__init__.py")
66
INSTALL_TYPE = "editable" if apipkg.__file__ == LOCAL_APIPKG else "full"
77

88

pyproject.toml

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,67 @@
11
[build-system]
2-
requires = ["setuptools>=41.2.0", "wheel", "setuptools_scm>3"]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatch-vcs",
5+
"hatchling>=0.24",
6+
]
37

8+
[project]
9+
name = "apipkg"
10+
description = "apipkg: namespace control and lazy-import mechanism"
11+
readme = "README.rst"
12+
license = "MIT"
13+
maintainers = [
14+
{ name = "Ronny Pfannschmidt", email = "[email protected]"}
15+
]
16+
authors = [
17+
{ name = "holger krekel" },
18+
]
19+
requires-python = ">=3.7"
20+
dynamic = [
21+
"version",
22+
]
23+
classifiers = [
24+
"Development Status :: 4 - Beta",
25+
"Intended Audience :: Developers",
26+
"License :: OSI Approved :: MIT License",
27+
"Operating System :: MacOS :: MacOS X",
28+
"Operating System :: Microsoft :: Windows",
29+
"Operating System :: POSIX",
30+
"Programming Language :: Python",
31+
"Programming Language :: Python :: Implementation :: CPython",
32+
"Programming Language :: Python :: 3",
33+
"Programming Language :: Python :: 3 :: Only",
34+
"Programming Language :: Python :: 3.7",
35+
"Programming Language :: Python :: 3.8",
36+
"Programming Language :: Python :: 3.9",
37+
"Programming Language :: Python :: 3.10",
38+
"Topic :: Software Development :: Libraries",
39+
]
40+
[project.urls]
41+
Homepage = "https://github.com/pytest-dev/apipkg"
442

543

6-
[tool.setuptools_scm]
7-
write_to = "src/apipkg/version.py"
44+
[tool.hatch.version]
45+
source = "vcs"
46+
47+
[tool.hatch.build.targets.sdist]
48+
include = [
49+
"/src",
50+
]
51+
[tool.hatch.build.hooks.vcs]
52+
version-file = "src/apipkg/_version.py"
53+
54+
[tool.hatch.envs.test]
55+
dependencies = [
56+
"coverage[toml]",
57+
"pytest",
58+
"pytest-cov",
59+
]
60+
[[tool.hatch.envs.test.matrix]]
61+
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
62+
63+
[tool.hatch.envs.test.scripts]
64+
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests {args}"
65+
run = "run-coverage --no-cov {args}"
66+
[mypy]
67+
python_version = "3.7"

setup.cfg

Lines changed: 0 additions & 47 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)