Skip to content

Commit 767dad4

Browse files
committed
Update to v0.4.2 and improve packaging metadata
Bump version to 0.4.2. Enhance setup.cfg with full metadata and dependencies, and simplify setup.py to only call setup().
1 parent b869f69 commit 767dad4

File tree

4 files changed

+48
-49
lines changed

4 files changed

+48
-49
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.4.2 - 2026-01-14
4+
5+
### Fixed
6+
7+
- Enhanced `setup.cfg` with complete metadata.
8+
- Simplified `setup.py` to just call `setup()`.
9+
310
## 0.4.1 - 2026-01-14
411

512
### Fixed

setup.cfg

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
11
[metadata]
2+
name = sphinx-togglebutton
3+
version = attr: sphinx_togglebutton.__version__
4+
description = Toggle page content and collapse admonitions in Sphinx.
5+
long_description = file: README.md
6+
long_description_content_type = text/markdown
7+
author = Chris Holdgraf
8+
author_email = choldgraf@berkeley.edu
9+
url = https://github.com/executablebooks/sphinx-togglebutton
10+
license = MIT License
211
license_file = LICENSE
12+
classifiers =
13+
License :: OSI Approved :: MIT License
14+
15+
[options]
16+
packages = find:
17+
install_requires =
18+
setuptools
19+
wheel
20+
sphinx
21+
docutils
22+
23+
[options.extras_require]
24+
sphinx =
25+
matplotlib
26+
numpy
27+
myst_nb
28+
sphinx_book_theme
29+
sphinx_design
30+
sphinx_examples
31+
32+
[options.package_data]
33+
sphinx_togglebutton =
34+
_static/togglebutton.css
35+
_static/togglebutton.js
36+
_static/togglebutton-chevron.svg
37+
translations/README.md
38+
translations/_convert.py
39+
translations/jsons/*.json
40+
translations/locales/**/*

setup.py

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,3 @@
1-
from pathlib import Path
1+
from setuptools import setup
22

3-
from setuptools import find_packages, setup
4-
5-
version = [
6-
line
7-
for line in Path("sphinx_togglebutton/__init__.py").read_text().split("\n")
8-
if "__version__" in line
9-
]
10-
version = version[0].split(" = ")[-1].strip('"')
11-
12-
with open("./README.md", "r") as ff:
13-
readme_text = ff.read()
14-
15-
setup(
16-
name="sphinx-togglebutton",
17-
version=version,
18-
description="Toggle page content and collapse admonitions in Sphinx.",
19-
long_description=readme_text,
20-
long_description_content_type="text/markdown",
21-
author="Chris Holdgraf",
22-
author_email="choldgraf@berkeley.edu",
23-
url="https://github.com/executablebooks/sphinx-togglebutton",
24-
license="MIT License",
25-
packages=find_packages(),
26-
package_data={
27-
"sphinx_togglebutton": [
28-
"_static/togglebutton.css",
29-
"_static/togglebutton.js",
30-
"_static/togglebutton-chevron.svg",
31-
"translations/README.md",
32-
"translations/_convert.py",
33-
"translations/jsons/*.json",
34-
"translations/locales/**/*",
35-
]
36-
},
37-
install_requires=["setuptools", "wheel", "sphinx", "docutils"],
38-
extras_require={
39-
"sphinx": [
40-
"matplotlib",
41-
"numpy",
42-
"myst_nb",
43-
"sphinx_book_theme",
44-
"sphinx_design",
45-
"sphinx_examples",
46-
]
47-
},
48-
classifiers=["License :: OSI Approved :: MIT License"],
49-
)
3+
setup()

sphinx_togglebutton/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
MESSAGE_CATALOG_NAME = "togglebutton"
1010
translate = get_translation(MESSAGE_CATALOG_NAME)
1111

12-
__version__ = "0.4.1"
12+
__version__ = "0.4.2"
1313

1414

1515
def st_static_path(app):

0 commit comments

Comments
 (0)