Skip to content

Commit e25d6c2

Browse files
committed
Put --version in ts_tests file
1 parent fb3e14a commit e25d6c2

3 files changed

Lines changed: 48 additions & 43 deletions

File tree

noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ def test_typedoc(session: Session, typedoc: str) -> None:
4444
f"typedoc@{typedoc}",
4545
external=True,
4646
)
47-
session.run("npx", "tsc", "--version", external=True)
48-
session.run("npx", "typedoc", "--version", external=True)
4947
# Run typescript tests
5048
test_file = (PROJECT_ROOT / "tests/test.ts").resolve()
5149
register_import_hook = PROJECT_ROOT / "sphinx_js/js/registerImportHook.mjs"
@@ -55,6 +53,7 @@ def test_typedoc(session: Session, typedoc: str) -> None:
5553
dedent(
5654
f"""\
5755
#!/bin/sh
56+
npx typedoc --version
5857
TYPEDOC_NODE_MODULES={venvroot} node --import {register_import_hook} --import {node_modules/"tsx/dist/loader.mjs"} --test {test_file}
5958
"""
6059
)

pyproject.toml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "sphinx-js"
7+
version = "5.0.0"
8+
description = "Support for using Sphinx on JSDoc-documented JS code"
9+
readme = "README.rst"
10+
license = {text = "MIT"}
11+
authors = [
12+
{name = "Erik Rose", email = "erikrose@grinchcentral.com"},
13+
]
14+
requires-python = ">=3.10"
15+
dependencies = [
16+
"Jinja2>2.0",
17+
"parsimonious>=0.10.0,<0.11.0",
18+
"Sphinx>=4.1.0",
19+
"markupsafe==3.0.2",
20+
"attrs",
21+
"cattrs<25.1",
22+
]
23+
keywords = [
24+
"sphinx",
25+
"documentation",
26+
"docs",
27+
"javascript",
28+
"js",
29+
"jsdoc",
30+
"restructured",
31+
"typescript",
32+
"typedoc",
33+
]
34+
classifiers = [
35+
"Framework :: Sphinx :: Extension",
36+
"Intended Audience :: Developers",
37+
"Natural Language :: English",
38+
"Development Status :: 5 - Production/Stable",
39+
"License :: OSI Approved :: MIT License",
40+
"Programming Language :: Python :: 3",
41+
"Topic :: Documentation :: Sphinx",
42+
"Topic :: Software Development :: Documentation",
43+
]
44+
45+
[project.urls]
46+
Homepage = "https://github.com/mozilla/sphinx-js"
47+
148
[tool.mypy]
249
python_version = "3.10"
350
show_error_codes = true

setup.py

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,6 @@
1-
from pathlib import Path
2-
31
from setuptools import find_packages, setup
42

53
setup(
6-
name="sphinx-js",
7-
version="5.0.0",
8-
description="Support for using Sphinx on JSDoc-documented JS code",
9-
long_description=Path("README.rst").read_text(),
10-
long_description_content_type="text/x-rst",
11-
author="Erik Rose",
12-
author_email="erikrose@grinchcentral.com",
13-
license="MIT",
144
packages=find_packages(exclude=["ez_setup"]),
15-
url="https://github.com/mozilla/sphinx-js",
165
include_package_data=True,
17-
install_requires=[
18-
"Jinja2>2.0",
19-
"parsimonious>=0.10.0,<0.11.0",
20-
"Sphinx>=4.1.0",
21-
"markupsafe==3.0.2",
22-
"attrs",
23-
"cattrs<25.1",
24-
],
25-
python_requires=">=3.10",
26-
classifiers=[
27-
"Framework :: Sphinx :: Extension",
28-
"Intended Audience :: Developers",
29-
"Natural Language :: English",
30-
"Development Status :: 5 - Production/Stable",
31-
"License :: OSI Approved :: MIT License",
32-
"Programming Language :: Python :: 3",
33-
"Topic :: Documentation :: Sphinx",
34-
"Topic :: Software Development :: Documentation",
35-
],
36-
keywords=[
37-
"sphinx",
38-
"documentation",
39-
"docs",
40-
"javascript",
41-
"js",
42-
"jsdoc",
43-
"restructured",
44-
"typescript",
45-
"typedoc",
46-
],
476
)

0 commit comments

Comments
 (0)