Skip to content

Commit

Permalink
Make use of Poetry 2.0.0 suggestions
Browse files Browse the repository at this point in the history
- Guided by `poetry check`
  • Loading branch information
dpassen committed Jan 7, 2025
1 parent 80341d9 commit f6c03d1
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
experimental: true

- name: Install optional
run: poetry install
run: poetry install --all-extras

- name: Run Formatter
run: mise run format
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
experimental: true

- name: Install optional
run: poetry install
run: poetry install --all-extras

- name: Run Linter
run: mise run lint
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
experimental: true

- name: Install optional
run: poetry install
run: poetry install --all-extras

- name: Run Unit Tests
run: mise run test
2 changes: 1 addition & 1 deletion .github/workflows/typecheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
experimental: true

- name: Install optional
run: poetry install
run: poetry install --all-extras

- name: Run Type Checker
run: mise run typecheck
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ First, install `poetry` using the instructions located [here](https://python-poe
Then, install the requirements using:

```bash
poetry install
poetry install --all-extras
```

You can run the tests (with coverage) using:
Expand Down
92 changes: 68 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 11 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,39 +1,27 @@
[tool.poetry]
[project]
name = "optional.py"
version = "2.0.0"
description = "An implementation of the Optional object in Python"

license = "MIT"

authors = [
"Chad Befus <crbefus@gmail.com>",
"Derek Passen <dpassen1@gmail.com>"
{name = "Chad Befus", email = "crbefus@gmail.com"},
{name = "Derek Passen", email = "dpassen1@gmail.com"}
]

readme = "README.md"

repository = "https://github.com/Python-Optional/optional.py"
homepage = "https://github.com/Python-Optional/optional.py"
keywords = ["optional datatype library"]
requires-python = ">= 3.10"

[project.optional-dependencies]
dev = ["ruff", "mypy"]
test = ["pytest", "pytest-cov", "coveralls", "coverage"]

[tool.poetry]
packages = [
{ include = "optional" },
]

keywords = ["optional datatype library"]

[tool.poetry.dependencies]
python = "^3.10"

[tool.poetry.group.dev.dependencies]
ruff = "^0.8.0"
mypy = "^1.6.0"

[tool.poetry.group.test.dependencies]
pytest = ">=7.2,<9.0"
pytest-cov = ">=4,<6"
coveralls = "^3.3"
coverage = "^6.5"

[tool.coverage.report]
exclude_lines = ["@overload"]

Expand All @@ -50,5 +38,5 @@ line-length = 88
select = ["E", "F", "I"]

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit f6c03d1

Please sign in to comment.