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 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__" }