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 8, 2024
1 parent 78ef06f commit 53b0c4b
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 14 deletions.
5 changes: 4 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ formats:
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: requirements.txt
- method: pip
path: .
extra_requirements:
- docs
8 changes: 3 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ Download and installation
.. code-block:: console
$ cd python.berlin
$ python3 -m venv .
$ . bin/activate
$ python -m pip install --upgrade pip
$ python -m pip install -r requirements_dev.txt
$ pre-commit install
$ python3 -m venv .venv
$ . .venv/bin/activate
$ python -m pip install -e ".[dev]"
#. Create HTML

Expand Down
48 changes: 48 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[project]
name = "python.berlin"
version = "24.1.0"
authors = [
{ name="Veit Schiele", email="[email protected]" },
]
description = "Berlin Python User Groups"
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 = [
"sphinx-design",
"furo",
"sphinxext-opengraph",
"sphinx-copybutton",
]

dev = [
"python.berlin[docs]",
"pre-commit",
]

[project.urls]
"Homepage" = "https://github.com/python-berlin/python.berlin"
"Bug Tracker" = "https://github.com/python-berlin/python.berlin/issues"

[tool.setuptools]
packages = []

[tool.black]
line-length = 79

[tool.isort]
atomic=true
force_grid_wrap=0
include_trailing_comma=true
lines_after_imports=2
lines_between_types=1
multi_line_output=3
not_skip="__init__.py"
use_parentheses=true
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements_dev.txt

This file was deleted.

0 comments on commit 53b0c4b

Please sign in to comment.