Browse Source

Restart from scratch.

dev
Draklaw 8 months ago
parent
commit
b1d2fe7717
  1. 36
      pyproject.toml
  2. 18
      src/bsv.bak/__init__.py
  3. 0
      src/bsv.bak/__main__.py
  4. 16
      src/bsv.bak/_version.py
  5. 0
      src/bsv.bak/cli.py
  6. 0
      src/bsv.bak/command/__init__.py
  7. 0
      src/bsv.bak/command/info.py
  8. 0
      src/bsv.bak/command/init.py
  9. 0
      src/bsv.bak/exception.py
  10. 0
      src/bsv.bak/main.py
  11. 0
      src/bsv.bak/object.py
  12. 0
      src/bsv.bak/path_map.py
  13. 0
      src/bsv.bak/repository.py
  14. 0
      src/bsv.bak/simple_cas/__init__.py
  15. 0
      src/bsv.bak/simple_cas/cas.py
  16. 0
      src/bsv.bak/tree_walker.py
  17. 0
      src/bsv.bak/util.py
  18. 8
      src/bsv/__init__.py
  19. 0
      tests.bak/test_repository.py
  20. 0
      tests.bak/test_simple_cas.py

36
pyproject.toml

@ -20,6 +20,7 @@ dependencies = [
[project.optional-dependencies]
test = [
"pytest",
"hypothesis",
]
[project.urls]
@ -29,6 +30,41 @@ test = [
[project.scripts]
bsv = "bsv.main:main"
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"D", # pydocstyle
"DOC", # pydoclint
"E", # pycodestyle
"EM", # flake8-errmsg
"F", # Pyflakes
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PERF", # Perflint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"S", # flake8-bandit
"SIM", # flake8-simplify
"TC", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

18
src/bsv.bak/__init__.py

@ -0,0 +1,18 @@
# bsv - Backup, Synchronization, Versioning
# Copyright (C) 2023 Simon Boyé
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from __future__ import annotations
from bsv._version import __version__, __version_tuple__

0
src/bsv/__main__.py → src/bsv.bak/__main__.py

16
src/bsv.bak/_version.py

@ -0,0 +1,16 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union
VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object
version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE
__version__ = version = '0.0.1.dev8+g52a553d.d20231127'
__version_tuple__ = version_tuple = (0, 0, 1, 'dev8', 'g52a553d.d20231127')

0
src/bsv/cli.py → src/bsv.bak/cli.py

0
src/bsv/command/__init__.py → src/bsv.bak/command/__init__.py

0
src/bsv/command/info.py → src/bsv.bak/command/info.py

0
src/bsv/command/init.py → src/bsv.bak/command/init.py

0
src/bsv/exception.py → src/bsv.bak/exception.py

0
src/bsv/main.py → src/bsv.bak/main.py

0
src/bsv/object.py → src/bsv.bak/object.py

0
src/bsv/path_map.py → src/bsv.bak/path_map.py

0
src/bsv/repository.py → src/bsv.bak/repository.py

0
src/bsv/simple_cas/__init__.py → src/bsv.bak/simple_cas/__init__.py

0
src/bsv/simple_cas/cas.py → src/bsv.bak/simple_cas/cas.py

0
src/bsv/tree_walker.py → src/bsv.bak/tree_walker.py

0
src/bsv/util.py → src/bsv.bak/util.py

8
src/bsv/__init__.py

@ -1,5 +1,5 @@
# bsv - Backup, Synchronization, Versioning
# Copyright (C) 2023 Simon Boyé
# pybsv
# Copyright (C) 2025 Simon Boyé
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@ -13,6 +13,4 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from __future__ import annotations
from bsv._version import __version__, __version_tuple__
"""pybsv - A Backup, Synchronization and Versioning tool."""

0
tests/test_repository.py → tests.bak/test_repository.py

0
tests/test_simple_cas.py → tests.bak/test_simple_cas.py

Loading…
Cancel
Save