Skip to content

Commit

Permalink
Update build configuration.
Browse files Browse the repository at this point in the history
Replace `setuptools` with `pyproject.toml` and hatchling.
  • Loading branch information
Anteru committed Aug 19, 2024
1 parent dc05a6d commit 407e17d
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 62 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ htmlcov/*
.coverage
.pytest*
.vscode*
.venv
.venv/
dist/
2 changes: 1 addition & 1 deletion lina/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @author: Matthäus G. Chajdas
# @license: 2-clause BSD

__version__ = '1.0.10'
__version__ = '1.0.11'

import io
import os
Expand Down
69 changes: 69 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[project]
name = "Lina"
dynamic = ["version"]

authors = [
{name = "Matthäus G. Chajdas", email = "[email protected]" }
]

description = "Text template library"
readme = {file = "README.md", content-type = "text/markdown"}
license = {text = "BSD 2-clause license"}

keywords = ["SJSON"]
classifiers = [
"Development Status :: 6 - Mature",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"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",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Pre-processors",
"Topic :: Software Development :: Libraries :: Python Modules",
]

requires-python = ">= 3.6"

[project.urls]
Homepage = "http://sh13.net/projects/Lina"
"Issue Tracker" = "https://github.com/anteru/lina/issues"
Repository = "https://github.com/anteru/lina"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.tox]
legacy_tox_ini = """[tox]
envlist=py{36,37,38,39,310,311,312}
skip_missing_interpreters=True
[testenv]
deps=
pytest
commands=
py.test lina
[testenv:cov]
deps=
pytest
pytest-cov
coverage
commands=
py.test --cov=lina lina
coverage html
"""

[tool.hatch.version]
path = "lina/__init__.py"

[tool.hatch.build.targets.wheel]
exclude = ["test"]
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

37 changes: 0 additions & 37 deletions setup.py

This file was deleted.

18 changes: 0 additions & 18 deletions tox.ini

This file was deleted.

0 comments on commit 407e17d

Please sign in to comment.