Skip to content

Commit

Permalink
Bump dependencies and update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
nekitdev committed Feb 24, 2024
1 parent ea0814b commit ce7e2dc
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 49 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github: [nekitdev]
custom: https://nekit.dev/funding
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ updates:
interval: daily

open-pull-requests-limit: 10

versioning-strategy: increase
23 changes: 14 additions & 9 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,32 @@ on:
jobs:
check:
name: Check

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python 3.12
uses: actions/setup-python@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org/ | python -
run: pipx install poetry

- name: Configure Poetry
run: poetry config virtualenvs.in-project true

- name: Specify the version
run: poetry env use python

- name: Install dependencies
run: poetry install --with check
run: poetry install

- name: Run type checks
run: poetry run mypy .
12 changes: 6 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python 3.12
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org/ | python -
run: pipx install poetry

- name: Configure Poetry
run: poetry config virtualenvs.in-project true

- name: Specify the version
run: poetry env use python

- name: Install dependencies
run: poetry install --with docs

Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,27 @@ on:
jobs:
release:
name: Release

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python 3.12
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org/ | python -
run: pipx install poetry

- name: Configure Poetry
run: poetry config virtualenvs.in-project true

- name: Specify the version
run: poetry env use python

- name: Build
run: poetry build

Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,38 @@ on:
jobs:
test:
name: Test

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python 3.12
uses: actions/setup-python@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org/ | python -
run: pipx install poetry

- name: Configure Poetry
run: poetry config virtualenvs.in-project true

- name: Specify the version
run: poetry env use python

- name: Install dependencies
run: poetry install --with test
run: poetry install

- name: Run tests
run: poetry run pytest --cov-report xml

- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: "./coverage.xml"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ site/
.mypy_cache/
.pytype/

# formatters

.ruff_cache/

# cython debugging information

cython_debug/
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

<!-- changelogging: start -->

## 2.0.1 (2024-02-24)

No significant changes.

## 2.0.0 (2024-01-05)

### Features
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Or by directly specifying it in the configuration like so:

```toml
[tool.poetry.dependencies]
entrypoint = "^2.0.0"
entrypoint = "^2.0.1"
```

Alternatively, you can add it directly from the source:
Expand Down Expand Up @@ -193,7 +193,7 @@ If you are interested in contributing to `entrypoint`, make sure to take a look

[Email]: mailto:support@nekit.dev

[Discord]: https://nekit.dev/discord
[Discord]: https://nekit.dev/chat

[Actions]: https://github.com/nekitdev/entrypoint/actions

Expand All @@ -208,7 +208,7 @@ If you are interested in contributing to `entrypoint`, make sure to take a look
[Coverage]: https://codecov.io/gh/nekitdev/entrypoint
[Documentation]: https://nekitdev.github.io/entrypoint

[Discord Badge]: https://img.shields.io/badge/chat-discord-5865f2
[Discord Badge]: https://img.shields.io/discord/728012506899021874
[License Badge]: https://img.shields.io/pypi/l/entrypoint
[Version Badge]: https://img.shields.io/pypi/v/entrypoint
[Downloads Badge]: https://img.shields.io/pypi/dm/entrypoint
Expand Down
2 changes: 1 addition & 1 deletion entrypoint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def main() -> None:
__title__ = "entrypoint"
__author__ = "nekitdev"
__license__ = "MIT"
__version__ = "2.0.0"
__version__ = "2.0.1"

from entrypoint.core import MAIN, EntryPoint, Main, entrypoint, is_main

Expand Down
24 changes: 10 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "entrypoint"
version = "2.0.0"
version = "2.0.1"
description = "Decorated functions as entry points."
authors = ["nekitdev"]
license = "MIT"
Expand All @@ -22,7 +22,8 @@ classifiers = [
]

[tool.poetry.urls]
Discord = "https://nekit.dev/discord"
Chat = "https://nekit.dev/chat"
Funding = "https://nekit.dev/funding"
Issues = "https://github.com/nekitdev/entrypoint/issues"

[[tool.poetry.packages]]
Expand All @@ -34,26 +35,25 @@ python = ">= 3.8"
attrs = "^23.2.0"
named = "^1.3.0"

typing-aliases = "^1.4.1"
typing-aliases = "^1.7.0"

[tool.poetry.group.format.dependencies]
ruff = "0.1.11"
ruff = "0.2.2"

[tool.poetry.group.check.dependencies]
mypy = "1.8.0"

[tool.poetry.group.test.dependencies]
coverage = "7.4.0"
pytest = "7.4.4"
coverage = "7.4.3"
pytest = "8.0.1"
pytest-cov = "4.1.0"
typing-extensions = "4.9.0"

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
mkdocs = "1.5.3"
mkdocs-material = "9.5.3"
mkdocs-material = "9.5.11"

[tool.poetry.group.docs.dependencies.mkdocstrings]
version = "0.24.0"
Expand All @@ -68,10 +68,6 @@ changelogging = "1.3.0"
[tool.ruff]
line-length = 100

[tool.isort]
line_length = 100
profile = "black"

[tool.pytest.ini_options]
addopts = "--cov entrypoint"
testpaths = ["tests"]
Expand Down Expand Up @@ -100,7 +96,7 @@ strict = true

[tool.changelogging]
name = "entrypoint"
version = "2.0.0"
version = "2.0.1"
url = "https://github.com/nekitdev/entrypoint"
directory = "changes"
output = "CHANGELOG.md"
Expand All @@ -117,5 +113,5 @@ wrap_size = 100
display = ["feature", "change", "fix", "security", "deprecation", "removal", "internal"]

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

0 comments on commit ce7e2dc

Please sign in to comment.