Skip to content

Commit ef75c27

Browse files
committedOct 12, 2024·
feat: npm and pypi packages, seed script
1 parent e837d52 commit ef75c27

File tree

10 files changed

+34
-11
lines changed

10 files changed

+34
-11
lines changed
 

‎.scripts/seed.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as toml from 'jsr:@std/toml';
22
import * as path from 'jsr:@std/path';
33
import * as collections from "jsr:@std/collections/deep-merge";
44

5-
const VERSION = "0.2.8";
5+
const VERSION = "0.2.11";
66

77
type ValueSeed = {
88
// Path relative to the project root
@@ -16,6 +16,7 @@ const targets: ValueSeed[] = [{
1616
value: {
1717
tool: {
1818
poetry: {
19+
version: VERSION,
1920
include: await resolveIncludes(),
2021
},
2122
},

‎README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
![Harbor project logo](./docs/harbor-2.png)
22

3-
![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)
3+
![GitHub Tag](https://img.shields.io/github/v/tag/av/harbor)
4+
![NPM Version](https://img.shields.io/npm/v/%40avcodes%2Fharbor?labelColor=red&color=white)
5+
![PyPI - Version](https://img.shields.io/pypi/v/llm-harbor?labelColor=blue)
6+
![GitHub repo size](https://img.shields.io/github/repo-size/av/harbor)
7+
![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)
8+
[![Visitors](https://api.visitorbadge.io/api/visitors?path=av%2Fharbor&countColor=%23263759&style=flat)](https://visitorbadge.io/status?path=av%2Fharbor)
9+
![GitHub language count](https://img.shields.io/github/languages/count/av/harbor)
410

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

‎RELEASE.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Includes:
1212
deno run -A ./.scripts/seed.ts
1313
```
1414

15-
1615
### Publish to npm
1716

1817
```bash
@@ -37,3 +36,7 @@ twine check dist/*
3736
# Publish
3837
twine upload dist/*
3938
```
39+
40+
### App/Docker builds
41+
42+
- Actions on GH, attached to a tag

‎app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@avcodes/harbor-app",
33
"private": true,
4-
"version": "0.2.8",
4+
"version": "0.2.11",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

‎app/src-tauri/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[package]
33
name = "harbor-app"
4-
version = "0.2.8"
4+
version = "0.2.11"
55
description = "A companion app for Harbor LLM toolkit"
66
authors = ["av"]
77
edition = "2021"

‎app/src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2.0.0-rc",
33
"productName": "Harbor",
4-
"version": "0.2.8",
4+
"version": "0.2.11",
55
"identifier": "com.harbor.app",
66
"build": {
77
"beforeDevCommand": "bun run dev",

‎harbor.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3393,7 +3393,7 @@ run_repopack_command() {
33933393
# ========================================================================
33943394

33953395
# Globals
3396-
version="0.2.8"
3396+
version="0.2.11"
33973397
harbor_repo_url="https://github.com/av/harbor.git"
33983398
harbor_release_url="https://api.github.com/repos/av/harbor/releases/latest"
33993399
delimiter="|"

‎harbor/__init__.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11

2+
import os
23
import subprocess
34
import sys
45

56
def main():
6-
subprocess.run(["bash", "harbor.sh"] + sys.argv[1:], check=True)
7+
current_dir = os.path.dirname(os.path.abspath(__file__))
8+
parent_dir = os.path.dirname(current_dir)
9+
harbor_sh_path = os.path.join(parent_dir, "harbor.sh")
10+
11+
result = subprocess.run(
12+
["bash", harbor_sh_path] + sys.argv[1:],
13+
shell=False,
14+
text=True,
15+
check=False,
16+
stdout=sys.stdout,
17+
stderr=sys.stderr,
18+
)
19+
sys.exit(result.returncode)
720

821
if __name__ == "__main__":
922
main()

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@avcodes/harbor",
3-
"version": "0.2.8",
3+
"version": "0.2.11",
44
"description": "Effortlessly run LLM backends, APIs, frontends, and services with one command.",
55
"private": false,
66
"author": "av <av@av.codes> (https://av.codes)",

‎pyproject.toml

+2-2
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.