Skip to content

Commit c113dd6

Browse files
migrate to hatch
1 parent 0253ff1 commit c113dd6

6 files changed

Lines changed: 62 additions & 69 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ jobs:
2020
with:
2121
python-version: ${{ matrix.python }}
2222
- name: Install tox
23-
run: |
24-
python -m pip install --upgrade pip setuptools setuptools_scm
25-
pip install tox
26-
- name: Test
27-
run: |
28-
tox -e py
23+
run: python -m pip install --upgrade pip setuptools_scm hatch
24+
- name: install package local
25+
run: pip install --no-build-isolation .
2926

3027
pre-commit:
3128
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ build/
66
dist/
77
__pycache__
88
.tox/
9+
src/iniconfig/_version.py

pyproject.toml

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,65 @@
11
[build-system]
2-
requires = ["setuptools>=41.2.0", "wheel", "setuptools_scm>3"]
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
34

4-
build-backend = "setuptools.build_meta"
5+
[project]
6+
name = "iniconfig"
7+
dynamic = ["version"]
8+
description = "brain-dead simple config-ini parsing"
9+
readme = "README.rst"
10+
license = "MIT"
11+
requires-python = ">=3.7"
12+
authors = [
13+
{ name = "Ronny Pfannschmidt", email = "opensource@ronnypfannschmidt.de" },
14+
{ name = "Holger Krekel", email = "holger.krekel@gmail.com" },
15+
]
16+
classifiers = [
17+
"Development Status :: 4 - Beta",
18+
"Intended Audience :: Developers",
19+
"License :: OSI Approved :: MIT License",
20+
"Operating System :: MacOS :: MacOS X",
21+
"Operating System :: Microsoft :: Windows",
22+
"Operating System :: POSIX",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3 :: Only",
25+
"Programming Language :: Python :: 3.7",
26+
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
29+
"Programming Language :: Python :: 3.11",
30+
"Topic :: Software Development :: Libraries",
31+
"Topic :: Utilities",
32+
]
33+
34+
[project.urls]
35+
Homepage = "https://github.com/pytest-dev/iniconfig"
36+
37+
[tool.hatch.version]
38+
source = "vcs"
39+
40+
[tool.hatch.build.hooks.vcs]
41+
version-file = "src/iniconfig/_version.py"
42+
43+
[tool.hatch.build.targets.sdist]
44+
include = [
45+
"/src",
46+
]
47+
48+
[tool.hatch.envs.test]
49+
dependencies = [
50+
"pytest"
51+
]
52+
[tool.hatch.envs.test.scripts]
53+
default = "pytest"
54+
55+
[[tool.hatch.envs.test.matrix]]
56+
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
557

658
[tool.setuptools_scm]
759

860
[tool.mypy]
961
strict = true
62+
63+
64+
[tool.pytest.ini_options]
65+
testpaths = "testing"

setup.cfg

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

setup.py

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

tox.ini

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

0 commit comments

Comments
 (0)