Skip to content

Commit

Permalink
Merge pull request #170 from tonybaloney/tonybaloney-patch-1
Browse files Browse the repository at this point in the history
PEP621 pyproject.toml
  • Loading branch information
tonybaloney authored Feb 23, 2023
2 parents 5f84551 + 3643429 commit 3f8b68d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
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 = "anthonyshaw@apache.org"
home-page = "https://github.com/tonybaloney/wily"
[project]
name = "wily"
authors = [
{ name = "Anthony Shaw", email = "anthonyshaw@apache.org"},
]
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

0 comments on commit 3f8b68d

Please sign in to comment.