Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PDM to manage dependencies and build site #377

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dairiki
Copy link
Contributor

@dairiki dairiki commented Jul 20, 2023

This is an alternative to #327, and is roughly equivalent to that PR except that it uses PDM rather than pipenv.

This uses PDM to manage python dependencies:

  • Lektor version
  • Published lektor plugins
  • Local lektor plugin installation

It also uses PDM's scripts feature (very similar to npm scripts) to define common tasks.
E.g. once one has installed PDM and npm, one can just do:

# install python dependencies
pdm install

# build the site
pdm run build

This eliminates the need for the build/test instructions in tox.ini, and simplifies the build/deploy workflow.

TODO

Should probably add a pre-commit hook to ensure pdm.lock is up-to-date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant