dtool-http 0.5.1__tar.gz → 0.5.2__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. dtool_http-0.5.2/.github/dependabot.yml +17 -0
  2. dtool_http-0.5.2/.github/workflows/publish.yml +140 -0
  3. dtool_http-0.5.2/.github/workflows/test.yml +47 -0
  4. dtool_http-0.5.2/.gitignore +16 -0
  5. dtool_http-0.5.2/.travis.yml +9 -0
  6. dtool_http-0.5.2/CHANGELOG.rst +125 -0
  7. dtool_http-0.5.2/PKG-INFO +128 -0
  8. {dtool-http-0.5.1 → dtool_http-0.5.2}/README.rst +13 -11
  9. dtool_http-0.5.2/dtool_http/__init__.py +16 -0
  10. {dtool-http-0.5.1 → dtool_http-0.5.2}/dtool_http/storagebroker.py +16 -10
  11. dtool_http-0.5.2/dtool_http/version.py +21 -0
  12. dtool_http-0.5.2/dtool_http.egg-info/PKG-INFO +128 -0
  13. dtool_http-0.5.2/dtool_http.egg-info/SOURCES.txt +36 -0
  14. {dtool-http-0.5.1 → dtool_http-0.5.2}/dtool_http.egg-info/entry_points.txt +1 -2
  15. dtool_http-0.5.2/dtool_http.egg-info/requires.txt +7 -0
  16. dtool_http-0.5.2/icons/22x22/dtool_logo.png +0 -0
  17. dtool_http-0.5.2/pyproject.toml +45 -0
  18. dtool_http-0.5.2/requirements.txt +1 -0
  19. dtool_http-0.5.2/scripts/share_data.py +142 -0
  20. {dtool-http-0.5.1 → dtool_http-0.5.2}/setup.cfg +14 -14
  21. dtool_http-0.5.2/tests/__init__.py +107 -0
  22. dtool_http-0.5.2/tests/data/actually_a_png.txt +0 -0
  23. dtool_http-0.5.2/tests/data/actually_a_text_file.jpg +1 -0
  24. dtool_http-0.5.2/tests/data/another_file.txt +1 -0
  25. dtool_http-0.5.2/tests/data/empty_file +0 -0
  26. dtool_http-0.5.2/tests/data/random_bytes +0 -0
  27. dtool_http-0.5.2/tests/data/real_text_file.txt +1 -0
  28. dtool_http-0.5.2/tests/data/tiny.png +0 -0
  29. dtool_http-0.5.2/tests/test_dtool_http_server.py +43 -0
  30. dtool_http-0.5.2/tests/test_publish.py +18 -0
  31. dtool_http-0.5.2/tox.ini +16 -0
  32. dtool-http-0.5.1/PKG-INFO +0 -119
  33. dtool-http-0.5.1/dtool_http/__init__.py +0 -7
  34. dtool-http-0.5.1/dtool_http.egg-info/PKG-INFO +0 -119
  35. dtool-http-0.5.1/dtool_http.egg-info/SOURCES.txt +0 -15
  36. dtool-http-0.5.1/dtool_http.egg-info/requires.txt +0 -2
  37. dtool-http-0.5.1/setup.py +0 -36
  38. {dtool-http-0.5.1 → dtool_http-0.5.2}/LICENSE.rst +0 -0
  39. {dtool-http-0.5.1 → dtool_http-0.5.2}/MANIFEST.in +0 -0
  40. {dtool-http-0.5.1 → dtool_http-0.5.2}/dtool_http/publish.py +0 -0
  41. {dtool-http-0.5.1 → dtool_http-0.5.2}/dtool_http/server.py +0 -0
  42. {dtool-http-0.5.1 → dtool_http-0.5.2}/dtool_http.egg-info/dependency_links.txt +0 -0
  43. {dtool-http-0.5.1 → dtool_http-0.5.2}/dtool_http.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,140 @@
