dsff 1.0.6__tar.gz → 1.2.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 (43) hide show
  1. dsff-1.2.0/.coveragerc +14 -0
  2. {dsff-1.0.6 → dsff-1.2.0}/.github/workflows/python-package.yml +109 -109
  3. {dsff-1.0.6 → dsff-1.2.0}/.gitignore +134 -134
  4. {dsff-1.0.6 → dsff-1.2.0}/.readthedocs.yml +5 -0
  5. {dsff-1.0.6 → dsff-1.2.0}/LICENSE +674 -674
  6. {dsff-1.0.6 → dsff-1.2.0}/PKG-INFO +9 -8
  7. {dsff-1.0.6 → dsff-1.2.0}/README.md +55 -54
  8. dsff-1.2.0/docs/coverage.svg +1 -0
  9. {dsff-1.0.6 → dsff-1.2.0}/docs/mkdocs.yml +46 -44
  10. dsff-1.2.0/docs/pages/imgs/logo.png +0 -0
  11. {dsff-1.0.6 → dsff-1.2.0}/docs/pages/index.md +38 -32
  12. {dsff-1.0.6 → dsff-1.2.0}/docs/pages/usage.md +108 -76
  13. {dsff-1.0.6 → dsff-1.2.0}/pyproject.toml +6 -5
  14. dsff-1.2.0/pytest.ini +2 -0
  15. {dsff-1.0.6 → dsff-1.2.0}/requirements.txt +1 -0
  16. dsff-1.2.0/src/dsff/VERSION.txt +1 -0
  17. {dsff-1.0.6 → dsff-1.2.0}/src/dsff/__info__.py +7 -2
  18. dsff-1.2.0/src/dsff/__init__.py +8 -0
  19. dsff-1.2.0/src/dsff/formats/__common__.py +33 -0
  20. {dsff-1.0.6/src/dsff → dsff-1.2.0/src/dsff/formats}/__init__.py +72 -22
  21. {dsff-1.0.6/src/dsff → dsff-1.2.0/src/dsff/formats}/arff.py +51 -55
  22. {dsff-1.0.6/src/dsff → dsff-1.2.0/src/dsff/formats}/csv.py +5 -11
  23. {dsff-1.0.6/src/dsff → dsff-1.2.0/src/dsff/formats}/dataset.py +4 -12
  24. dsff-1.2.0/src/dsff/formats/db.py +76 -0
  25. dsff-1.2.0/src/dsff/formats/pa.py +29 -0
  26. {dsff-1.0.6 → dsff-1.2.0}/src/dsff.egg-info/PKG-INFO +9 -8
  27. {dsff-1.0.6 → dsff-1.2.0}/src/dsff.egg-info/SOURCES.txt +9 -4
  28. dsff-1.2.0/src/dsff.egg-info/requires.txt +4 -0
  29. {dsff-1.0.6 → dsff-1.2.0}/tests/test_dsff.py +201 -167
  30. {dsff-1.0.6 → dsff-1.2.0}/tests/utils.py +11 -5
  31. dsff-1.0.6/docs/coverage.svg +0 -1
  32. dsff-1.0.6/docs/pages/imgs/logo.png +0 -0
  33. dsff-1.0.6/src/dsff/VERSION.txt +0 -1
  34. dsff-1.0.6/src/dsff/__common__.py +0 -20
  35. dsff-1.0.6/src/dsff.egg-info/requires.txt +0 -1
  36. {dsff-1.0.6 → dsff-1.2.0}/docs/pages/imgs/dsff-from.png +0 -0
  37. {dsff-1.0.6 → dsff-1.2.0}/docs/pages/imgs/dsff-to.png +0 -0
  38. {dsff-1.0.6 → dsff-1.2.0}/docs/pages/imgs/icon.png +0 -0
  39. {dsff-1.0.6 → dsff-1.2.0}/docs/requirements.txt +0 -0
  40. {dsff-1.0.6 → dsff-1.2.0}/setup.cfg +0 -0
  41. {dsff-1.0.6 → dsff-1.2.0}/src/dsff.egg-info/dependency_links.txt +0 -0
  42. {dsff-1.0.6 → dsff-1.2.0}/src/dsff.egg-info/top_level.txt +0 -0
  43. {dsff-1.0.6 → dsff-1.2.0}/tests/__init__.py +0 -0
