diff --git a/.readthedocs.yaml b/.readthedocs.yaml index b5ceba4..73d04c0 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -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 diff --git a/README.rst b/README.rst index be274d5..df70b5c 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f9a46eb --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,48 @@ +[project] +name = "python.berlin" +version = "24.1.0" +authors = [ + { name="Veit Schiele", email="veit@cusy.io" }, +] +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 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 2c8fec2..0000000 --- a/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -sphinx-design -furo -sphinxext-opengraph -sphinx-copybutton diff --git a/requirements_dev.txt b/requirements_dev.txt deleted file mode 100644 index ef94fcd..0000000 --- a/requirements_dev.txt +++ /dev/null @@ -1,4 +0,0 @@ --r requirements.txt - -pre-commit -sphinx-lint