diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 2afc47b..308bef3 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -18,22 +18,6 @@ jobs: python-version: 3.8 - uses: pre-commit/action@v3.0.0 - codeql: - runs-on: ubuntu-latest - permissions: - security-events: write - actions: read - contents: read - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: python - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - test: runs-on: ubuntu-latest strategy: @@ -61,6 +45,24 @@ jobs: flags: pytests fail_ci_if_error: true + test-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.7 + uses: actions/setup-python@v4 + with: + python-version: 3.7 + - name: Build package test + run: | + pip install build + python -m build + - name: Build package test + run: | + mkdir tmp + pip install build + python -m build + benchmark: runs-on: ubuntu-latest steps: diff --git a/pyproject.toml b/pyproject.toml index 5f25422..c0f0207 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,16 +4,14 @@ build-backend = "setuptools.build_meta" [project] name = "linkify-it-py" -authors = [ - {name = "tsutsu3"}, -] +authors = [{ name = "tsutsu3" }] description = "Links recognition library with FULL unicode support." -urls = {Homepage = "https://github.com/tsutsu3/linkify-it-py"} +urls = { Homepage = "https://github.com/tsutsu3/linkify-it-py" } readme = "README.md" requires-python = ">=3.7" keywords = ["linkify", "linkifier", "autolink", "autolinker"] dependencies = ["uc-micro-py"] -license = {text = "MIT"} +license = { text = "MIT" } classifiers = [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3", @@ -35,8 +33,11 @@ dev = ["pre-commit", "isort", "flake8", "black", "pyproject-flake8"] benchmark = ["pytest", "pytest-benchmark"] doc = ["sphinx", "sphinx_book_theme", "myst-parser"] +[tool.setuptools] +packages = ["linkify_it"] + [tool.setuptools.dynamic] -version = {attr = "linkify_it.__version__"} +version = { attr = "linkify_it.__version__" } [tool.isort] multi_line_output = 3