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 Sep 10, 2024
1 parent 600aa0a commit b3871f0
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 21 deletions.
9 changes: 6 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ version: 2
# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"
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 @@ -30,4 +30,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 @@ -60,9 +60,9 @@ Installation
.. code-block:: console
$ cd python4datascience-main
$ python3 -m venv .
$ . bin/activate
$ python -m pip install -r docs/requirements.txt
$ python3 -m venv .venv
$ . .venv/bin/activate
$ python -m pip install -e ".[dev]"
#. Install the `Jupyter Notebook Extensions
<https://jupyter-contrib-nbextensions.readthedocs.io/>`_ Javascript and CSS
Expand Down
15 changes: 0 additions & 15 deletions docs/requirements.txt

This file was deleted.

41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[project]
name = "Python4DataScience"
version = "24.2.0"
authors = [
{ name="Veit Schiele", email="[email protected]" },
]
description = "Teaching materials for the cusy training courses on Python-based data science workflows: https://cusy.io/en/seminars"
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",
"sphinxcontrib-svg2pdfconverter",
"sphinxext.opengraph", # matplotlib is required for social cards
"matplotlib",
"sphinx-copybutton",
"sphinx_inline_tabs",
"sphinx-lint",
]

dev = [
"Python4DataScience[docs]",
"pre-commit",
]

[project.urls]
"Homepage" = "https://github.com/cusyio/Python4DataScience/"
"Bug Tracker" = "https://github.com/cusyio/Python4DataScience/issues"

[tool.setuptools]
packages = []

0 comments on commit b3871f0

Please sign in to comment.