Skip to content

Commit 53b0c4b

Browse files
committed
🔧 Switch to pyproject.toml
1 parent 78ef06f commit 53b0c4b

File tree

5 files changed

+55
-14
lines changed

5 files changed

+55
-14
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ formats:
2323
# Optionally declare the Python requirements required to build your docs
2424
python:
2525
install:
26-
- requirements: requirements.txt
26+
- method: pip
27+
path: .
28+
extra_requirements:
29+
- docs

README.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ Download and installation
3030
.. code-block:: console
3131
3232
$ cd python.berlin
33-
$ python3 -m venv .
34-
$ . bin/activate
35-
$ python -m pip install --upgrade pip
36-
$ python -m pip install -r requirements_dev.txt
37-
$ pre-commit install
33+
$ python3 -m venv .venv
34+
$ . .venv/bin/activate
35+
$ python -m pip install -e ".[dev]"
3836
3937
#. Create HTML
4038

pyproject.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[project]
2+
name = "python.berlin"
3+
version = "24.1.0"
4+
authors = [
5+
{ name="Veit Schiele", email="[email protected]" },
6+
]
7+
description = "Berlin Python User Groups"
8+
readme = "README.rst"
9+
requires-python = ">=3.9"
10+
classifiers = [
11+
"Programming Language :: Python :: 3",
12+
"License :: OSI Approved :: BSD License",
13+
"Operating System :: OS Independent",
14+
]
15+
dependencies = []
16+
17+
[project.optional-dependencies]
18+
docs = [
19+
"sphinx-design",
20+
"furo",
21+
"sphinxext-opengraph",
22+
"sphinx-copybutton",
23+
]
24+
25+
dev = [
26+
"python.berlin[docs]",
27+
"pre-commit",
28+
]
29+
30+
[project.urls]
31+
"Homepage" = "https://github.com/python-berlin/python.berlin"
32+
"Bug Tracker" = "https://github.com/python-berlin/python.berlin/issues"
33+
34+
[tool.setuptools]
35+
packages = []
36+
37+
[tool.black]
38+
line-length = 79
39+
40+
[tool.isort]
41+
atomic=true
42+
force_grid_wrap=0
43+
include_trailing_comma=true
44+
lines_after_imports=2
45+
lines_between_types=1
46+
multi_line_output=3
47+
not_skip="__init__.py"
48+
use_parentheses=true

requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

requirements_dev.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)