diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 5851e0f..30afa8a 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,2 @@ github: [nekitdev] +custom: https://nekit.dev/funding diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4c42f9d..d262494 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -26,3 +26,5 @@ updates: interval: daily open-pull-requests-limit: 10 + + versioning-strategy: increase diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 60e5d31..391e70e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 . diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index badeda4..50ab02c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a8f556..70bf5f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d5fc89b..c8ee015 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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" diff --git a/.gitignore b/.gitignore index b16af3c..bd7e436 100644 --- a/.gitignore +++ b/.gitignore @@ -65,6 +65,10 @@ site/ .mypy_cache/ .pytype/ +# formatters + +.ruff_cache/ + # cython debugging information cython_debug/ diff --git a/CHANGELOG.md b/CHANGELOG.md index dd564f7..e40ab96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ +## 2.0.1 (2024-02-24) + +No significant changes. + ## 2.0.0 (2024-01-05) ### Features diff --git a/README.md b/README.md index c826f08..f4a8c1c 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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 @@ -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 diff --git a/entrypoint/__init__.py b/entrypoint/__init__.py index 5ec1c83..cc01570 100644 --- a/entrypoint/__init__.py +++ b/entrypoint/__init__.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 9126fb9..7a13915 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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]] @@ -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" @@ -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"] @@ -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" @@ -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"