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

Make rules_python_external functional #354

Merged
merged 2 commits into from Aug 31, 2020
Merged

Conversation

@alexeagle
Copy link
Collaborator

@alexeagle alexeagle commented Aug 29, 2020

  • Clean up files that aren't needed now that it's a subdirectory of rules_python
  • Move the example into the top-level examples

Reminder of the plan:

  • bring in the repo to a subdirectory, preserving git history and contributors
  • clean up the code, remove mypy, get it functional in that subdirectory
  • THIS PR add an example/integration test proving that it works
  • cut a patch release and get some users to test it out
  • communicate our deprecation plan to rules_python users
  • BIG SWITCH: move the rules_python_external implementation to the root, make a legacy/ directory for current impl
  • fill in any missing docstrings and include new rules in stardoc
  • cut a breaking release (a minor, since semver starting with 0. states that minors are breaking)
  • help users switch over
  • in a later breaking release, actually remove the old implementation
@alexeagle alexeagle force-pushed the alexeagle:external2 branch 5 times, most recently from 4c0f660 to d0c84b4 Aug 29, 2020
@alexeagle alexeagle marked this pull request as ready for review Aug 29, 2020
@alexeagle alexeagle closed this Aug 30, 2020
@alexeagle alexeagle reopened this Aug 30, 2020
tools/bazel_integration_test/test_runner.py Outdated Show resolved Hide resolved
)

load("@rules_python_external//:repositories.bzl", "rules_python_external_dependencies")
load("@rules_python//experimental/rules_python_external:repositories.bzl", "rules_python_external_dependencies")

This comment has been minimized.

@thundergolfer

thundergolfer Aug 30, 2020
Collaborator

I don't think this works while @rules_python points at the 0.0.2 release, because the starlark file doesn't exist in that version. But it'll work in integration test because the http_archive.url is subbed out.

Probably worth a TODO to update the above http_archive.url when possible.

This comment has been minimized.

@alexeagle

alexeagle Aug 30, 2020
Author Collaborator

ah, we need a step during releases that bumps the version everywhere, including the readme and all the examples. In rules_nodejs we have that automated as part of the release. Happy to do that as a followup, are the release steps documented though?

This comment has been minimized.

@thundergolfer

thundergolfer Aug 31, 2020
Collaborator

are the release steps documented though?

Only what I've got in WIP here -> #317

examples/rules_python_external/test.py Show resolved Hide resolved
@alexeagle alexeagle force-pushed the alexeagle:external2 branch from d0c84b4 to 08d3a3f Aug 30, 2020
alexeagle added 2 commits Aug 29, 2020
- Clean up files that aren't needed now that it's a subdirectory of rules_python
- Move the example into the top-level examples

From the checklist in #352
this is the third item.
@alexeagle alexeagle force-pushed the alexeagle:external2 branch from 08d3a3f to 8fbb8e6 Aug 31, 2020
@alexeagle alexeagle merged commit 6ed1fe5 into bazelbuild:master Aug 31, 2020
2 checks passed
2 checks passed
buildkite/rules-python-python Build #1044 passed (45 seconds)
Details
cla/google All necessary CLAs are signed
@alexeagle alexeagle deleted the alexeagle:external2 branch Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.