Skip to content

Commit

Permalink
🔧 Switch to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
veit committed Oct 1, 2024
1 parent 0cc679f commit 4b304df
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 17 deletions.
9 changes: 6 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ version: 2
# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
apt_packages:
# graphviz is required for sphinx.ext.graphviz
- graphviz
tools:
python: "3.12"

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand All @@ -26,4 +26,7 @@ formats:
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- docs
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ Installation
.. code-block:: console
$ cd pyviz-tutorial
$ python3 -m venv .
$ bin/python -m pip install --upgrade pip setuptools
$ bin/python -m pip install -r requirements.txt
$ python3 -m venv .venv
$ . .venv/bin/activate
$ python -m pip install -e ".[dev]"
#. HTML-Dokumentation erstellen:

Expand Down
11 changes: 0 additions & 11 deletions docs/requirements.txt

This file was deleted.

38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[project]
name = "pyviz-tutorial"
version = "24.1.0"
authors = [
{ name="Veit Schiele", email="[email protected]" },
]
description = "Schulungsmaterialen für die cusy Python-Schulungen: https://cusy.io/de/seminare"
readme = "README.rst"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
dependencies = []

[project.optional-dependencies]
docs = [
"furo",
"ipython",
"ipywidgets",
"nbsphinx",
"sphinxext.opengraph", # matplotlib is required for social cards
"matplotlib",
"sphinx_copybutton",
"sphinx-inline-tabs",
"sphinxcontrib-svg2pdfconverter",
"sphinx-lint",
]

dev = [
"pyviz-tutorial[docs]",
"pre-commit",
]

[project.urls]
"Homepage" = "https://github.com/veit/pyviz-tutorial/"
"Bug Tracker" = "https://github.com/veit/pyviz-tutorial/issues"

0 comments on commit 4b304df

Please sign in to comment.