From a1014c4d0ee4a95507297409705ebdbc2a509cc3 Mon Sep 17 00:00:00 2001 From: tsutsu3 Date: Mon, 5 Feb 2024 19:59:29 +0900 Subject: [PATCH 1/2] Add build tests --- .github/workflows/github-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 6a6a2c8..c8066b3 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -47,6 +47,15 @@ jobs: flags: pytests fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} + - name: Build package test + run: | + pip install build + python -m build + - name: Build package test (with tmp folder) + run: | + mkdir tmp + pip install build + python -m build publish: name: Publish to PyPi From 828f3d6fa476be41c203cb1e6efe1a2f2273373b Mon Sep 17 00:00:00 2001 From: tsutsu3 Date: Tue, 6 Feb 2024 18:40:27 +0900 Subject: [PATCH 2/2] Add tool.setuptools section --- pyproject.toml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bcb6519..60e63ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,15 +4,13 @@ build-backend = "setuptools.build_meta" [project] name = "uc-micro-py" -authors = [ - {name = "tsutsu3"}, -] +authors = [{ name = "tsutsu3" }] description = "Micro subset of unicode data files for linkify-it-py projects." readme = "README.md" requires-python = ">=3.7" keywords = ["unicode"] -license = {text = "MIT"} -urls={Homepage = "https://github.com/tsutsu3/uc.micro-py"} +license = { text = "MIT" } +urls = { Homepage = "https://github.com/tsutsu3/uc.micro-py" } classifiers = [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3", @@ -31,5 +29,8 @@ dynamic = ["version"] [project.optional-dependencies] test = ["pytest", "coverage", "pytest-cov"] +[tool.setuptools] +packages = ["uc_micro"] + [tool.setuptools.dynamic] -version = {attr = "uc_micro.__version__"} +version = { attr = "uc_micro.__version__" }