Skip to content

Commit 8b99430

Browse files
committed
Add one test for pyproject
1 parent c972f45 commit 8b99430

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Python - pyproject.toml
2+
-----------------------
3+
4+
``pyproject.toml`` should be used over ``setup.py``.

tests/pyproject/pyproject-toml/mwt/__init__.py

Whitespace-only changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "mwt"
7+
version = "1.0.0"
8+
dependencies = [
9+
"numpy",
10+
]
11+
requires-python = ">=3.12"
12+
authors = [
13+
{name = "Project Jupyter Contributors", email = "[email protected]"},
14+
]
15+
maintainers = [
16+
{name = "Project Jupyter Contributors", email = "[email protected]"},
17+
]
18+
description = "Test for repo2docker"
19+
readme = "README.rst"
20+
license = "MIT"
21+
22+
[project.urls]
23+
Homepage = "https://repo2docker.readthedocs.io/"
24+
Documentation = "https://repo2docker.readthedocs.io/"
25+
Repository = "https://github.com/jupyterhub/repo2docker.git"
26+
"Bug Tracker" = "https://github.com/jupyterhub/repo2docker/issues"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env python
2+
try:
3+
import mwt
4+
except ImportError:
5+
raise Exception("'mwt' shouldn't have been installed!")

0 commit comments

Comments
 (0)