Skip to content

Commit

Permalink
refactor to use pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
pohmelie committed Nov 11, 2023
1 parent 80b8ebb commit 11b9b23
Show file tree
Hide file tree
Showing 38 changed files with 913 additions and 560 deletions.
3 changes: 0 additions & 3 deletions .coveragerc

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: build
on: [push, pull_request]

jobs:

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.11'
- run: |
pip install -e ./[dev]
pre-commit run -a
tests:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: |
pip install -e ./[dev]
pytest
- uses: codecov/codecov-action@v2
if: github.ref == 'refs/heads/master'
with:
fail_ci_if_error: true
verbose: true

deploy:
needs: tests
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: casperdcl/deploy-pypi@v2
with:
password: ${{ secrets.PYPI_TOKEN }}
build: true
skip_existing: true
48 changes: 0 additions & 48 deletions .github/workflows/ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ __pycache__
.vscode
.mypy_cache
.pytest_cache
.ruff_cache
coverage.xml
44 changes: 44 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

.python-linters: &python-linters
pass_filenames: false
language: system
types: [python]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: trailing-whitespace
- id: check-toml
- id: end-of-file-fixer

- repo: https://github.com/asottile/add-trailing-comma
rev: v2.1.0
hooks:
- id: add-trailing-comma

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.1.0
hooks:
- id: pretty-format-yaml
args:
- --autofix
- --preserve-quotes
- --indent=2

- repo: local
hooks:
- <<: *python-linters
id: black
name: Format with Black
entry: black
args: ["."]

- <<: *python-linters
id: ruff
name: Check with ruff
entry: ruff
args: ["check", "--fix", "."]
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include README.rst
include license.txt
include history.rst
include doc-requirements.txt
include nose.cfg
recursive-include tests *
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ pyftpdlib 1.5.2
Dependencies
------------

- Python 3.7+
- Python 3.11+

0.21.4 is the last version which supports python 3.7+

0.13.0 is the last version which supports python 3.5.3+

Expand Down
3 changes: 0 additions & 3 deletions doc-requirements.txt

This file was deleted.

Loading

0 comments on commit 11b9b23

Please sign in to comment.