-
Notifications
You must be signed in to change notification settings - Fork 17
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
ft: Add method to Specfile
to Instantiate from string
#458
base: main
Are you sure you want to change the base?
Conversation
ft: Create Specfile objects from string
# Conflicts: # specfile/specfile.py
for more information, see https://pre-commit.ci
Build failed. ❌ pre-commit FAILURE in 1m 56s |
Build succeeded. ✔️ pre-commit SUCCESS in 2m 00s |
Specfile
to Instantiate from string
Thank you for the contribution! |
I tried implementing as described and converted even the path to a fileobject (
and this will fail for objects instantiated from string and open() as well. Not really sure how to handle this. |
Right, that will require doing something similar to what is done in specfile/specfile/spec_parser.py Lines 81 to 90 in 01f6a7c
The |
for more information, see https://pre-commit.ci
Build failed. ❌ pre-commit FAILURE in 1m 57s |
The tests are passing now. Currently:
will write new tests for them. |
Build failed. ❌ pre-commit FAILURE in 1m 59s |
TODO:
packit/packit.dev
.Fixes
Related to #248
RELEASE NOTES BEGIN
Now supports creating specfile instance from a string.
RELEASE NOTES END