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

PEP621 pyproject.toml #170

Merged
merged 2 commits into from
Feb 23, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
python-version: "${{ matrix.python-version }}"
- name: install dependencies
run: |
python -m pip install -U pip
pip install wheel flit
python -m pip install -U pip setuptools wheel
pip install flit
flit install --extras=all
- name: lint and test
run: make ci
Expand Down
26 changes: 14 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
requires = ["flit_core>=2,<4"]
build-backend = "flit_core.buildapi"

[tool.flit.metadata]
module = "wily"
author = "Anthony Shaw"
author-email = "[email protected]"
home-page = "https://github.com/tonybaloney/wily"
[project]
name = "wily"
authors = [
{ name = "Anthony Shaw", email = "[email protected]"},
]
readme = "README.md"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Development Status :: 5 - Production/Stable",
Expand All @@ -19,7 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
]
requires = [
dependencies = [
"gitpython>=3.0.0,<4.0.0",
"radon>=5.1,<5.2",
"click>=7.0,<9.0",
Expand All @@ -31,9 +32,9 @@ requires = [
"dataclasses; python_version == '3.6'",
]
requires-python = ">=3.6"
description-file = "README.md"
dynamic=["version", "description"]

[tool.flit.metadata.requires-extra]
[project.optional-dependencies]
test = [
"pytest~=7.2",
"pytest-cov~=3.0.0",
Expand All @@ -55,16 +56,17 @@ dev = [
# TODO: move here proper deps from `docs/requirements_docs.txt`
doc = []

[tool.flit.metadata.urls]
[project.urls]
Homepage = "https://github.com/tonybaloney/wily"
Documentation = "https://wily.readthedocs.io/en/latest/"

[project.scripts]
wily = "wily.__main__:cli"

[tool.flit.sdist]
include = ["doc/"]
exclude = ["doc/*.html"]

[tool.flit.scripts]
wily = "wily.__main__:cli"

[tool.black]
line-length = 88
target-version = ["py37", "py38", "py39", "py310", "py311"]
Expand Down