Skip to content

Commit

Permalink
Configuring for pure-python (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac authored Feb 14, 2025
1 parent fb99df2 commit 120657d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,22 @@ env:

jobs:
pre-commit:
permissions:
contents: read
pull-requests: write
name: linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: pre-commit/[email protected]
- 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/[email protected]
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 #v1.1.0
if: always()
with:
msg: Apply pre-commit code formatting
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:

jobs:
build:
permissions:
contents: read
pull-requests: write
strategy:
# We want to see all failures:
fail-fast: false
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 1 addition & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup
"""
import os

from setuptools import find_packages
Expand Down Expand Up @@ -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'},
Expand All @@ -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,
)

0 comments on commit 120657d

Please sign in to comment.