-
Notifications
You must be signed in to change notification settings - Fork 161
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
[BE Hackathon] Automatically generate datapipe.pyi in setup.py #290
Conversation
[ghstack-poisoned]
ghstack-source-id: e1be597c9e2e452652adbf3dbf6299585dea1c24 Pull Request resolved: #290
Same question as the other PR: We will be removing the .pyi file from Git. Once the file is generated, it should persist even when a developer switches between Git branches. Regeneration is needed via |
…p.py" This should only land after pytorch/pytorch#73991 Automatically run the generation of `datapipe.pyi` in `setup.py` and remove the interface file from version control [ghstack-poisoned]
ghstack-source-id: f13032f1c9e83ee31249a91dc99e8cfa2c3580a0 Pull Request resolved: #290
…p.py" This should only land after pytorch/pytorch#73991 CI will fail until that PR is landed into Core's nightly. Automatically run the generation of `datapipe.pyi` in `setup.py` and remove the interface file from version control [ghstack-poisoned]
ghstack-source-id: 9aee267a2d4227648053797726c6c62de3a68a2b Pull Request resolved: #290
…p.py" This should only land after pytorch/pytorch#73991 CI will fail until that PR is landed into Core's nightly. Automatically run the generation of `datapipe.pyi` in `setup.py` and remove the interface (.pyi) file from version control [ghstack-poisoned]
ghstack-source-id: 56c02953bec89c5eeb7bedc3bb73be7aced11c3e Pull Request resolved: #290
…p.py" This should only land after pytorch/pytorch#73991 CI will fail until that PR is landed into Core's nightly. Automatically run the generation of `datapipe.pyi` in `setup.py` and remove the interface (.pyi) file from version control [ghstack-poisoned]
ghstack-source-id: 1c8f1b84213fa7d3ec976a3f22e565b842489900 Pull Request resolved: #290
…p.py" This should only land after pytorch/pytorch#73991 CI will fail until that PR is landed into Core's nightly. Automatically run the generation of `datapipe.pyi` in `setup.py` and remove the interface (.pyi) file from version control [ghstack-poisoned]
@NivekT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…p.py" This should only land after pytorch/pytorch#73991 ~~CI will fail until that PR is landed into Core's nightly.~~ This is working now. Automatically run the generation of `datapipe.pyi` in `setup.py` and remove the interface (.pyi) file from version control Differential Revision: [D34939044](https://our.internmc.facebook.com/intern/diff/D34939044) [ghstack-poisoned]
.github/workflows/domain_ci.yml
Outdated
@@ -125,6 +125,9 @@ jobs: | |||
- name: Check out torchdata repository | |||
uses: actions/checkout@v2 | |||
|
|||
- name: Install mssing dependency |
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.
Other domain libraries generally require and install requests
(which is required by torchdata
) but not torchaudio
. Therefore we are installing it here prior to installing torchdata
.
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.
Note that I fixed the typo
…p.py" This should only land after pytorch/pytorch#73991 ~~CI will fail until that PR is landed into Core's nightly.~~ This is working now. Automatically run the generation of `datapipe.pyi` in `setup.py` and remove the interface (.pyi) file from version control Differential Revision: [D34939044](https://our.internmc.facebook.com/intern/diff/D34939044) [ghstack-poisoned]
@NivekT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
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 with one comment about GHA workflow.
…p.py" This should only land after pytorch/pytorch#73991 ~~CI will fail until that PR is landed into Core's nightly.~~ This is working now. Automatically run the generation of `datapipe.pyi` in `setup.py` and remove the interface (.pyi) file from version control Differential Revision: [D34939044](https://our.internmc.facebook.com/intern/diff/D34939044) [ghstack-poisoned]
@NivekT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This breaks This PR is problematic, because you now have a build time dependency on pip install -r https://raw.githubusercontent.com/pytorch/data/main/requirements.txt
pip install --no-build-isolation git+https://github.com/pytorch/data |
I am adding a nightly release by the end of this week. Does it help if nightly release is available? |
Yes. Installing from a git repo means that we are installing from source. Thus, we need to have all build requirements available without |
Sure. Then, I will try to land nightly workflow asap |
I didn't realize that was the case. Thanks for spotting that and fixing it. |
The doc generation workflow is failing because of the same reason. https://github.com/pytorch/data/runs/5633692990?check_suite_focus=true |
Fixing the issue [mentioned here](#290 (comment)). I have ran it on my fork and the build worked: https://github.com/NivekT/data/actions/runs/2023027716 Differential Revision: [D35048050](https://our.internmc.facebook.com/intern/diff/D35048050) [ghstack-poisoned]
Summary: Pull Request resolved: #314 Fixing the issue [mentioned here](#290 (comment)). I have ran it on my fork and the build worked: https://github.com/NivekT/data/actions/runs/2023027716 Test Plan: Imported from OSS Reviewed By: ejguan Differential Revision: D35048050 Pulled By: NivekT fbshipit-source-id: dcacd514c0138519e4581539fb4b019989d96a2a
Fixing the issue [mentioned here](#290 (comment)). I have ran it on my fork and the build worked: https://github.com/NivekT/data/actions/runs/2023027716 Differential Revision: [D35048050](https://our.internmc.facebook.com/intern/diff/D35048050) [ghstack-poisoned]
Stack from ghstack:
This should only land after pytorch/pytorch#73991
CI will fail until that PR is landed into Core's nightly.This is working now.Automatically run the generation of
datapipe.pyi
insetup.py
and remove the interface (.pyi) file from version controlDifferential Revision: D34939044