Skip to content

Commit

Permalink
feat: npm and pypi packages, seed script
Browse files Browse the repository at this point in the history
  • Loading branch information
av committed Oct 12, 2024
1 parent e837d52 commit ef75c27
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .scripts/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as toml from 'jsr:@std/toml';
import * as path from 'jsr:@std/path';
import * as collections from "jsr:@std/collections/deep-merge";

const VERSION = "0.2.8";
const VERSION = "0.2.11";

type ValueSeed = {
// Path relative to the project root
Expand All @@ -16,6 +16,7 @@ const targets: ValueSeed[] = [{
value: {
tool: {
poetry: {
version: VERSION,
include: await resolveIncludes(),
},
},
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
![Harbor project logo](./docs/harbor-2.png)

![GitHub Tag](https://img.shields.io/github/v/tag/av/harbor) ![GitHub repo size](https://img.shields.io/github/repo-size/av/harbor) ![GitHub repo file or directory count](https://img.shields.io/github/directory-file-count/av/harbor?type=file&extension=yml&label=compose%20files&color=orange) [![Visitors](https://api.visitorbadge.io/api/visitors?path=av%2Fharbor&countColor=%23263759&style=flat)](https://visitorbadge.io/status?path=av%2Fharbor) ![GitHub language count](https://img.shields.io/github/languages/count/av/harbor)
![GitHub Tag](https://img.shields.io/github/v/tag/av/harbor)
![NPM Version](https://img.shields.io/npm/v/%40avcodes%2Fharbor?labelColor=red&color=white)
![PyPI - Version](https://img.shields.io/pypi/v/llm-harbor?labelColor=blue)
![GitHub repo size](https://img.shields.io/github/repo-size/av/harbor)
![GitHub repo file or directory count](https://img.shields.io/github/directory-file-count/av/harbor?type=file&extension=yml&label=compose%20files&color=orange)
[![Visitors](https://api.visitorbadge.io/api/visitors?path=av%2Fharbor&countColor=%23263759&style=flat)](https://visitorbadge.io/status?path=av%2Fharbor)
![GitHub language count](https://img.shields.io/github/languages/count/av/harbor)

Effortlessly run LLM backends, APIs, frontends, and services with one command.

Expand Down
5 changes: 4 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Includes:
deno run -A ./.scripts/seed.ts
```


### Publish to npm

```bash
Expand All @@ -37,3 +36,7 @@ twine check dist/*
# Publish
twine upload dist/*
```

### App/Docker builds

- Actions on GH, attached to a tag
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@avcodes/harbor-app",
"private": true,
"version": "0.2.8",
"version": "0.2.11",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[package]
name = "harbor-app"
version = "0.2.8"
version = "0.2.11"
description = "A companion app for Harbor LLM toolkit"
authors = ["av"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion app/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2.0.0-rc",
"productName": "Harbor",
"version": "0.2.8",
"version": "0.2.11",
"identifier": "com.harbor.app",
"build": {
"beforeDevCommand": "bun run dev",
Expand Down
2 changes: 1 addition & 1 deletion harbor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3393,7 +3393,7 @@ run_repopack_command() {
# ========================================================================

# Globals
version="0.2.8"
version="0.2.11"
harbor_repo_url="https://github.com/av/harbor.git"
harbor_release_url="https://api.github.com/repos/av/harbor/releases/latest"
delimiter="|"
Expand Down
15 changes: 14 additions & 1 deletion harbor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@

import os
import subprocess
import sys

def main():
subprocess.run(["bash", "harbor.sh"] + sys.argv[1:], check=True)
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
harbor_sh_path = os.path.join(parent_dir, "harbor.sh")

result = subprocess.run(
["bash", harbor_sh_path] + sys.argv[1:],
shell=False,
text=True,
check=False,
stdout=sys.stdout,
stderr=sys.stderr,
)
sys.exit(result.returncode)

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@avcodes/harbor",
"version": "0.2.8",
"version": "0.2.11",
"description": "Effortlessly run LLM backends, APIs, frontends, and services with one command.",
"private": false,
"author": "av <av@av.codes> (https://av.codes)",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml

Large diffs are not rendered by default.

0 comments on commit ef75c27

Please sign in to comment.