From 120657d4fb5f7adbad74cced78fccbd4da745a67 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Fri, 14 Feb 2025 10:56:05 +0100 Subject: [PATCH] Configuring for pure-python (#10) --- .github/workflows/pre-commit.yml | 7 +++++-- .github/workflows/tests.yml | 5 +++++ .meta.toml | 2 +- .pre-commit-config.yaml | 2 +- setup.py | 10 +--------- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 371ca94..ff77ae6 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -15,6 +15,9 @@ env: jobs: pre-commit: + permissions: + contents: read + pull-requests: write name: linting runs-on: ubuntu-latest steps: @@ -22,12 +25,12 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.x - - uses: pre-commit/action@v3.0.1 + - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd #v3.0.1 with: extra_args: --all-files --show-diff-on-failure env: PRE_COMMIT_COLOR: always - - uses: pre-commit-ci/lite-action@v1.1.0 + - uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 #v1.1.0 if: always() with: msg: Apply pre-commit code formatting diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 09ef1e0..b9a7241 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,6 +12,9 @@ on: jobs: build: + permissions: + contents: read + pull-requests: write strategy: # We want to see all failures: fail-fast: false @@ -34,6 +37,8 @@ jobs: name: ${{ matrix.config[1] }} steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up Python uses: actions/setup-python@v5 with: diff --git a/.meta.toml b/.meta.toml index 5fe89eb..d3ade5a 100644 --- a/.meta.toml +++ b/.meta.toml @@ -2,7 +2,7 @@ # https://github.com/zopefoundation/meta/tree/master/config/pure-python [meta] template = "pure-python" -commit-id = "971d1e87" +commit-id = "faa4ee89" [python] with-windows = false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dba8376..55afc3d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ minimum_pre_commit_version: '3.6' repos: - repo: https://github.com/pycqa/isort - rev: "5.13.2" + rev: "6.0.0" hooks: - id: isort - repo: https://github.com/hhatto/autopep8 diff --git a/setup.py b/setup.py index 2d3b201..85b3e9b 100644 --- a/setup.py +++ b/setup.py @@ -11,8 +11,6 @@ # FOR A PARTICULAR PURPOSE. # ############################################################################## -"""Setup -""" import os from setuptools import find_packages @@ -55,7 +53,7 @@ def read(*rnames): 'Topic :: Internet :: WWW/HTTP', 'Framework :: Zope :: 3', ], - url='http://pypi.org/project/z3c.password', + url='https://github.com/zopefoundation/z3c.password', packages=find_packages('src'), include_package_data=True, package_dir={'': 'src'}, @@ -79,11 +77,5 @@ def read(*rnames): 'zope.schema', 'zope.security', ], - tests_require=[ - 'zope.password', - 'zope.pluggableauth', - 'zope.testing', - ], - test_suite='z3c.password.tests.test_suite', zip_safe=False, )