Skip to content

Commit

Permalink
ext: Use hatch for packaging and version bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Oct 18, 2023
1 parent eb34a71 commit 1f1622c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 39 deletions.
14 changes: 0 additions & 14 deletions lib/esbonio-extensions/.bumpversion.cfg

This file was deleted.

1 change: 1 addition & 0 deletions lib/esbonio-extensions/esbonio/ext/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.2.2"
9 changes: 9 additions & 0 deletions lib/esbonio-extensions/hatch.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[version]
path = "esbonio/ext/__init__.py"
validate-bump = false

[build.targets.sdist]
include = ["esbonio", "tests", "CHANGES.rst"]

[build.targets.wheel]
packages = ["esbonio"]
38 changes: 16 additions & 22 deletions lib/esbonio-extensions/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling>=1.17.1"]
build-backend = "hatchling.build"

[project]
name = "esbonio-extensions"
version = "0.2.2"
dynamic = ["version"]
description = "A collection of extensions for Sphinx and the Esbonio language server"
readme = "README.md"
requires-python = ">=3.8"
license = { text = "MIT" }
authors = [{ name = "Alex Carney", email = "[email protected]" }]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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 :: Documentation",
"Topic :: Documentation :: Sphinx",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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 :: Documentation",
"Topic :: Documentation :: Sphinx",
]
dependencies = ["esbonio", "platformdirs", "sphinx"]

[project.optional-dependencies]
dev = [
"black",
"flake8",
"pytest",
"pytest-cov",
"mock",
]
dev = ["black", "flake8", "pytest", "pytest-cov", "mock"]
spelling = ["pyspellchecker"]
tutorial = ["nbformat"]

Expand Down
3 changes: 0 additions & 3 deletions lib/esbonio-extensions/setup.py

This file was deleted.

0 comments on commit 1f1622c

Please sign in to comment.