dtoolcore 3.18.2__tar.gz → 3.19.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. dtoolcore-3.19.0/.github/dependabot.yml +17 -0
  2. dtoolcore-3.19.0/.github/workflows/publish.yml +52 -0
  3. dtoolcore-3.19.0/.github/workflows/test.yml +47 -0
  4. dtoolcore-3.19.0/.gitignore +16 -0
  5. dtoolcore-3.19.0/.travis.yml +10 -0
  6. dtoolcore-3.19.0/CHANGELOG.rst +773 -0
  7. dtoolcore-3.19.0/PKG-INFO +80 -0
  8. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/README.rst +12 -8
  9. dtoolcore-3.19.0/appveyor.yml +14 -0
  10. dtoolcore-3.19.0/docs/.gitignore +1 -0
  11. dtoolcore-3.19.0/docs/Makefile +20 -0
  12. dtoolcore-3.19.0/docs/make.bat +36 -0
  13. dtoolcore-3.19.0/docs/source/CHANGELOG.rst +1 -0
  14. dtoolcore-3.19.0/docs/source/LICENSE.rst +1 -0
  15. dtoolcore-3.19.0/docs/source/README.rst +1 -0
  16. dtoolcore-3.19.0/docs/source/api/compare.rst +5 -0
  17. dtoolcore-3.19.0/docs/source/api/dtoolcore.rst +6 -0
  18. dtoolcore-3.19.0/docs/source/api/filehasher.rst +5 -0
  19. dtoolcore-3.19.0/docs/source/api/storagebroker.rst +5 -0
  20. dtoolcore-3.19.0/docs/source/api/utils.rst +5 -0
  21. dtoolcore-3.19.0/docs/source/api.rst +11 -0
  22. dtoolcore-3.19.0/docs/source/conf.py +167 -0
  23. dtoolcore-3.19.0/docs/source/descriptive.rst +348 -0
  24. dtoolcore-3.19.0/docs/source/index.rst +14 -0
  25. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/dtoolcore/__init__.py +52 -5
  26. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/dtoolcore/storagebroker.py +12 -0
  27. dtoolcore-3.19.0/dtoolcore/version.py +16 -0
  28. dtoolcore-3.19.0/dtoolcore.egg-info/PKG-INFO +80 -0
  29. dtoolcore-3.19.0/dtoolcore.egg-info/SOURCES.txt +72 -0
  30. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/dtoolcore.egg-info/entry_points.txt +0 -1
  31. dtoolcore-3.19.0/dtoolcore.egg-info/requires.txt +10 -0
  32. dtoolcore-3.19.0/icons/22x22/dtool_logo.png +0 -0
  33. dtoolcore-3.19.0/pyproject.toml +41 -0
  34. dtoolcore-3.19.0/requirements.txt +1 -0
  35. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/setup.cfg +14 -14
  36. dtoolcore-3.19.0/tests/__init__.py +78 -0
  37. dtoolcore-3.19.0/tests/data/actually_a_png.txt +0 -0
  38. dtoolcore-3.19.0/tests/data/actually_a_text_file.jpg +1 -0
  39. dtoolcore-3.19.0/tests/data/another_file.txt +1 -0
  40. dtoolcore-3.19.0/tests/data/empty_file +0 -0
  41. dtoolcore-3.19.0/tests/data/random_bytes +0 -0
  42. dtoolcore-3.19.0/tests/data/real_text_file.txt +1 -0
  43. dtoolcore-3.19.0/tests/data/tiny.png +0 -0
  44. dtoolcore-3.19.0/tests/test_BaseDataSet_uri_property.py +30 -0
  45. dtoolcore-3.19.0/tests/test_DiskStorageBroker.py +439 -0
  46. dtoolcore-3.19.0/tests/test_abspath_uri.py +79 -0
  47. dtoolcore-3.19.0/tests/test_annotation_functional.py +113 -0
  48. dtoolcore-3.19.0/tests/test_compare_module.py +138 -0
  49. dtoolcore-3.19.0/tests/test_copy_dataset.py +218 -0
  50. dtoolcore-3.19.0/tests/test_create_dataset_helpers_functional.py +330 -0
  51. dtoolcore-3.19.0/tests/test_creation_and_reading_functional.py +291 -0
  52. dtoolcore-3.19.0/tests/test_dtool_list_overlays_when_dir_missing.py +50 -0
  53. dtoolcore-3.19.0/tests/test_dtoolcore_package.py +6 -0
  54. dtoolcore-3.19.0/tests/test_filehasher_api.py +48 -0
  55. dtoolcore-3.19.0/tests/test_frozen_at_when_copying_dataset.py +29 -0
  56. dtoolcore-3.19.0/tests/test_generate_admin_metadata.py +35 -0
  57. dtoolcore-3.19.0/tests/test_iter_datasets_in_base_uri.py +33 -0
  58. dtoolcore-3.19.0/tests/test_overlays_functional.py +83 -0
  59. dtoolcore-3.19.0/tests/test_self_description.py +78 -0
  60. dtoolcore-3.19.0/tests/test_tags_functional.py +45 -0
  61. dtoolcore-3.19.0/tests/test_timestamp.py +41 -0
  62. dtoolcore-3.19.0/tests/test_update_dataset_name.py +84 -0
  63. dtoolcore-3.19.0/tests/test_uri_property_when_using_relpath.py +50 -0
  64. dtoolcore-3.19.0/tests/test_uri_sanitisation.py +65 -0
  65. dtoolcore-3.19.0/tests/test_utils_module.py +243 -0
  66. dtoolcore-3.19.0/tox.ini +16 -0
  67. dtoolcore-3.18.2/PKG-INFO +0 -68
  68. dtoolcore-3.18.2/dtoolcore.egg-info/PKG-INFO +0 -68
  69. dtoolcore-3.18.2/dtoolcore.egg-info/SOURCES.txt +0 -15
  70. dtoolcore-3.18.2/setup.py +0 -26
  71. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/LICENSE.rst +0 -0
  72. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/MANIFEST.in +0 -0
  73. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/dtoolcore/compare.py +0 -0
  74. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/dtoolcore/filehasher.py +0 -0
  75. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/dtoolcore/utils.py +0 -0
  76. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/dtoolcore.egg-info/dependency_links.txt +0 -0
  77. {dtoolcore-3.18.2 → dtoolcore-3.19.0}/dtoolcore.egg-info/top_level.txt +0 -0