dsff-1.2.0/.coveragerc ADDED
@@ -0,0 +1,14 @@
1
+ [run]
2
+ cover_pylib = false
3
+ source = dsff
4
+ omit =
5
+ */site-packages/*
6
+ tests/*
7
+
8
+ [report]
9
+ exclude_lines =
10
+ pragma: no cover
11
+ if\s+__name__\s+==\s+(?P<q>(?:[\'\"]))__main__(?P=q)\s+:
12
+ raise NotImplementedError
13
+ except NotImplementedError:
14
+
@@ -1,109 +1,109 @@
1
- # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
-
4
- name: build
5
-
6
- env:
7
- package: dsff
8
-
9
- on:
10
- push:
11
- branches: [ "main" ]
12
- pull_request:
13
- branches: [ "main" ]
14
-
15
- jobs:
16
- build:
17
- runs-on: ${{ matrix.os }}
18
- strategy:
19
- fail-fast: false
20
- matrix:
21
- os: [ubuntu-latest]
22
- python-version: ["3.8", "3.9", "3.10", "3.11"]
23
- steps:
24
- - uses: actions/checkout@v3
25
- - name: Set up Python ${{ matrix.python-version }}
26
- uses: actions/setup-python@v4
27
- with:
28
- python-version: ${{ matrix.python-version }}
29
- - name: Install ${{ env.package }}
30
- run: |
31
- python -m pip install --upgrade pip
32
- python -m pip install flake8 pytest pytest-cov coverage
33
- pip install -r requirements.txt
34
- pip install .
35
- - name: Lint with flake8
36
- run: |
37
- # stop the build if there are Python syntax errors or undefined names
38
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
41
- - name: Test ${{ env.package }} with pytest
42
- run: |
43
- pytest --cov=$package
44
- coverage:
45
- needs: build
46
- runs-on: ubuntu-latest
47
- env:
48
- cov_badge_path: docs/coverage.svg
49
- steps:
50
- - uses: actions/checkout@v3
51
- - name: Install ${{ env.package }}
52
- run: |
53
- python -m pip install --upgrade pip
54
- python -m pip install pytest pytest-cov
55
- pip install -r requirements.txt
56
- pip install .
57
- - name: Make coverage badge for ${{ env.package }}
58
- run: |
59
- pip install genbadge[coverage]
60
- pytest --cov=$package --cov-report=xml
61
- genbadge coverage -i coverage.xml -o $cov_badge_path
62
- - name: Verify Changed files
63
- uses: tj-actions/verify-changed-files@v12
64
- id: changed_files
65
- with:
66
- files: ${{ env.cov_badge_path }}
67
- - name: Commit files
68
- if: steps.changed_files.outputs.files_changed == 'true'
69
- run: |
70
- git config --local user.email "github-actions[bot]@users.noreply.github.com"
71
- git config --local user.name "github-actions[bot]"
72
- git add $cov_badge_path
73
- git commit -m "Updated coverage.svg"
74
- - name: Push changes
75
- if: steps.changed_files.outputs.files_changed == 'true'
76
- uses: ad-m/github-push-action@master
77
- with:
78
- github_token: ${{ secrets.github_token }}
79
- branch: ${{ github.ref }}
80
- deploy:
81
- runs-on: ubuntu-latest
82
- needs: coverage
83
- steps:
84
- - uses: actions/checkout@v3
85
- with:
86
- fetch-depth: 0
87
- - name: Check for version change
88
- uses: dorny/paths-filter@v2
89
- id: filter
90
- with:
91
- filters: |
92
- version:
93
- - '**/VERSION.txt'
94
- - if: steps.filter.outputs.version == 'true'
95
- name: Cleanup README
96
- run: |
97
- sed -ri 's/^(##*)\s*:.*:\s*/\1 /g' README.md
98
- awk '{if (match($0,"## Supporters")) exit; print}' README.md > README
99
- mv -f README README.md
100
- - if: steps.filter.outputs.version == 'true'
101
- name: Build ${{ env.package }} package
102
- run: python3 -m pip install --upgrade build && python3 -m build
103
- - if: steps.filter.outputs.version == 'true'
104
- name: Upload ${{ env.package }} to PyPi
105
- uses: pypa/gh-action-pypi-publish@release/v1
106
- with:
107
- password: ${{ secrets.PYPI_API_TOKEN }}
108
- verbose: true
109
- verify_metadata: false
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: build
5
+
6
+ env:
7
+ package: dsff
8
+
9
+ on:
10
+ push:
11
+ branches: [ "main" ]
12
+ pull_request:
13
+ branches: [ "main" ]
14
+
15
+ jobs:
16
+ build:
17
+ runs-on: ${{ matrix.os }}
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ os: [ubuntu-latest]
22
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
23
+ steps:
24
+ - uses: actions/checkout@v3
25
+ - name: Set up Python ${{ matrix.python-version }}
26
+ uses: actions/setup-python@v4
27
+ with:
28
+ python-version: ${{ matrix.python-version }}
29
+ - name: Install ${{ env.package }}
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ python -m pip install flake8 pytest pytest-cov coverage
33
+ pip install -r requirements.txt
34
+ pip install .
35
+ - name: Lint with flake8
36
+ run: |
37
+ # stop the build if there are Python syntax errors or undefined names
38
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
41
+ - name: Test ${{ env.package }} with pytest
42
+ run: |
43
+ pytest --cov=$package
44
+ coverage:
45
+ needs: build
46
+ runs-on: ubuntu-latest
47
+ env:
48
+ cov_badge_path: docs/coverage.svg
49
+ steps:
50
+ - uses: actions/checkout@v3
51
+ - name: Install ${{ env.package }}
52
+ run: |
53
+ python -m pip install --upgrade pip
54
+ python -m pip install pytest pytest-cov
55
+ pip install -r requirements.txt
56
+ pip install .
57
+ - name: Make coverage badge for ${{ env.package }}
58
+ run: |
59
+ pip install genbadge[coverage]
60
+ pytest --cov=$package --cov-report=xml
61
+ genbadge coverage -i coverage.xml -o $cov_badge_path
62
+ - name: Verify Changed files
63
+ uses: tj-actions/verify-changed-files@v12
64
+ id: changed_files
65
+ with:
66
+ files: ${{ env.cov_badge_path }}
67
+ - name: Commit files
68
+ if: steps.changed_files.outputs.files_changed == 'true'
69
+ run: |
70
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
71
+ git config --local user.name "github-actions[bot]"
72
+ git add $cov_badge_path
73
+ git commit -m "Updated coverage.svg"
74
+ - name: Push changes
75
+ if: steps.changed_files.outputs.files_changed == 'true'
76
+ uses: ad-m/github-push-action@master
77
+ with:
78
+ github_token: ${{ secrets.github_token }}
79
+ branch: ${{ github.ref }}
80
+ deploy:
81
+ runs-on: ubuntu-latest
82
+ needs: coverage
83
+ steps:
84
+ - uses: actions/checkout@v3
85
+ with:
86
+ fetch-depth: 0
87
+ - name: Check for version change
88
+ uses: dorny/paths-filter@v2
89
+ id: filter
90
+ with:
91
+ filters: |
92
+ version:
93
+ - '**/VERSION.txt'
94
+ - if: steps.filter.outputs.version == 'true'
95
+ name: Cleanup README
96
+ run: |
97
+ sed -ri 's/^(##*)\s*:.*:\s*/\1 /g' README.md
98
+ awk '{if (match($0,"## Supporters")) exit; print}' README.md > README
99
+ mv -f README README.md
100
+ - if: steps.filter.outputs.version == 'true'
101
+ name: Build ${{ env.package }} package
102
+ run: python3 -m pip install --upgrade build && python3 -m build
103
+ - if: steps.filter.outputs.version == 'true'
104
+ name: Upload ${{ env.package }} to PyPi
105
+ uses: pypa/gh-action-pypi-publish@release/v1
106
+ with:
107
+ password: ${{ secrets.PYPI_API_TOKEN }}
108
+ verbose: true
109
+ verify_metadata: false
@@ -1,134 +1,134 @@
1
- # Byte-compiled / optimized / DLL files
2
- __pycache__/
3
- *.py[cod]
4
- *$py.class
5
-
6
- # C extensions
7
- *.so
8
-
9
- # Distribution / packaging
10
- .Python
11
- build/
12
- develop-eggs/
13
- dist/
14
- downloads/
15
- eggs/
16
- .eggs/
17
- lib/
18
- lib64/
19
- parts/
20
- sdist/
21
- var/
22
- wheels/
23
- pip-wheel-metadata/
24
- share/python-wheels/
25
- *.egg-info/
26
- .installed.cfg
27
- *.egg
28
- MANIFEST
29
-
30
- # PyInstaller
31
- # Usually these files are written by a python script from a template
32
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
- *.manifest
34
- *.spec
35
-
36
- # Installer logs
37
- pip-log.txt
38
- pip-delete-this-directory.txt
39
-
40
- # Unit test / coverage reports
41
- htmlcov/
42
- .tox/
43
- .nox/
44
- .coverage
45
- .coverage.*
46
- .cache
47
- nosetests.xml
48
- coverage.xml
49
- *.cover
50
- *.py,cover
51
- .hypothesis/
52
- .pytest_cache/
53
-
54
- # Translations
55
- *.mo
56
- *.pot
57
-
58
- # Django stuff:
59
- *.log
60
- local_settings.py
61
- db.sqlite3
62
- db.sqlite3-journal
63
-
64
- # Flask stuff:
65
- instance/
66
- .webassets-cache
67
-
68
- # Scrapy stuff:
69
- .scrapy
70
-
71
- # Sphinx documentation
72
- docs/_build/
73
-
74
- # PyBuilder
75
- target/
76
-
77
- # Jupyter Notebook
78
- .ipynb_checkpoints
79
-
80
- # IPython
81
- profile_default/
82
- ipython_config.py
83
-
84
- # pyenv
85
- .python-version
86
-
87
- # pipenv
88
- # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89
- # However, in case of collaboration, if having platform-specific dependencies or dependencies
90
- # having no cross-platform support, pipenv may install dependencies that don't work, or not
91
- # install all needed dependencies.
92
- #Pipfile.lock
93
-
94
- # PEP 582; used by e.g. github.com/David-OConnor/pyflow
95
- __pypackages__/
96
-
97
- # Celery stuff
98
- celerybeat-schedule
99
- celerybeat.pid
100
-
101
- # SageMath parsed files
102
- *.sage.py
103
-
104
- # Environments
105
- .env
106
- .venv
107
- env/
108
- venv/
109
- ENV/
110
- env.bak/
111
- venv.bak/
112
-
113
- # Spyder project settings
114
- .spyderproject
115
- .spyproject
116
-
117
- # Rope project settings
118
- .ropeproject
119
-
120
- # mkdocs documentation
121
- /site
122
-
123
- # mypy
124
- .mypy_cache/
125
- .dmypy.json
126
- dmypy.json
127
-
128
- # Pyre type checker
129
- .pyre/
130
-
131
- # dsff test files
132
- *.dsff
133
- *.arff
134
- *.csv
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # IPython
81
+ profile_default/
82
+ ipython_config.py
83
+
84
+ # pyenv
85
+ .python-version
86
+
87
+ # pipenv
88
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
90
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
91
+ # install all needed dependencies.
92
+ #Pipfile.lock
93
+
94
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
95
+ __pypackages__/
96
+
97
+ # Celery stuff
98
+ celerybeat-schedule
99
+ celerybeat.pid
100
+
101
+ # SageMath parsed files
102
+ *.sage.py
103
+
104
+ # Environments
105
+ .env
106
+ .venv
107
+ env/
108
+ venv/
109
+ ENV/
110
+ env.bak/
111
+ venv.bak/
112
+
113
+ # Spyder project settings
114
+ .spyderproject
115
+ .spyproject
116
+
117
+ # Rope project settings
118
+ .ropeproject
119
+
120
+ # mkdocs documentation
121
+ /site
122
+
123
+ # mypy
124
+ .mypy_cache/
125
+ .dmypy.json
126
+ dmypy.json
127
+
128
+ # Pyre type checker
129
+ .pyre/
130
+
131
+ # dsff test files
132
+ *.dsff
133
+ *.arff
134
+ *.csv
@@ -1,5 +1,10 @@
1
1
  version: 2
2
2
 
3
+ build:
4
+ os: "ubuntu-22.04"
5
+ tools:
6
+ python: "3.11"
7
+
3
8
  mkdocs:
4
9
  configuration: docs/mkdocs.yml
5
10