Code Monkey home page Code Monkey logo

pueblo's Introduction

Pueblo - a Python toolbox library

Tests Test coverage Python versions

License Status PyPI Downloads

ยป Changelog | PyPI | Issues | Source code | License

About

  • A Python toolbox library.
  • Contains Python code duplicated too often elsewhere.
  • Finally, it is in one place.
  • Here be dragons and gems.

Setup

pip install --upgrade pueblo

After installation, you can verify if it was successful.

pueblo --version

Usage

Read the source.

Prior Art

pueblo's People

Contributors

amotl avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

pueblo's Issues

Always invoke `gradle wrapper`, or not.

Introduction

In order to support projects not including a Gradle wrapper, invoking gradle wrapper was sufficient to create one.
However, this leads to problems on other projects which include a wrapper already, so we removed invoking this command per GH-27.

Problem

Now, we are seeing here, that it indeed leads to problems on projects which would like to generate a new wrapper, because, well, they are running on a newer version of Java where the shipped Gradle wrapper is not compatible with.

The effect is this error message:

BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

Thoughts

If we are reverting that change, we could push into a similar direction: Just wipe gradlew and invoke gradle wrapper to generate a new one, which will match the designated Java version. Is it a reasonable idea?

mk

About

mk is a CLI tool that aims to ease contribution to any open-source project by hiding repository implementation details from the casual contributor. With it, you can contribute without having to know all the build and testing tools that the project team already uses, which often have strange requirements.

-- https://github.com/pycontribs/mk

asdf

About

Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more.

References

Trivia

Used by RTD for provisioning Python environments.

gotty

Can pueblo provide a convenient wrapper around gotty?

ngr: Task 'install' not found in root project 'java-spring'.

Problem

When running ngr test java-spring for https://github.com/crate/crate-sample-apps/tree/main/java-spring, it fails. Apparently, this Gradle project has no install target.

Details

(.venv) sink:crate-sample-apps amo$ ngr test java-spring/
[...]
2023-11-22 18:08:27,611 [root                      ] INFO    : Probing: type=ItemType.JAVA, class=<class 'pueblo.ngr.runner.JavaRunner'>
2023-11-22 18:08:27,612 [root                      ] INFO    : Invoking JAVA in directory: java-spring
2023-11-22 18:08:27,612 [root                      ] INFO    : Environment Information
2023-11-22 18:08:27,612 [root                      ] INFO    : Running command: java -version
java version "17.0.1" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
2023-11-22 18:08:27,792 [root                      ] INFO    : Installing
2023-11-22 18:08:27,792 [root                      ] INFO    : Running command: ./gradlew install

FAILURE: Build failed with an exception.

* What went wrong:
Task 'install' not found in root project 'java-spring'.

* Try:
> Run gradlew tasks to get a list of available tasks.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 478ms
Traceback (most recent call last):
  File "/Users/amo/dev/crate/docs/crate-sample-apps/.venv/bin/ngr", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/amo/dev/crate/docs/crate-sample-apps/.venv/lib/python3.11/site-packages/pueblo/ngr/cli.py", line 56, in main
    run(args.target, args.__dict__)
  File "/Users/amo/dev/crate/docs/crate-sample-apps/.venv/lib/python3.11/site-packages/pueblo/ngr/core.py", line 120, in run
    return ngr.run()
           ^^^^^^^^^
  File "/Users/amo/dev/crate/docs/crate-sample-apps/.venv/lib/python3.11/site-packages/pueblo/ngr/core.py", line 108, in run
    self.runner.run()
  File "/Users/amo/dev/crate/docs/crate-sample-apps/.venv/lib/python3.11/site-packages/pueblo/ngr/runner.py", line 42, in run
    self.install()
  File "/Users/amo/dev/crate/docs/crate-sample-apps/.venv/lib/python3.11/site-packages/pueblo/ngr/runner.py", line 240, in install
    run_command("./gradlew install")
  File "/Users/amo/dev/crate/docs/crate-sample-apps/.venv/lib/python3.11/site-packages/pueblo/ngr/util.py", line 27, in run_command
    subprocess.check_call(shlex.split(command))  # noqa: S603
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/[email protected]/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./gradlew', 'install']' returned non-zero exit status 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.