-
Notifications
You must be signed in to change notification settings - Fork 228
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
refactor: Drop dependency on fact_helper_file #1140
Conversation
402d528
to
ea0845f
Compare
While I don't really care note that the repo is in my namespace and not fkiecad's. |
ea0845f
to
855101f
Compare
This is blocked on ahupp/python-magic#304 which allows us to delete |
855101f
to
fda3e23
Compare
Seems that I and the python-magic developer disagree on what a good public API for the magic module would be. Regarding the FACT extractor I don't think we need to copy this code since the only thing it ever needs is |
fda3e23
to
02405dd
Compare
02405dd
to
3722e15
Compare
Assuming that fkie-cad/fact_extractor#128 works and is merged this is ready for review. |
c5b6ce0
to
236a975
Compare
236a975
to
eba377d
Compare
eba377d
to
97bede4
Compare
97bede4
to
ebf366f
Compare
ebf366f
to
ab9cb48
Compare
@jstucke Assuming the CI passes, this should be mergeable as is.
Note that this is not true. Why shouldn't we drop a dependency when we can?! |
ab9cb48
to
e2022de
Compare
e2022de
to
4cb3ea5
Compare
0eb2e2c
to
6073769
Compare
dbccbbe
to
7f7fc49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good except for a small typo
It is replaced by the much simpler magic.py. Note that we do not compile the custom magic files, as it would need to be updated once `file` is updated.
7f7fc49
to
67e75b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This uses https://github.com/maringuu/fact-mime-database which is imo the only relevant thing that fact_helper_file provides.
Before merging we should somehow incoperate that fact_helper_file/mime/custom_mime_internal is missing.
If would be great if we could add this somehow add to the FACT_core repo to make fact-mime-database not use its generality.