Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ jobs:
matrix:
include:
# oldest supported python and jupyterhub version
- python-version: "3.8"
pip-install-spec: "jupyterhub==2.3.0 tornado==5.1.0 sqlalchemy==1.*"
runs-on: ubuntu-20.04
- python-version: "3.9"
pip-install-spec: "jupyterhub==2.* sqlalchemy==1.*"
runs-on: ubuntu-22.04
- python-version: "3.10"
pip-install-spec: "jupyterhub==3.*"
runs-on: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Byte-compiled / optimized / DLL files
__pycache__/
.DS_Store
*.py[cod]
*$py.class

Expand Down
6 changes: 2 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ repos:
rev: v3.15.0
hooks:
- id: pyupgrade
args:
- --py38-plus

# Autoformat: Python code
- repo: https://github.com/PyCQA/autoflake
Expand All @@ -39,8 +37,8 @@ repos:
- id: black

# Autoformat: markdown, yaml
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.7.3
hooks:
- id: prettier

Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

62 changes: 46 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "jupyterhub-systemdspawner"
dynamic = ["version"]
description = "JupyterHub Spawner using systemd for resource isolation"
readme = "README.md"
requires-python = ">=3.10"
license = "BSD-3-Clause"
authors = [
{ name = "Jupyter Contributors", email = "jupyter@googlegroups.com" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
]
dependencies = [
"jupyterhub>=3.1.1",
"tornado>=6.1",
]

[project.urls]
Source = "https://github.com/jupyterhub/systemdspawner"
Issues = "https://github.com/jupyterhub/systemdspawner/issues"
[project.optional-dependencies]
test = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-jupyterhub",
]

[project.entry-points."jupyterhub.spawners"]
systemd = "systemdspawner:SystemdSpawner"
systemdspawner = "systemdspawner:SystemdSpawner"

[tool.hatch.build.targets.wheel]
# need to specify package name because it doesn't match project.name
packages = ["systemdspawner"]

[tool.hatch.version]
path = "systemdspawner/__init__.py"

# autoflake is used for autoformatting Python code
#
# ref: https://github.com/PyCQA/autoflake#readme
Expand All @@ -17,21 +62,6 @@ remove-unused-variables = true
profile = "black"


# black is used for autoformatting Python code
#
# ref: https://black.readthedocs.io/en/stable/
#
[tool.black]
# target-version should be all supported versions, see
# https://github.com/psf/black/issues/751#issuecomment-473066811
target_version = [
"py38",
"py39",
"py310",
"py311",
]


# pytest is used for running Python based tests
#
# ref: https://docs.pytest.org/en/stable/
Expand Down Expand Up @@ -73,4 +103,4 @@ message_template = "Bump to {new_version}"
tag_template = "v{new_version}"

[[tool.tbump.file]]
src = "setup.py"
src = "systemdspawner/__init__.py"
36 changes: 0 additions & 36 deletions setup.py

This file was deleted.

1 change: 1 addition & 0 deletions systemdspawner/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from systemdspawner.systemdspawner import SystemdSpawner

__version__ = "1.0.3.dev"
__all__ = [SystemdSpawner]
Loading