Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix package build #49

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]

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