Skip to content

Commit

Permalink
pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 28, 2024
1 parent 3b8ce92 commit c535fe6
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 100 deletions.
19 changes: 0 additions & 19 deletions .coveragerc

This file was deleted.

2 changes: 0 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[flake8]
max-line-length = 132
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/
per-file-ignores =
__init__.py:F401
26 changes: 7 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,19 @@ on:
jobs:

linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'

- run: pip install .[tests,lint]

- run: flake8
- run: mypy
- run: pytest

integration:
needs: linux
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
os: [windows-latest, macos-latest, ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'

- run: pip install .[tests]
- run: pip install .[tests,lint]

- run: flake8
- run: mypy
- run: pytest
4 changes: 0 additions & 4 deletions .lgtm.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .mypy.ini

This file was deleted.

36 changes: 35 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "meldutils"
description = "Graphical recursive file diffing (Meld, VS Code), good for managing templates across lots of repos / projects"
keywords = ["meld", "merge", "git", "diff"]
classifiers = ["Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Version Control",
"Topic :: Text Processing",
"Topic :: Utilities"
]
requires-python = ">=3.8"
dynamic = ["version", "readme"]

[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}
version = {attr = "meldutils.__version__"}

[project.optional-dependencies]
tests = ["pytest"]
lint = ["flake8", "flake8-bugbear", "flake8-builtins", "flake8-blind-except", "mypy"]

[tool.black]
line-length = 100

[tool.mypy]
files = ["src/"]

ignore_missing_imports = true
strict_optional = false
allow_redefinition = true
show_error_context = false
show_column_numbers = true
41 changes: 0 additions & 41 deletions setup.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions setup.py

This file was deleted.

4 changes: 4 additions & 0 deletions src/meldutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
from .base import files_to_diff, diff_gui

__all__ = ["files_to_diff", "diff_gui"]

__version__ = "2.2.0"

0 comments on commit c535fe6

Please sign in to comment.