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

Reduce requirements #594

Merged
merged 60 commits into from
Aug 24, 2023
Merged

Reduce requirements #594

merged 60 commits into from
Aug 24, 2023

Conversation

jesper-friis
Copy link
Collaborator

@jesper-friis jesper-friis commented Aug 14, 2023

Description

Closes #517

Added new requirements file requirements_full.txt with all optional requirements.

Getting rust, cargo and poetry properly installed in the docker images for building the wheels is followed up in issue #601.

Follow up with issue #602 - Avoid skipping tests when build Python wheels.

Remaining things to be done:

  • Fix failing tests
  • Make it possible to install dlite with pip install DLite-Python[full] to include all optional dependencies.
  • Document how to install DLite with all dependencies included.
  • Ensure that tests run if yaml is missing (avoid false CI failures on this PR before we get everything correctly installed in the docker containers used for building the wheels. This should not be used to skip yaml-dependent tests when testing the wheels).
  • Agree on whether to accept this PR or the solution suggested in issue Create a dlite-python-minimal pypi package #603.

Type of change

  • Bug fix & code cleanup
  • New feature
  • Documentation update
  • Test update

Checklist for the reviewer

This checklist should be used as a help for the reviewer.

  • Is the change limited to one issue?
  • Does this PR close the issue?
  • Is the code easy to read and understand?
  • Do all new feature have an accompanying new test?
  • Has the documentation been updated as necessary?

@jesper-friis jesper-friis linked an issue Aug 14, 2023 that may be closed by this pull request
@jesper-friis jesper-friis changed the title Clean up requirements WIP: Clean up requirements Aug 14, 2023
@jesper-friis jesper-friis marked this pull request as draft August 14, 2023 14:18
@jesper-friis jesper-friis changed the title WIP: Clean up requirements Clean up requirements Aug 18, 2023
@jesper-friis jesper-friis changed the title Clean up requirements Reduce requirements Aug 21, 2023
Copy link
Collaborator

@CasperWA CasperWA left a comment

Choose a reason for hiding this comment

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

I have some changes - but to the original PR. I don't know what just happened but suddenly MANY files have been changed?

.github/docker/Dockerfile-manylinux.template Outdated Show resolved Hide resolved
.github/docker/Dockerfile-musllinux.template Outdated Show resolved Hide resolved
.github/docker/Dockerfile-musllinux.template Show resolved Hide resolved
.github/docker/Dockerfile-musllinux.template Outdated Show resolved Hide resolved
.github/docker/Dockerfile-musllinux.template Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
doc/getting_started/installation.md Show resolved Hide resolved
requirements_full.txt Outdated Show resolved Hide resolved
@CasperWA
Copy link
Collaborator

Black should not be run as part of this PR. That should be done in a separate PR.

@jesper-friis
Copy link
Collaborator Author

jesper-friis commented Aug 21, 2023

Black should not be run as part of this PR. That should be done in a separate PR.

Black is not a part of this PR now. You were just unfortunate to look at it during the time-span between the black changes were applied to this branch and approved on master.

Copy link
Collaborator

@CasperWA CasperWA left a comment

Choose a reason for hiding this comment

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

The requirements files in the dockerfiles are still wrongly copied.

.github/docker/Dockerfile-manylinux.template Outdated Show resolved Hide resolved
.github/docker/Dockerfile-musllinux.template Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
requirements_full.txt Outdated Show resolved Hide resolved
requirements_full.txt Outdated Show resolved Hide resolved
requirements_full.txt Outdated Show resolved Hide resolved
COPY requirements.txt /tmp/requirements.txt
ARG PY_MINORS="7 8 9 10 11"

#COPY requirements.txt /tmp/requirements.txt
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#COPY requirements.txt /tmp/requirements.txt

Copy link
Collaborator

@CasperWA CasperWA Aug 24, 2023

Choose a reason for hiding this comment

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

You didn't want to remove this commented-out line?

requirements_full.txt Outdated Show resolved Hide resolved
@jesper-friis jesper-friis merged commit 899b14b into master Aug 24, 2023
10 checks passed
@jesper-friis jesper-friis deleted the 517-clean-up-requirements branch August 24, 2023 18:31
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.

Clean up requirements
2 participants