{"id":36825233,"url":"https://github.com/scalapy/sbt-scalapy","last_synced_at":"2026-01-12T14:04:05.416Z","repository":{"id":40323095,"uuid":"484046450","full_name":"scalapy/sbt-scalapy","owner":"scalapy","description":"Automatic SBT configuration for ScalaPy","archived":false,"fork":false,"pushed_at":"2023-02-24T08:44:03.000Z","size":34,"stargazers_count":2,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-09T03:21:32.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scalapy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-21T12:40:13.000Z","updated_at":"2022-05-25T06:48:49.000Z","dependencies_parsed_at":"2023-02-16T00:31:23.410Z","dependency_job_id":null,"html_url":"https://github.com/scalapy/sbt-scalapy","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/scalapy/sbt-scalapy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalapy%2Fsbt-scalapy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalapy%2Fsbt-scalapy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalapy%2Fsbt-scalapy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalapy%2Fsbt-scalapy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scalapy","download_url":"https://codeload.github.com/scalapy/sbt-scalapy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalapy%2Fsbt-scalapy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-12T14:04:03.908Z","updated_at":"2026-01-12T14:04:05.084Z","avatar_url":"https://github.com/scalapy.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automatic SBT configuration for ScalaPy\n\n*supports both JVM and/or Scala Native projects*\n\n![Build Status](https://github.com/kiendang/sbt-scalapy/actions/workflows/ci.yml/badge.svg)\n## Quick start\n\n1. Add the plugin to `project/plugins.sbt`\n\n    ```scala\n    addSbtPlugin(\"ai.kien\" % \"sbt-scalapy\" % \"\u003cversion\u003e\")\n    ```\n\n2. Enable the plugin for your ScalaPy project in `build.sbt`\n\n    ```scala\n    enablePlugins(ScalaPyPlugin)\n    ```\n\n    `sbt-scalapy` would then configure the project to use the `python` in your current environment. If you want to use another Python version, set the `scalapyPythonExecutable` key to the interpreter executable,\n\n    could be the absolute path\n\n    ```scala\n    scalapyPythonExecutable := \"/absolute/path/to/python\"\n    ```\n\n    or just the name of the executable if it's already in `PATH`\n\n    ```scala\n    scalapyPythonExecutable := \"python3.9\"\n    ```\n\n## Advanced\n\n### JVM\n\nScalaPy for JVM requries the name and location of `libpython`. You can set these manually instead of letting the plugin automatically figure it out,\n\n```scala\nscalapyPythonNativeLibrary := \"python3.9m\"\nscalapyPythonNativeLibraryPaths := Seq(\n  \"/first/directory/to/look/for/libpython\",\n  \"/second/directory/to/look/for/libpython\"\n)\n```\n\n### Scala Native\n\nScalaPy for Scala Native requries [the linker flags for embedding Python](https://docs.python.org/3/extending/embedding.html#compiling-and-linking-under-unix-like-systems). You can set this manually instead of letting the plugin automatically figure it out,\n\n```scala\nscalapyLinkingOptions := Seq(\"-l...\", \"-l...\")\n```\n\n## Virtualenv\n\nTo use a virtualenv Python, you can either activate the virtualenv then start sbt or set `scalapyPythonExecutable` to the virtualenv Python executable.\n\nFor Scala Native, you also need to set the `SCALAPY_PYTHON_PROGRAMNAME` environment variable to the virtualenv Python executable,\n\n```sh\nSCALAPY_PYTHON_PROGRAMNAME=\"/path/to/python\" sbt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalapy%2Fsbt-scalapy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalapy%2Fsbt-scalapy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalapy%2Fsbt-scalapy/lists"}