1
+ name: publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ tags:
9
+ - '*'
10
+
11
+ jobs:
12
+
13
+ build:
14
+ name: Build
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ with:
20
+ fetch-depth: 0
21
+
22
+ - name: Set up Python 3.12
23
+ uses: actions/setup-python@v5
24
+ with:
25
+ python-version: 3.12
26
+
27
+ - name: Install requirements
28
+ run: |
29
+ pip install --upgrade build
30
+ pip install --upgrade setuptools wheel setuptools-scm[toml]
31
+ pip list
32
+
33
+ - name: Package distribution
34
+ run: |
35
+ python -m build
36
+
37
+ - name: Upload artifact
38
+ uses: actions/upload-artifact@v4
39
+ with:
40
+ name: python-package-distributions
41
+ path: dist/
42
+
43
+
44
+ publish-to-testpypi:
45
+ name: Publish to TestPyPI
46
+ needs:
47
+ - build
48
+ runs-on: ubuntu-latest
49
+
50
+ environment:
51
+ name: testpypi
52
+ url: https://test.pypi.org/p/dtool-http
53
+
54
+ permissions:
55
+ id-token: write # IMPORTANT: mandatory for trusted publishing
56
+
57
+ steps:
58
+ - name: Download all the dists
59
+ uses: actions/download-artifact@v4
60
+ with:
61
+ name: python-package-distributions
62
+ path: dist/
63
+
64
+ - name: Publish distribution 📦 to TestPyPI
65
+ uses: pypa/gh-action-pypi-publish@release/v1
66
+ with:
67
+ repository-url: https://test.pypi.org/legacy/
68
+ verbose: true
69
+ skip-existing: true
70
+
71
+
72
+ publish-to-pypi:
73
+ name: Publish to PyPI
74
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
75
+ needs:
76
+ - build
77
+ runs-on: ubuntu-latest
78
+ environment:
79
+ name: pypi
80
+ url: https://pypi.org/p/dtool-http # Replace <package-name> with your PyPI project name
81
+ permissions:
82
+ id-token: write # IMPORTANT: mandatory for trusted publishing
83
+
84
+ steps:
85
+ - name: Download artifact
86
+ uses: actions/download-artifact@v4
87
+ with:
88
+ name: python-package-distributions
89
+ path: dist/
90
+
91
+ - name: Publish distribution to PyPI
92
+ uses: pypa/gh-action-pypi-publish@release/v1
93
+ with:
94
+ verbose: true
95
+
96
+
97
+ github-release:
98
+ name: >-
99
+ Make github release
100
+ needs:
101
+ - publish-to-pypi
102
+ runs-on: ubuntu-latest
103
+
104
+ permissions:
105
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
106
+ id-token: write # IMPORTANT: mandatory for sigstore
107
+
108
+ steps:
109
+ - name: Download artifact
110
+ uses: actions/download-artifact@v4
111
+ with:
112
+ name: python-package-distributions
113
+ path: dist/
114
+
115
+ - name: Sign with Sigstore
116
+ uses: sigstore/gh-action-sigstore-python@v3.0.0
117
+ with:
118
+ inputs: >-
119
+ ./dist/*.tar.gz
120
+ ./dist/*.whl
121
+
122
+ - name: Create GitHub Release
123
+ env:
124
+ GITHUB_TOKEN: ${{ github.token }}
125
+ run: >-
126
+ gh release create
127
+ '${{ github.ref_name }}'
128
+ --repo '${{ github.repository }}'
129
+ --notes ""
130
+
131
+ - name: Upload artifact signatures to GitHub Release
132
+ env:
133
+ GITHUB_TOKEN: ${{ github.token }}
134
+ # Upload to GitHub Release using the `gh` CLI.
135
+ # `dist/` contains the built packages, and the
136
+ # sigstore-produced signatures and certificates.
137
+ run: >-
138
+ gh release upload
139
+ '${{ github.ref_name }}' dist/**
140
+ --repo '${{ github.repository }}'
@@ -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.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
+ .DS_Store
2
+ data
3
+ uris.txt
4
+
5
+ *.pyc
6
+ *.pyc
7
+ *.swp
8
+ *.egg-info
9
+
10
+ .pytest_cache
11
+ .cache
12
+ .coverage
13
+ .eggs
14
+ .tox
15
+
16
+ dist
@@ -0,0 +1,9 @@
1
+ language: python
2
+ python:
3
+ - "3.5"
4
+ install: pip install tox-travis flake8 codecov
5
+ script:
6
+ - tox
7
+ - flake8
8
+ after_success:
9
+ - codecov
@@ -0,0 +1,125 @@
1
+ CHANGELOG
2
+ =========
3
+
4
+ This project uses `semantic versioning <http://semver.org/>`_.
5
+ This change log uses principles from `keep a changelog <http://keepachangelog.com/>`_.
6
+
7
+ [Unreleased]
8
+ ------------
9
+
10
+ Added
11
+ ^^^^^
12
+
13
+
14
+ Changed
15
+ ^^^^^^^
16
+
17
+
18
+ Deprecated
19
+ ^^^^^^^^^^
20
+
21
+
22
+ Removed
23
+ ^^^^^^^
24
+
25
+
26
+ Fixed
27
+ ^^^^^
28
+
29
+
30
+ Security
31
+ ^^^^^^^^
32
+
33
+ [0.5.2] - 2025-03-31
34
+ --------------------
35
+
36
+ Added
37
+ ^^^^^
38
+
39
+ - GitHub CI test and publication workflows
40
+ - Dynamic versioning
41
+
42
+ Changed
43
+ ^^^^^^^
44
+
45
+ - Transitoned from ``setup.py`` to ``pyporject.toml``
46
+
47
+ Fixed
48
+ ^^^^^
49
+
50
+ - Generation of HTTP manifest URLs for base uris with signatures
51
+
52
+
53
+ [0.5.1] - 2021-06-23
54
+ --------------------
55
+
56
+ Fixed
57
+ ^^^^^
58
+
59
+ - Licence file now included in release thanks to Jan Janssen (https://github.com/jan-janssen)
60
+
61
+
62
+ [0.5.0] - 2020-03-19
63
+ --------------------
64
+
65
+ This code was lost in a local branch, but was reimplemented and added to GitHub on 2021-06-21.
66
+
67
+ Added
68
+ ^^^^^
69
+
70
+ - Added support for dataset tags
71
+
72
+
73
+ [0.4.0] - 2019-10-31
74
+ --------------------
75
+
76
+ Added
77
+ ^^^^^
78
+
79
+ - Added support for dataset annotations
80
+
81
+
82
+ [0.3.0] - 2019-04-25
83
+ --------------------
84
+
85
+ Changed
86
+ ^^^^^^^
87
+
88
+ - Cache environment variable changed from DTOOL_HTTP_CACHE_DIRECTORY to
89
+ DTOOL_CACHE_DIRECTORY
90
+ - Default cache directory changed from ``~/.cache/dtool/http`` to
91
+ ``~/.cache/dtool``
92
+
93
+
94
+ [0.2.1] - 2019-03-29
95
+ --------------------
96
+
97
+ Added
98
+ ^^^^^
99
+
100
+ - Added MIT licence file
101
+
102
+
103
+ [0.2.0] - 2018-07-09
104
+ --------------------
105
+
106
+ Added
107
+ ^^^^^
108
+
109
+ - Added ability to deal with redirects to enable working with shortened URLs
110
+
111
+ Fixed
112
+ ^^^^^
113
+
114
+ - Made download to DTOOL_HTTP_CACHE_DIRECTORY more robust
115
+
116
+
117
+ [0.1.0] - 2018-07-05
118
+ --------------------
119
+
120
+ Initial release:
121
+
122
+ - HTTPStorageBackend
123
+ - HTTPSStorageBackend
124
+ - dtool_publish_dataset command line utility
125
+ - dtool_serve_dataset command line utility
@@ -0,0 +1,128 @@
1
+ Metadata-Version: 2.4
2
+ Name: dtool-http
3
+ Version: 0.5.2
4
+ Summary: Add HTTP read only dataset support to dtool
5
+ Author-email: Tjelvar Olsson <tjelvar.olsson@gmail.com>
6
+ Project-URL: Documentation, https://github.com/jic-dtool/dtool-http/blob/master/README.rst
7
+ Project-URL: Repository, https://github.com/jic-dtool/dtool-http
8
+ Project-URL: Changelog, https://github.com/jic-dtool/dtool-http/blob/master/CHANGELOG.rst
9
+ Description-Content-Type: text/x-rst
10
+ License-File: LICENSE.rst
11
+ Requires-Dist: dtoolcore>=3.13
12
+ Requires-Dist: requests
13
+ Provides-Extra: test
14
+ Requires-Dist: pytest; extra == "test"
15
+ Requires-Dist: pytest-cov; extra == "test"
16
+ Requires-Dist: pytz; extra == "test"
17
+ Dynamic: license-file
18
+
19
+ Add HTTP support to dtool for read only access to datasets
20
+ ==========================================================
21
+
22
+ .. |dtool| image:: https://github.com/jic-dtool/dtool-http/blob/master/icons/22x22/dtool_logo.png?raw=True
23
+ :height: 20px
24
+ :target: https://github.com/jic-dtool/dtool-http
25
+ .. |pypi| image:: https://img.shields.io/pypi/v/dtool-http
26
+ :target: https://pypi.org/project/dtool-http/
27
+ .. |tag| image:: https://img.shields.io/github/v/tag/jic-dtool/dtool-http
28
+ :target: https://github.com/jic-dtool/dtool-http/tags
29
+ .. |test| image:: https://img.shields.io/github/actions/workflow/status/jic-dtool/dtool-http/test.yml?branch=master&label=tests
30
+ :target: https://github.com/jic-dtool/dtool-http/actions/workflows/test.yml
31
+ .. |coverage| image:: https://codecov.io/github/jic-dtool/dtool-http/coverage.svg?branch=master
32
+ :target: https://codecov.io/github/jic-dtool/dtool-http?branch=master
33
+
34
+ |dtool| |pypi| |tag| |test| |coverage|
35
+
36
+ - GitHub: https://github.com/jic-dtool/dtool-http
37
+ - Free software: MIT License
38
+
39
+
40
+ Features
41
+ --------
42
+
43
+ - Publish dtool datasets by making them accessible via HTTP(S)
44
+ - Interact with dtool datasets over HTTP(S)
45
+ - Copy a dataset over HTTP(S)
46
+
47
+
48
+ Installation
49
+ ------------
50
+
51
+ To install the dtool-http package.
52
+
53
+ .. code-block:: bash
54
+
55
+ cd dtool-http
56
+ python setup.py install
57
+
58
+
59
+ Usage
60
+ -----
61
+
62
+ To publish a dataset hosted in Amazon S3 or Microsoft Azure Storage use the
63
+ ``dtool_publish_dataset`` command line utility::
64
+
65
+ $ dtool_publish_dataset azure://jicinformatics/c58038a4-3a54-425e-9087-144d0733387f
66
+ Dataset accessible at: https://jicinformatics.blob.core.windows.net/c58038a4-3a54-425e-9087-144d0733387f
67
+
68
+
69
+ To show the descriptive metadata of the published dataset::
70
+
71
+ $ dtool readme show https://jicinformatics.blob.core.windows.net/c58038a4-3a54-425e-9087-144d0733387f
72
+ ---
73
+ description: Enterobacteria phage lambda, complete genome
74
+ creation_date: 2018-02-06
75
+ accession: NC_001416.1
76
+ link: https://www.ncbi.nlm.nih.gov/nuccore/NC_001416.1
77
+ reference: |
78
+ Nucleotide [Internet]. Bethesda (MD):
79
+ National Library of Medicine (US),
80
+ National Center for Biotechnology Information; [1988] - .
81
+ Accession No. NC_001416.1, Enterobacteria phage lambda, complete genome
82
+ [cited 2018 Feb 06]
83
+ Available from: https://www.ncbi.nlm.nih.gov/nuccore/NC_001416.1
84
+
85
+
86
+ To copy the dataset to local disk::
87
+
88
+ $ dtool copy https://jicinformatics.blob.core.windows.net/c58038a4-3a54-425e-9087-144d0733387f ~/my_datasets
89
+ Dataset copied to:
90
+ file:///Users/olssont/my_datasets/lamda-phage-genome
91
+
92
+
93
+ Serving a directory of datasets over HTTP
94
+ -----------------------------------------
95
+
96
+ There is a simple utility for serving datasets in a directory over HTTP called
97
+ ``dtool_serve_direcotry``. This is mainly useful for testing purposes.
98
+
99
+ Usage::
100
+
101
+ $ dtool_serve_directory ~/my_datasets
102
+
103
+ The default port used is 8081. To show the descriptive metadata in the README
104
+ one can use dtool::
105
+
106
+ $ dtool readme show http://localhost:8081/lamda-phage-genome
107
+ ---
108
+ description: Enterobacteria phage lambda, complete genome
109
+ creation_date: 2018-02-06
110
+ accession: NC_001416.1
111
+ link: https://www.ncbi.nlm.nih.gov/nuccore/NC_001416.1
112
+ reference: |
113
+ Nucleotide [Internet]. Bethesda (MD):
114
+ National Library of Medicine (US),
115
+ National Center for Biotechnology Information; [1988] - .
116
+ Accession No. NC_001416.1, Enterobacteria phage lambda, complete genome
117
+ [cited 2018 Feb 06]
118
+ Available from: https://www.ncbi.nlm.nih.gov/nuccore/NC_001416.1
119
+
120
+
121
+ Related packages
122
+ ----------------
123
+
124
+ - `dtoolcore <https://github.com/jic-dtool/dtoolcore>`_
125
+ - `dtool-cli <https://github.com/jic-dtool/dtool-cli>`_
126
+ - `dtool-info <https://github.com/jic-dtool/dtool-info>`_
127
+ - `dtool-s3 <https://github.com/jic-dtool/dtool-s3>`_
128
+ - `dtool-azure <https://github.com/jic-dtool/dtool-azure>`_
@@ -1,17 +1,19 @@
1
1
  Add HTTP support to dtool for read only access to datasets
2
2
  ==========================================================
3
3
 
4
- .. image:: https://badge.fury.io/py/dtool-http.svg
5
- :target: http://badge.fury.io/py/dtool-http
6
- :alt: PyPi package
7
-
8
- .. image:: https://travis-ci.org/jic-dtool/dtool-http.svg?branch=master
9
- :target: https://travis-ci.org/jic-dtool/dtool-http
10
- :alt: Travis CI build status (Linux)
11
-
12
- .. image:: https://codecov.io/github/jic-dtool/dtool-http/coverage.svg?branch=master
13
- :target: https://codecov.io/github/jic-dtool/dtool-http?branch=master
14
- :alt: Code Coverage
4
+ .. |dtool| image:: https://github.com/jic-dtool/dtool-http/blob/master/icons/22x22/dtool_logo.png?raw=True
5
+ :height: 20px
6
+ :target: https://github.com/jic-dtool/dtool-http
7
+ .. |pypi| image:: https://img.shields.io/pypi/v/dtool-http
8
+ :target: https://pypi.org/project/dtool-http/
9
+ .. |tag| image:: https://img.shields.io/github/v/tag/jic-dtool/dtool-http
10
+ :target: https://github.com/jic-dtool/dtool-http/tags
11
+ .. |test| image:: https://img.shields.io/github/actions/workflow/status/jic-dtool/dtool-http/test.yml?branch=master&label=tests
12
+ :target: https://github.com/jic-dtool/dtool-http/actions/workflows/test.yml
13
+ .. |coverage| image:: https://codecov.io/github/jic-dtool/dtool-http/coverage.svg?branch=master
14
+ :target: https://codecov.io/github/jic-dtool/dtool-http?branch=master
15
+
16
+ |dtool| |pypi| |tag| |test| |coverage|
15
17
 
16
18
  - GitHub: https://github.com/jic-dtool/dtool-http
17
19
  - Free software: MIT License
@@ -0,0 +1,16 @@
1
+ """dtool_http package."""
2
+
3
+ import logging
4
+
5
+ try:
6
+ from importlib.metadata import version, PackageNotFoundError
7
+ except ModuleNotFoundError:
8
+ from importlib_metadata import version, PackageNotFoundError
9
+
10
+ try:
11
+ __version__ = version(__name__)
12
+ except PackageNotFoundError:
13
+ # package is not installed
14
+ pass
15
+
16
+ logger = logging.getLogger(__name__)
@@ -31,15 +31,22 @@ class HTTPStorageBroker(object):
31
31
 
32
32
  def __init__(self, uri, admin_metadata, config_path=None):
33
33
 
34
- scheme, netloc, path, _, _, _ = generous_parse_uri(uri)
34
+ parse_result = generous_parse_uri(uri)
35
35
 
36
- self._uri = self._get_base_uri(uri)
36
+ # Get potential query signature for Azure/S3
37
+ self._signature = parse_result.query
37
38
 
38
- self.scheme = scheme
39
- self.netloc = netloc
40
- self.uuid = path[1:]
39
+ # Base URI may be redirected to a different location
40
+ self._uri = self._get_base_uri(parse_result)
41
+ parse_result = generous_parse_uri(self._uri)
41
42
 
42
- http_manifest_url = self._uri + '/' + HTTP_MANIFEST_KEY
43
+ self.scheme = parse_result.scheme
44
+ self.netloc = parse_result.netloc
45
+ self.uuid = parse_result.path[1:]
46
+
47
+ http_manifest_url = parse_result._replace(
48
+ path=parse_result.path + '/' + HTTP_MANIFEST_KEY,
49
+ query=self._signature).geturl()
43
50
 
44
51
  self.http_manifest = self._get_json_from_url(
45
52
  http_manifest_url
@@ -53,11 +60,10 @@ class HTTPStorageBroker(object):
53
60
 
54
61
  # Helper functions
55
62
 
56
- def _get_base_uri(self, url):
57
- r = requests.get(url)
63
+ def _get_base_uri(self, parse_result):
64
+ r = requests.get(parse_result._replace(query="").geturl())
58
65
  if r.status_code != 301:
59
- logger.info("Dataset moved, redirecting to: {}".format(
60
- r.url))
66
+ logger.info("Dataset moved, redirecting to: {}".format(r.url))
61
67
  return r.url
62
68
 
63
69
  def _get_request(self, url, stream=False):
@@ -0,0 +1,21 @@
1
+ # file generated by setuptools-scm
2
+ # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
6
+ TYPE_CHECKING = False
7
+ if TYPE_CHECKING:
8
+ from typing import Tuple
9
+ from typing import Union
10
+
11
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
12
+ else:
13
+ VERSION_TUPLE = object
14
+
15
+ version: str
16
+ __version__: str
17
+ __version_tuple__: VERSION_TUPLE
18
+ version_tuple: VERSION_TUPLE
19
+
20
+ __version__ = version = '0.5.2'
21
+ __version_tuple__ = version_tuple = (0, 5, 2)