mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
migrate configuration to PEP621 compatible config
- adapt documentation - add wheel tests to check wheel contents. - adapt pipeline to use pdm - adapt autopub config - add scripts as shortcuts to invoke tasks
This commit is contained in:
parent
c18f1a7308
commit
8b6d215934
13 changed files with 113 additions and 1495 deletions
6
tasks.py
6
tasks.py
|
|
@ -15,8 +15,8 @@ VENV_PATH = Path(ACTIVE_VENV) if ACTIVE_VENV else (VENV_HOME / PKG_NAME)
|
|||
VENV = str(VENV_PATH.expanduser())
|
||||
VENV_BIN = Path(VENV) / Path(BIN_DIR)
|
||||
|
||||
TOOLS = ["poetry", "pre-commit", "psutil"]
|
||||
POETRY = which("poetry") or VENV_BIN / "poetry"
|
||||
TOOLS = ["pdm", "pre-commit", "psutil"]
|
||||
PDM = which("pdm") or VENV_BIN / "pdm"
|
||||
PRECOMMIT = which("pre-commit") or VENV_BIN / "pre-commit"
|
||||
|
||||
|
||||
|
|
@ -107,7 +107,7 @@ def precommit(c):
|
|||
def setup(c):
|
||||
c.run(f"{VENV_BIN}/python -m pip install -U pip", pty=PTY)
|
||||
tools(c)
|
||||
c.run(f"{POETRY} install", pty=PTY)
|
||||
c.run(f"{PDM} install", pty=PTY)
|
||||
precommit(c)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue