Skip to content

Commit

Permalink
Fix package build (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu3 authored Jan 17, 2024
1 parent bb3479e commit 3e084d5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit 3e084d5

Please sign in to comment.