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

refactor: combine common, cli, deploy into one python package [DET-4756] #2108

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

ioga
Copy link
Contributor

@ioga ioga commented Mar 20, 2021

Description

  • determined-common, determined-cli, determined-deploy python packages are now DEPRECATED as they've been combined into determined package.
  • move code from individual packages into harness/determined/<OLD_PACKAGE_NAME>
  • update imports from underscores to dots: determined_{common,deploy,cli} to determined.{common,deploy,cli}
  • old packages will provide import aliases, but print a warning on import.

Test Plan

Commentary (optional)

Checklist

  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.

@cla-bot cla-bot bot added the cla-signed label Mar 20, 2021
@ioga ioga force-pushed the combine branch 2 times, most recently from a2e2bbd to 3c9ebff Compare March 22, 2021 23:43
@ioga ioga marked this pull request as ready for review March 23, 2021 00:22
@ioga ioga requested a review from shiyuann as a code owner March 23, 2021 00:22
Copy link
Member

@rb-determined-ai rb-determined-ai left a comment

Choose a reason for hiding this comment

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

Looks great, nice work

.circleci/config.yml Outdated Show resolved Hide resolved
cli/determined_cli/__init__.py Show resolved Hide resolved
],
entry_points={"console_scripts": ["det-deploy = determined_deploy.__main__:main"]},
Copy link
Member

Choose a reason for hiding this comment

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

I also think that the det-deploy executable belongs to the determined_deploy package, and that the main repo should only contain det deploy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking of det deploy as a separate chunk of work, for a later, separate PR. Then keeping det-deploy in determined_deploy defeats the whole purpose of merging it into the main package.
We can keep both det-deploy and det deploy in the main package to ease the migration, print a deprecation in det-deploy, and then eventually remove it.

harness/MANIFEST.in Outdated Show resolved Hide resolved
@ioga ioga enabled auto-merge (squash) March 23, 2021 21:45
@ioga ioga merged commit 4b84772 into determined-ai:master Mar 23, 2021
ioga added a commit to ioga/determined that referenced this pull request Apr 7, 2021
ioga added a commit that referenced this pull request Apr 12, 2021
- reapply some work from #2108 that was reverted in #2153 and #2156.
- add more docs.
philipnrmn added a commit to philipnrmn/determined that referenced this pull request Dec 4, 2021
Tests were moved from ./cli to ./harness in determined-ai#2108 but the make target
was not updated. Here we remove it so that the absence of the tests
directory does not cause `make test` to fail.
@philipnrmn philipnrmn mentioned this pull request Dec 4, 2021
3 tasks
philipnrmn added a commit that referenced this pull request Dec 4, 2021
* fix: remove test-cli from make test

Tests were moved from ./cli to ./harness in #2108 but the make target
was not updated. Here we remove it so that the absence of the tests
directory does not cause `make test` to fail.

* fix: remove test-common from make test

Tests were moved from ./common to ./harness in #2018 but the make target
was not updated. Here we remove it so that the absence of the tests
directory does not cause `make test` to fail.
hkang1 pushed a commit to hkang1/determined that referenced this pull request Feb 2, 2022
* fix: remove test-cli from make test

Tests were moved from ./cli to ./harness in determined-ai#2108 but the make target
was not updated. Here we remove it so that the absence of the tests
directory does not cause `make test` to fail.

* fix: remove test-common from make test

Tests were moved from ./common to ./harness in determined-ai#2018 but the make target
was not updated. Here we remove it so that the absence of the tests
directory does not cause `make test` to fail.
@dannysauer dannysauer added this to the 0.14.6 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants