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

Install llnl-scraper from the LLNL/scraper GitHub repository #147

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

mcdonnnj
Copy link
Member

🗣 Description

This pull request drops the usage of the cisagov/scraper project and reverts back to using the official LLNL/scraper project.

Note

This pull request is built on top of #146.

💭 Motivation and context

Originally the cisagov/scraper project was made and used to get some bugfix code into this project. Now that repository is behind the upstream LLNL/scraper project which includes needed bugfix code. Rather than keep maintaining the cisagov/scraper project it makes sense to revert to the LLNL/scraper project. However, since the bugfix code we need is not available in a PyPI release for the llnl-scraper package, we have to pull directly from the LLNL/scraper repository. So we are pulling the same code consistently we pin to the latest commit on the default branch, but we should switch to pulling from PyPI when a new version is available.

🧪 Testing

Testing for this pull request is in the same state as that for #146 where the final image build is timing out.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

This includes updating all of the system packages installed to the
versions available for Alpine Linux 3.20.
This updates the `build-stage` to match the versions of Python and
Alpine Linux used in the `compile-stage`. This also includes updating
the versions of all system packages installed.
Bump the Python packages installed in the `compile-stage` as follows:
- pip from 23.1.2 to 24.2
- pipenv from 2023.10.20 to 2024.0.1
- setuptools from 67.7.2 to 73.0.1
- wheel from 0.40.0 to 0.44.0
Update the version of Python declared in the Pipfile and update the
dependencies installed in the Python virtual environment by running
`pipenv lock` in the `src/` directory.
Alpine Linux 3.20 configures Python 3 as externally managed, so we need
to pass this flag to `pip` to install a Python package directly. Since we
are using this to build a Python virtual environment in the
`compile-stage` that is moved to the `build-stage` for use in the final
image this should pose no issues.
We need some changes that were added in the LLNL/scraper repo but do
not yet have a PyPI release. Rather than continue to use a fork in our
GitHub organization it makes sense to pull in LLNL/scraper at a
specific commit until a new version is release to PyPI.
@mcdonnnj mcdonnnj added bug This issue or pull request addresses broken functionality improvement This issue or pull request will add or improve functionality, maintainability, or ease of use dependencies Pull requests that update a dependency file labels Aug 29, 2024
@mcdonnnj mcdonnnj self-assigned this Aug 29, 2024
@mcdonnnj mcdonnnj requested a review from a team August 29, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality dependencies Pull requests that update a dependency file improvement This issue or pull request will add or improve functionality, maintainability, or ease of use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants