Skip to content

Commit

Permalink
migrate to hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Dec 19, 2022
1 parent 0253ff1 commit c113dd6
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 69 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: |
python -m pip install --upgrade pip setuptools setuptools_scm
pip install tox
- name: Test
run: |
tox -e py
run: python -m pip install --upgrade pip setuptools_scm hatch
- name: install package local
run: pip install --no-build-isolation .

pre-commit:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ build/
dist/
__pycache__
.tox/
src/iniconfig/_version.py
60 changes: 58 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,65 @@
[build-system]
requires = ["setuptools>=41.2.0", "wheel", "setuptools_scm>3"]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

build-backend = "setuptools.build_meta"
[project]
name = "iniconfig"
dynamic = ["version"]
description = "brain-dead simple config-ini parsing"
readme = "README.rst"
license = "MIT"
requires-python = ">=3.7"
authors = [
{ name = "Ronny Pfannschmidt", email = "opensource@ronnypfannschmidt.de" },
{ name = "Holger Krekel", email = "holger.krekel@gmail.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]

[project.urls]
Homepage = "https://github.com/pytest-dev/iniconfig"

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "src/iniconfig/_version.py"

[tool.hatch.build.targets.sdist]
include = [
"/src",
]

[tool.hatch.envs.test]
dependencies = [
"pytest"
]
[tool.hatch.envs.test.scripts]
default = "pytest"

[[tool.hatch.envs.test.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]

[tool.setuptools_scm]

[tool.mypy]
strict = true


[tool.pytest.ini_options]
testpaths = "testing"
34 changes: 0 additions & 34 deletions setup.cfg

This file was deleted.

13 changes: 0 additions & 13 deletions setup.py

This file was deleted.

14 changes: 0 additions & 14 deletions tox.ini

This file was deleted.

0 comments on commit c113dd6

Please sign in to comment.