Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .coveragerc

This file was deleted.

17 changes: 9 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,31 @@ jobs:
python-version: "3.11"
- name: Lint with flake8
run: |
pip install flake8
pip install flake8-pyproject
flake8
test:
needs: lint
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
python-version: "3.8"
toxenv: py38
- os: ubuntu-22.04
python-version: "3.9"
toxenv: py39
- os: ubuntu-22.04
- os: ubuntu-24.04
python-version: "3.10"
toxenv: py310
- os: ubuntu-22.04
- os: ubuntu-24.04
python-version: "3.11"
toxenv: py311
- os: ubuntu-22.04
- os: ubuntu-24.04
python-version: "3.12"
toxenv: py312
- os: ubuntu-24.04
python-version: "3.13"
toxenv: py313

env:
TOXENV: ${{ matrix.toxenv }}
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ borg-env
*.pyo
.idea/
.cache/
.coverage
src/borg_import/_version.py
.eggs/
91 changes: 91 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "borg-import"
description = "Import backups made with misc. other software into borgbackup"
readme = "README.rst"
authors = [
{name = "The Borg Collective (see AUTHORS file)", email = "borgbackup@python.org"}
]
license = {text = "BSD"}
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Archiving :: Backup",
]
requires-python = ">=3.9"
dynamic = ["version"]

[project.urls]
Homepage = "https://borgimport.readthedocs.io/"

[project.scripts]
borg-import = "borg_import.main:main"

[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
zip-safe = false

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools_scm]
write_to = "src/borg_import/_version.py"

[tool.pytest]
python_files = "testsuite/*.py"
testpaths = ["src"]

[tool.pytest.ini_options]
addopts = "-rs --cov=borg_import --cov-config=pyproject.toml"

[tool.flake8]
max-line-length = 120
exclude = "build,dist,.git,.idea,.cache,.tox,docs/conf.py,.eggs"

[tool.coverage.run]
branch = true
source = ["src/borg_import"]
omit = ["*/borg_import/helpers/testsuite/*"]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:"
]
ignore_errors = true

[tool.tox]
env_list = ["py39", "py310", "py311", "py312", "py313", "flake8"]

[tool.tox.env_run_base]
package = "editable-legacy"
passenv = ["*"]

[tool.tox.env_pkg_base]
passenv = ["*"]

[tool.tox.env.testenv]
deps = ["-rrequirements.d/development.txt"]
commands = [["pytest", "-rs", "--cov=borg_import", "--cov-config=pyproject.toml", "--pyargs={posargs:borg_import.helpers.testsuite}"]]

[tool.tox.env.flake8]
deps = ["flake8-pyproject"]
commands = [["flake8"]]
6 changes: 0 additions & 6 deletions setup.cfg

This file was deleted.

46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

18 changes: 0 additions & 18 deletions tox.ini

This file was deleted.