@@ -0,0 +1,17 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ # Maintain dependencies for GitHub Actions
9
+ - package-ecosystem: "github-actions"
10
+ directory: "/"
11
+ schedule:
12
+ interval: "daily"
13
+
14
+ - package-ecosystem: "pip"
15
+ directory: "/"
16
+ schedule:
17
+ interval: "daily"
@@ -0,0 +1,52 @@
1
+ name: publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ tags:
9
+ - '*'
10
+
11
+ jobs:
12
+ build:
13
+
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0
20
+
21
+ - name: Set up Python 3.12
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: 3.12
25
+
26
+ - name: Install requirements
27
+ run: |
28
+ pip install --upgrade build
29
+ pip install --upgrade setuptools wheel setuptools-scm[toml]
30
+ pip list
31
+
32
+ - name: Package distribution
33
+ run: |
34
+ python -m build
35
+
36
+ - name: Publish distribution to Test PyPI
37
+ uses: pypa/gh-action-pypi-publish@release/v1
38
+ continue-on-error: true
39
+ with:
40
+ user: __token__
41
+ password: ${{ secrets.test_pypi_password }}
42
+ repository-url: https://test.pypi.org/legacy/
43
+ verbose: true
44
+ skip-existing: true
45
+
46
+ - name: Publish distribution to PyPI
47
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
48
+ uses: pypa/gh-action-pypi-publish@release/v1
49
+ with:
50
+ user: __token__
51
+ password: ${{ secrets.pypi_password }}
52
+ verbose: true
@@ -0,0 +1,47 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ tags:
9
+ - '*'
10
+ pull_request:
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
+
16
+ strategy:
17
+ matrix:
18
+ python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
19
+
20
+ steps:
21
+ - name: Git checkout
22
+ uses: actions/checkout@v4
23
+
24
+ - name: Set up python3 ${{ matrix.python-version }}
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install requirements
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ pip install --upgrade setuptools wheel setuptools-scm[toml] importlib-metadata
33
+ pip install flake8 pytest pytest-cov pytz
34
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
35
+ pip install .
36
+ pip list
37
+
38
+ - name: Test with pytest
39
+ run: |
40
+ pytest -sv
41
+
42
+ - name: Lint with flake8
43
+ run: |
44
+ # stop the build if there are Python syntax errors or undefined names
45
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
46
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
47
+ flake8 . --count --exit-zero --max-complexity=12 --max-line-length=127 --statistics
@@ -0,0 +1,16 @@
1
+ *.pyc
2
+ *.swp
3
+ *.swo
4
+ *.egg-info
5
+ .DS_Store
6
+
7
+ .coverage
8
+ .eggs
9
+ .tox
10
+ .cache
11
+ .pytest_cache
12
+ .vscode
13
+
14
+ env/
15
+ dist/
16
+ dtoolcore/version.py
@@ -0,0 +1,10 @@
1
+ language: python
2
+ python:
3
+ - "2.7"
4
+ - "3.5"
5
+ install: pip install tox-travis flake8 codecov
6
+ script:
7
+ - tox
8
+ - flake8
9
+ after_success:
10
+ - codecov