Skip to content

Commit

Permalink
fix package metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed May 31, 2024
1 parent 37d1a1e commit 328f8be
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/shgpt
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -20,13 +15,8 @@ jobs:
python-version: '3.11'
- name: Install pypa/build
run: >-
python3 -m
pip install
hatchling
--user
- name: Build a binary wheel and a source tarball
run: python3 -m hatchling build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
pip install hatch
hatch build
- name: Pulish
run: >-
hatch publish -u '__token__' -a ${{ secrets.HATCH_INDEX_AUTH }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ __pycache__/
build/
develop-eggs/
dist/
downloads/
publish/
eggs/
.eggs/
lib/
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ run:
build:
hatch build

.PHONY: run build
clean:
rm -rf build dist shgpt.egg-info

.PHONY: run build clean
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# ShellGPT

[![](https://img.shields.io/pypi/v/shgpt)](https://pypi.org/project/shgpt/)

Generate shell command you want with power of LLM, without leaving your terminal!

# Install
```
pip install shgpt
```

This will install two commands: `sg` and `shgpt`.

# Usage

ShellGPT has three modes to use:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name = "shgpt"
dynamic = ["version"]
authors = [{name = "Jiacai Liu", email="dev@liujiacai.net"}]
description = "Generate shell command you want with power of LLM, without leaving your terminal."
readme = "README.md"
keywords = ["llm", "shell", "gpt"]
license = "GPL-3.0"
dependencies = [
Expand All @@ -22,6 +23,7 @@ Issues = "https://github.com/jiacai2050/shellgpt/issues"

[project.scripts]
sg = "shgpt.main:main"
shgpt = "shgpt.main:main"

[tool.hatch.version]
path = "shgpt/version.py"
Expand Down
2 changes: 1 addition & 1 deletion shgpt/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.1"

0 comments on commit 328f8be

Please sign in to comment.