Skip to content

Commit

Permalink
Merge branch 'master' of github.com:KanjiVG/kanjivg
Browse files Browse the repository at this point in the history
  • Loading branch information
benkasminbullock committed Sep 24, 2024
2 parents ed2d042 + be27d76 commit ac3c692
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Release 🚀

on: push

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
publish-to-pypi:
name: Publish to PyPI 🐍
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
publish-to-testpypi:
name: Publish to TestPyPI 🐍
needs:
- build
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ kanjivg.xml
kanjivg-*xml.gz
kanjivg-*.zip
stripped/*
*.egg-info
10 changes: 10 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import importlib.metadata as metadata

__version__ = metadata.version(__name__)
__author__ = metadata.metadata(__name__)['Author']
__license__ = metadata.metadata(__name__)['License']
__all__ = [__name__]

from kanjivg import *
from kvg_lookup import *
from kvg import *
Empty file modified kvg.py
100755 → 100644
Empty file.
0 kvg-lookup.py → kvg_lookup.py
100755 → 100644
File renamed without changes.
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "kanjivg"
dynamic = ["version"]
authors = [
{name = "ospalh"},
{name = "benkasminbullock"},
{name = "Gnurou"},
{name = "eichhirn"}
]
description = "Kanji vector graphics "
readme = "README.md"
requires-python = ">=3.7"
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Topic :: Utilities"
]

[tool.setuptools_scm]
version_scheme = "no-guess-dev"
local_scheme = "no-local-version"
tag_regex = "^(?:r)?(\\d{8}-?\\d?)$"

[project.urls]
Homepage = "https://github.com/KanjiVG/kanjivg"

0 comments on commit ac3c692

Please sign in to comment.