Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Create setup.py with package structure #120

Merged
merged 2 commits into from
May 7, 2020
Merged

Create setup.py with package structure #120

merged 2 commits into from
May 7, 2020

Conversation

schneiderfelipe
Copy link
Contributor

This allows one to install the plugin as a regular package:

$ pip install -e .

@danielfrg
Copy link
Owner

danielfrg commented May 7, 2020

Thanks!
How would this look in the pelicanconf.py? Would you still have to download this project into plugins?
I remember that was the only way I was able to make it work.

@schneiderfelipe
Copy link
Contributor Author

How would this look in the pelicanconf.py? Would you still have to download this project into plugins?

No need! After installing with pip, you'll be able to add the plugin directly to PLUGINS. Mine looks like

PLUGINS = ["extended_sitemap", "pelican_cite", "ipynb.markup", "pelican_shortener"]

The pelican-ipynb folder can be anywhere in your computer since the -e option of pip will symlink to it from somewhere like /usr/local/lib/python3.6/dist-packages/ (that's the path in my computer).

By the way, this PR allows you to upload this project to PyPI.

@danielfrg
Copy link
Owner

Got it. I thought having it in the plugins directory was needed, i think i tried this at one point.
I will merge and I will push to PyPI when I got some free time.
Thanks!

@danielfrg danielfrg merged commit 6e28921 into danielfrg:master May 7, 2020
@danielfrg
Copy link
Owner

You can find this now on PyPI: https://pypi.org/project/pelican-jupyter/

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

Successfully merging this pull request may close these issues.

None yet

2 participants