Skip to content

Distribute sample data used to run tests#2935

Closed
BenSturmfels wants to merge 3 commits into
getpelican:masterfrom
BenSturmfels:include-samples
Closed

Distribute sample data used to run tests#2935
BenSturmfels wants to merge 3 commits into
getpelican:masterfrom
BenSturmfels:include-samples

Conversation

@BenSturmfels
Copy link
Copy Markdown
Contributor

Pelican distributes the unit tests, but doesn't distribute the sample data such as samples/pelican.conf.py required to run them.

I noticed this when updating the OS package for Guix which is based on the PyPI distribution of pelican.

@BenSturmfels
Copy link
Copy Markdown
Contributor Author

Actually - hold off on merging this - the * pattern is too wide and will pull in samples/__pycache__ which shouldn't be distributed. I'll test this further.

@justinmayer
Copy link
Copy Markdown
Member

As a tangential aside, I am fairly confident we will soon switch from building Pelican via Setuptools to instead building via Poetry. The only reason we haven't done that already is because Pip does not yet support editable installs of non-Setuptools builds. Now that support for PEP 660 has been merged into Pip, I imagine we will make that switch as soon as Pip 21.3 is released.

In short, once we make that switch, MANIFEST.in will be going away, and this type of configuration will need to be performed in the pyproject.toml file.

@justinmayer justinmayer changed the title Distribute sample data used to run tests. Distribute sample data used to run tests Oct 8, 2021
@BenSturmfels
Copy link
Copy Markdown
Contributor Author

Great, thanks for the context on Poetry/MANIFEST.in.

I've just updated MANIFEST.in again to explicitly exclude samples/__pycache__.

Comment thread MANIFEST.in Outdated
Copy link
Copy Markdown
Member

@justinmayer justinmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for the enhancement, Ben! ✨

@justinmayer
Copy link
Copy Markdown
Member

Merged manually via aeec09b and 99c935d.

@justinmayer justinmayer added the manual merge Pull request was merged manually label Oct 12, 2021
@BenSturmfels BenSturmfels deleted the include-samples branch October 29, 2021 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual merge Pull request was merged manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants