diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..b29d80436 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,29 @@ +changelog: + exclude: + labels: + - dependencies + - Internal + - CI + - Documentation + authors: + - dependabot[bot] + - pre-commit-ci[bot] + categories: + - title: Breaking changes + labels: + - Breaking + - title: Features + labels: + - Feature + - title: Bug fixes + labels: + - Bug + - title: Translations + labels: + - Translations + - title: Packaging + labels: + - Packaging + - title: Other changes + labels: + - '*' \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3004ccf1f..5b74c0c21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,19 @@ concurrency: cancel-in-progress: true jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - uses: actions/setup-python@v6 + with: + python-version: "3.10" + + - uses: pre-commit/action@v3.0.1 + tests: name: Python ${{ matrix.python-version }} runs-on: ubuntu-24.04 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index a1b678919..000000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: pre-commit - -on: - push: - branches: - - main - pull_request: - -jobs: - pre-commit: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - - uses: actions/setup-python@v6 - with: - python-version: "3.10" - - - uses: pre-commit/action@v3.0.1 diff --git a/docs/img/build-status.png b/docs/img/build-status.png index bb043cb9e..863756b0f 100644 Binary files a/docs/img/build-status.png and b/docs/img/build-status.png differ diff --git a/pyproject.toml b/pyproject.toml index ecddea9f4..121ac357f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,9 +44,7 @@ dev = [ { include-group = "test" }, ] test = [ - # temporary pin of attrs - "attrs==22.1.0", - "importlib-metadata<5.0", + "importlib-metadata<9.0", # Pytest for running the tests. "pytest==9.*", @@ -64,16 +62,18 @@ docs = [ ] optional = [ # Optional packages which may be used with REST framework. - "coreapi==2.3.1", + "coreapi==2.3.3", "coreschema==0.0.4", "django-filter", - "django-guardian>=2.4.0,<2.5", + "django-guardian>=2.4.0,<3.3", "inflection==0.5.1", "legacy-cgi; python_version>='3.13'", "markdown>=3.3.7", "psycopg[binary]>=3.1.8", - "pygments~=2.17.0", - "pyyaml>=5.3.1,<5.4", + "pygments>=2.17,<2.20", + "pyyaml>=5.3.1,<6.1", + # setuptools is needed for coreapi (imports pkg_resources) + "setuptools<82", ] django42 = [ "django>=4.2,<5.0" ] django50 = [ "django>=5.0,<5.1" ]