bazelbuild / rules_appengine

AppEngine rules for Bazel
Apache License 2.0
30 stars 51 forks source link

Support for python 3 google sdk #128

Open harsh04 opened 2 years ago

harsh04 commented 2 years ago

Failing to run py_appengine_binary due to assertion in google cloud SDK to validate if it is version 2 of python or not. Please help on how to make it work for python 3? or is there any issue with the version I am using? I am using the following version

git_repository(
    name = "io_bazel_rules_appengine",
    remote = "https://github.com/bazelbuild/rules_appengine.git",
    # Check https://github.com/bazelbuild/rules_appengine/releases for the latest version.
    tag = "0.0.9",
)

load(
    "@io_bazel_rules_appengine//appengine:sdk.bzl",
    "appengine_repositories",
)

appengine_repositories()

load(
    "@io_bazel_rules_appengine//appengine:py_appengine.bzl",
    "py_appengine_repositories",
)

py_appengine_repositories(
    version = '1.9.78',
)
INFO: Build completed successfully, 1 total action
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_harsh/377f44f7fb0eb350b3e1b9a606fda7bf/execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/projects/app-config/main.runfiles/com_google_appengine_py/dev_appserver.py", line 95, in <module>
    assert sys.version_info[0] == 2
AssertionError
pmbethe09 commented 2 years ago

this library is not being actively maintained -- contributions to bring up to python3 speed welcome

harsh04 commented 2 years ago

this library is not being actively maintained -- contributions to bring up to python3 speed welcome

I can look into this, but meanwhile, I want to automate deployment from bazel to app engine using python 3. And tips on that?

alexeagle commented 1 year ago

Hey @pmbethe09 - your comment from last year is the most recent comment from a maintainer I think. Is this repo unmaintained now? If so, we should update the README and probably archive it to make this clear to users.

pmbethe09 commented 1 year ago

No active work on this project, so archive is likely appropriate.

On Tue, Oct 3, 2023 at 10:28 AM Alex Eagle @.***> wrote:

Hey @pmbethe09 https://github.com/pmbethe09 - your comment from last year is the most recent comment from a maintainer I think. Is this repo unmaintained now? If so, we should update the README and probably archive it to make this clear to users.

— Reply to this email directly, view it on GitHub https://github.com/bazelbuild/rules_appengine/issues/128#issuecomment-1745094462, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYX5URFGN3CRWKSKRZVTYLX5QOKVAVCNFSM54Q7EHT2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZUGUYDSNBUGYZA . You are receiving this because you were mentioned.Message ID: @.***>