-
Notifications
You must be signed in to change notification settings - Fork 148
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
Read dependencies from requirement files for setup #26
Conversation
632fd0a
to
1c901b8
Compare
@ankitade has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@ankitade has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
CONTRIBUTING.md
Outdated
``` | ||
|
||
To perform type checking: | ||
TorchMultimodal uses mypy for type checking.To perform type checking: |
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.
Adding a space here?
TorchMultimodal uses mypy for type checking.(space)To perform type checking:
We should consider adding version numbers in requirements file at least for packages where reproducible behaviors are important. |
this is pretty much reproducing the manual readme right now so idk which ones we want to pin |
@ankitade has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
CONTRIBUTING.md
Outdated
@@ -33,7 +33,7 @@ outlined on that page and do not file a public issue. | |||
|
|||
Same as in [README](README.md) with the exception of: | |||
``` | |||
python setup.py develop | |||
pip install -e . |
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.
Does pip install -e .[mode]
replace the two-step approach python setup.py [mode]
+ pip install -r [mode]-requirements
? (I recall in your earlier version it was pip install -e .[dev]
?)
Should we consider sticking with one flavor in our documentation (in README.md it still tells the users to do python setup.py install
)?
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.
strange, i meant to change it in requirements.txt and not in contributing but maybe i wasnt paying attention
Versions are added in requirements files. All packages should have versions to guarantee reproducibility across developers and (especially) in CI. But I've also seen repos not being strict with versions (i.e., only package names in requirements). That should be fine until we become more sensitive to versions. For now I'm just referring to the linter/formatter (see my comments earlier) as those are known issues. |
@ankitade has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@ankitade has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary:
Test plan: