Skip to content

Commit

Permalink
ext: Move packaging metadata into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Oct 9, 2023
1 parent 14f542f commit 7f90f0c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 44 deletions.
4 changes: 2 additions & 2 deletions lib/esbonio-extensions/.bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ current_version = 0.2.2
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(.dev(?P<dev>\d+))?
serialize =
serialize =
{major}.{minor}.{patch}.dev{dev}
{major}.{minor}.{patch}

[bumpversion:file:setup.cfg]
[bumpversion:file:pyproject.toml]

[bumpversion:file:esbonio/tutorial.py]

Expand Down
45 changes: 44 additions & 1 deletion lib/esbonio-extensions/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,50 @@
[build-system]
requires = ["setuptools >= 35.0.2", "wheel >= 0.29.0"]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "esbonio-extensions"
version = "0.2.2"
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",
]
dependencies = ["esbonio", "platformdirs", "sphinx"]

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

[project.urls]
"Bug Tracker" = "https://github.com/swyddfa/esbonio/issues"
"Documentation" = "https://swyddfa.github.io/esbonio/"
"Source Code" = "https://github.com/swyddfa/esbonio"

[tool.setuptools.packages.find]
exclude = ["tests*"]

[tool.towncrier]
filename = "CHANGES.rst"
directory = "changes/"
Expand Down
41 changes: 0 additions & 41 deletions lib/esbonio-extensions/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
[metadata]
name = esbonio-extensions
version = 0.2.2
description = A collection of Sphinx extensions
long_description = file:README.md
long_description_content_type = text/markdown
author = Alex Carney
author_email = [email protected]
license = MIT
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
platforms = any

[options]
python_requires = >=3.8
packages = find_namespace:
include_package_data = True
install_requires =
esbonio
platformdirs
sphinx

[options.packages.find]
exclude = tests*

[options.extras_require]
dev = black ; flake8 ; pytest ; pytest-cov ; mock
spelling = pyspellchecker
tutorial = nbformat

[flake8]
max-line-length = 88
ignore = E501

0 comments on commit 7f90f0c

Please sign in to comment.