Skip to content

Commit

Permalink
feat: build with hatchling, build and upload dist using twine
Browse files Browse the repository at this point in the history
  • Loading branch information
seyLu committed Oct 22, 2023
1 parent 83a6cce commit 2c8d56d
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<img height=100 src="https://github.com/seyLu/ghlabel/blob/main/static/icons/labels.png" alt="Setup Github Label CLI Icon">
<img height=100 src="https://github.com/seyLu/ghlabel/blob/main/labels.png" alt="Setup Github Label CLI Icon">
<h1Github Label CLI</h1>
<p>CLI tool to help setup Github Labels from a yaml/json config file.</p>
<p>
Expand Down
File renamed without changes
19 changes: 17 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
[project]
name = "ghlabel"
version = "0.0.1"
version = "0.0.2"
# Support Python 3.11.
requires-python = "==3.11"
requires-python = ">=3.11"
license = "MIT"
authors = [
{name = "MJ Sabit (seyLu)", email = "98249191+seyLu@users.noreply.github.com"},
]
description = "CLI tool to help setup Github Labels from a yaml/json config file."
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.urls]
"Homepage" = "https://github.com/seyLu/ghlabel"
"Bug Tracker" = "https://github.com/seyLu/ghlabel/issues"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"


[tool.ruff]
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ typer==0.9.0
requests==2.31.0
python-dotenv==1.0.0

# packaging
hatchling==1.18.0
build==1.0.3
twine==4.0.2

# dev tools
pre-commit==3.5.0
File renamed without changes.
5 changes: 2 additions & 3 deletions cli.py → src/ghlabel/ghlabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@

import typer
from rich.progress import Progress, SpinnerColumn, TextColumn

from scripts.dump_label import DumpLabel
from scripts.setup_github_label import GithubConfig, GithubLabel
from util.dump_label import DumpLabel
from util.setup_github_label import GithubConfig, GithubLabel


def parse_remove_labels(labels: str | None) -> list[str] | None:
Expand Down
Empty file added src/ghlabel/util/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.

0 comments on commit 2c8d56d

Please sign in to comment.