pyzotero 1.5.19__tar.gz → 1.5.24__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 (55) hide show
  1. {pyzotero-1.5.19 → pyzotero-1.5.24}/.github/workflows/tests.yml +9 -11
  2. {pyzotero-1.5.19 → pyzotero-1.5.24}/CITATION.cff +1 -1
  3. pyzotero-1.5.24/CONTRIBUTING.md +99 -0
  4. pyzotero-1.5.24/LICENSE.md +35 -0
  5. {pyzotero-1.5.19 → pyzotero-1.5.24}/PKG-INFO +6 -27
  6. {pyzotero-1.5.19 → pyzotero-1.5.24}/README.md +3 -3
  7. {pyzotero-1.5.19 → pyzotero-1.5.24}/doc/index.rst +1 -1
  8. {pyzotero-1.5.19 → pyzotero-1.5.24}/pyproject.toml +1 -1
  9. {pyzotero-1.5.19 → pyzotero-1.5.24}/src/_version.py +2 -2
  10. {pyzotero-1.5.19 → pyzotero-1.5.24}/src/pyzotero/zotero.py +4 -23
  11. {pyzotero-1.5.19 → pyzotero-1.5.24}/src/pyzotero/zotero_errors.py +0 -22
  12. {pyzotero-1.5.19 → pyzotero-1.5.24}/src/pyzotero.egg-info/PKG-INFO +6 -27
  13. {pyzotero-1.5.19 → pyzotero-1.5.24}/src/pyzotero.egg-info/SOURCES.txt +1 -1
  14. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/test_zotero.py +1 -23
  15. pyzotero-1.5.19/CONTRIBUTING.md +0 -19
  16. pyzotero-1.5.19/license.txt +0 -21
  17. {pyzotero-1.5.19 → pyzotero-1.5.24}/.coveragerc +0 -0
  18. {pyzotero-1.5.19 → pyzotero-1.5.24}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  19. {pyzotero-1.5.19 → pyzotero-1.5.24}/.github/ISSUE_TEMPLATE/usage_question.md +0 -0
  20. {pyzotero-1.5.19 → pyzotero-1.5.24}/.github/dependabot.yml +0 -0
  21. {pyzotero-1.5.19 → pyzotero-1.5.24}/.github/pull_request_template.md +0 -0
  22. {pyzotero-1.5.19 → pyzotero-1.5.24}/.gitignore +0 -0
  23. {pyzotero-1.5.19 → pyzotero-1.5.24}/.readthedocs.yaml +0 -0
  24. {pyzotero-1.5.19 → pyzotero-1.5.24}/AUTHORS +0 -0
  25. {pyzotero-1.5.19 → pyzotero-1.5.24}/CONTRIBUTORS.md +0 -0
  26. {pyzotero-1.5.19 → pyzotero-1.5.24}/__init__.py +0 -0
  27. {pyzotero-1.5.19 → pyzotero-1.5.24}/doc/Makefile +0 -0
  28. {pyzotero-1.5.19 → pyzotero-1.5.24}/doc/_templates/layout.html +0 -0
  29. {pyzotero-1.5.19 → pyzotero-1.5.24}/doc/cat.png +0 -0
  30. {pyzotero-1.5.19 → pyzotero-1.5.24}/doc/conf.py +0 -0
  31. {pyzotero-1.5.19 → pyzotero-1.5.24}/dump_contributors.py +0 -0
  32. {pyzotero-1.5.19 → pyzotero-1.5.24}/setup.cfg +0 -0
  33. {pyzotero-1.5.19 → pyzotero-1.5.24}/setup.py +0 -0
  34. {pyzotero-1.5.19 → pyzotero-1.5.24}/src/pyzotero/__init__.py +0 -0
  35. {pyzotero-1.5.19 → pyzotero-1.5.24}/src/pyzotero.egg-info/dependency_links.txt +0 -0
  36. {pyzotero-1.5.19 → pyzotero-1.5.24}/src/pyzotero.egg-info/requires.txt +0 -0
  37. {pyzotero-1.5.19 → pyzotero-1.5.24}/src/pyzotero.egg-info/top_level.txt +0 -0
  38. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/__init__.py +0 -0
  39. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/attachments_doc.json +0 -0
  40. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/citation_doc.xml +0 -0
  41. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/collection_doc.json +0 -0
  42. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/collection_tags.json +0 -0
  43. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/collection_versions.json +0 -0
  44. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/collections_doc.json +0 -0
  45. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/creation_doc.json +0 -0
  46. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/groups_doc.json +0 -0
  47. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/item_doc.json +0 -0
  48. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/item_fields.json +0 -0
  49. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/item_file.pdf +0 -0
  50. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/item_template.json +0 -0
  51. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/item_types.json +0 -0
  52. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/item_versions.json +0 -0
  53. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/items_doc.json +0 -0
  54. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/keys_doc.txt +0 -0
  55. {pyzotero-1.5.19 → pyzotero-1.5.24}/tests/api_responses/tags_doc.json +0 -0
@@ -17,7 +17,7 @@ jobs:
17
17
  submodules: false # Optional, use if you have submodules
18
18
  name: Check out repo
19
19
  - name: Set up Python ${{ matrix.python-version }}
20
- uses: actions/setup-python@v3
20
+ uses: actions/setup-python@v4
21
21
  with:
22
22
  python-version: ${{ matrix.python-version }}
23
23
  - name: Install dependencies
@@ -33,10 +33,10 @@ jobs:
33
33
  python -m pip install --upgrade pip
34
34
  pip wheel . -w dist --no-deps --use-pep517
35
35
 
36
- - uses: actions/upload-artifact@v3
36
+ - uses: actions/upload-artifact@v4
37
37
  name: Upload wheel as artifact
38
38
  with:
39
- name: wheels
39
+ name: wheels-${{ strategy.job-index }}
40
40
  path: |
41
41
  ./dist/*.whl
42
42
 
@@ -52,7 +52,7 @@ jobs:
52
52
  - name: Build SDist
53
53
  run: pipx run build --sdist
54
54
 
55
- - uses: actions/upload-artifact@v3
55
+ - uses: actions/upload-artifact@v4
56
56
  with:
57
57
  path: dist/*.tar.gz
58
58
 
@@ -72,21 +72,19 @@ jobs:
72
72
 
73
73
  - name: Download compressed artifacts
74
74
  id: download
75
- uses: actions/download-artifact@v3
75
+ uses: actions/download-artifact@v4
76
76
  with:
77
77
  path: ./artifacts
78
-
79
- - name: 'List downloaded files'
80
- run: ls ${{ steps.download.outputs.download-path }}/**/*.*
78
+ merge-multiple: true
81
79
 
82
80
  - name: Create release and upload wheels
83
81
  uses: ncipollo/release-action@v1
84
82
  with:
85
83
  allowUpdates: true
86
- artifacts: "${{ steps.download.outputs.download-path }}/**/*.whl,${{ steps.download.outputs.download-path }}/**/*.gz,${{ steps.download.outputs.download-path }}/**/*.so,${{ steps.download.outputs.download-path }}/**/*.dylib,${{ steps.download.outputs.download-path }}/**/*.lib,${{ steps.download.outputs.download-path }}/**/*.dll"
84
+ artifacts: "${{ steps.download.outputs.download-path }}/*.whl,${{ steps.download.outputs.download-path }}/*.gz,${{ steps.download.outputs.download-path }}/*.so,${{ steps.download.outputs.download-path }}/*.dylib,${{ steps.download.outputs.download-path }}/*.lib,${{ steps.download.outputs.download-path }}/*.dll"
87
85
  token: ${{ secrets.GITHUB_TOKEN }}
88
86
 
89
87
  - name: PyPI Publish
90
- uses: pypa/gh-action-pypi-publish@v1.8.14
88
+ uses: pypa/gh-action-pypi-publish@v1.10.1
91
89
  with:
92
- packages-dir: ${{ steps.download.outputs.download-path }}/**/
90
+ packages-dir: ${{ steps.download.outputs.download-path }}
@@ -11,6 +11,6 @@ date-released: 2019-05-18
11
11
  doi: "10.5281/zenodo.2917290"
12
12
  keywords:
13
13
  - zotero
14
- license: MIT
14
+ license: BlueOak-1.0.0
15
15
  repository-code: "https://github.com/urschrei/pyzotero"
16
16
  version: "1.3.15"
@@ -0,0 +1,99 @@
1
+ # Contributing
2
+ Contributions are welcome. Please bear the following in mind:
3
+
4
+ - **Base your changes on the dev branch**
5
+ - If necessary, rebase against `dev` before opening a pull request
6
+ - Follow [PEP 8](http://www.python.org/dev/peps/pep-0008/). I currently periodically run [`Black`](https://black.readthedocs.io/en/stable/) against the codebase and perhaps you should, too
7
+ - Use spaces for indentation, and ensure that all methods have a proper docstring. **Please don't use Doctest**
8
+ - If at all possible, don't add dependencies
9
+ - If it's unavoidable, ensure that the dependency is maintained, and supported
10
+ - Ensure that you add your dependency to [setup.py](setup.py)
11
+ - Run the tests, and ensure that they pass. If you're adding a feature, **you must add tests that exercise it**
12
+ - If your pull request is a feature, **document it**
13
+ - One feature per pull request
14
+ - If possible, [squash](http://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) your commits before opening a pull request, unless it makes no sense to do so
15
+ - If in doubt, comment your code.
16
+
17
+ # License of Contributed Code
18
+ Contributions are licensed under the Blue Oak Contributor Licence 1.0.0. See below
19
+
20
+ # Blue Oak Contributor License
21
+
22
+ Version 1.0.0
23
+
24
+ ## Purpose
25
+
26
+ This license gives the steward of a software project
27
+ the legal rights and assurances it needs to accept
28
+ contributions covered by intellectual property rights.
29
+
30
+ ## Copyright
31
+
32
+ The contributor licenses the steward to do everything with
33
+ their contributions that would otherwise infringe their
34
+ copyrights in them.
35
+
36
+ ## Patent
37
+
38
+ The contributor licenses the steward to do everything with
39
+ their contributions that would otherwise infringe any patent
40
+ claims they can license or become able to license.
41
+
42
+ ## Sublicensing
43
+
44
+ The steward can license the contributions to others in
45
+ turn, under whatever terms it chooses.
46
+
47
+ ## Reliability
48
+
49
+ The contributor cannot revoke this license.
50
+
51
+ ## Termination
52
+
53
+ The contributor can stop this license from covering
54
+ contributions submitted in the future by writing the steward
55
+ through one of the channels it uses to receive contributions.
56
+ Contributions the contributor submitted before remain under
57
+ this license.
58
+
59
+ ## Awareness
60
+
61
+ The contributor is aware that because of legal rules and
62
+ contracts, they may need to get someone else's permission to
63
+ submit contributions, even of their own work. For example,
64
+ "work made for hire" rules can make employers and clients
65
+ the owners of copyrights in the contributor's work.
66
+ Contracts with clients, or to form new companies, may make
67
+ them the owners of copyrights in the contributor's work.
68
+
69
+ ## Rights
70
+
71
+ All work in contributions the contributor submits for
72
+ inclusion in the project will be either:
73
+
74
+ - their own work, which they own the copyrights in or
75
+ have permission to submit
76
+
77
+ - work licensed by others under permissive license
78
+ terms that Blue Oak Council rates "bronze" or better at
79
+ <https://blueoakcouncil.org/list>
80
+
81
+ ## Notices
82
+
83
+ The contributor promises to copy copyright notices,
84
+ license terms, and other licensing-related notices for
85
+ work licensed by others in their contributions, so the
86
+ steward can tell what work is licensed by others under
87
+ what terms and follow their notice requirements.
88
+
89
+ ## No Liability
90
+
91
+ ***As far as the law allows, contributions under this
92
+ license come as is, without any warranty or condition,
93
+ except those under "Rights" above.***
94
+
95
+ ***As far as the law allows, the contributor will not be
96
+ liable to anyone for any damages related to contributions
97
+ under this license, under any kind of legal claim, except
98
+ for claims under "Rights" above.***
99
+
@@ -0,0 +1,35 @@
1
+ # Blue Oak Model License
2
+
3
+ Version 1.0.0
4
+
5
+ ## Purpose
6
+
7
+ This license gives everyone as much permission to work with this software as possible, while protecting contributors from liability.
8
+
9
+ ## Acceptance
10
+
11
+ In order to receive this license, you must agree to its rules. The rules of this license are both obligations under that agreement and conditions to your license. You must not do anything with this software that triggers a rule that you cannot or will not follow.
12
+
13
+ ## Copyright
14
+
15
+ Each contributor licenses you to do everything with this software that would otherwise infringe that contributor's copyright in it.
16
+
17
+ ## Notices
18
+
19
+ You must ensure that everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license or a link to <https://blueoakcouncil.org/license/1.0.0>.
20
+
21
+ ## Excuse
22
+
23
+ If anyone notifies you in writing that you have not complied with [Notices](#notices), you can keep your license by taking all practical steps to comply within 30 days after the notice. If you do not do so, your license ends immediately.
24
+
25
+ ## Patent
26
+
27
+ Each contributor licenses you to do everything with this software that would otherwise infringe any patent claims they can license or become able to license.
28
+
29
+ ## Reliability
30
+
31
+ No contributor can revoke this license.
32
+
33
+ ## No Liability
34
+
35
+ ***As far as the law allows, this software comes as is, without any warranty or condition, and no contributor will be liable to anyone for any damages related to this software or this license, under any kind of legal claim.***
@@ -1,30 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyzotero
3
- Version: 1.5.19
3
+ Version: 1.5.24
4
4
  Summary: Python wrapper for the Zotero API
5
5
  Author-email: Stephan Hügel <urschrei@gmail.com>
6
- License: The MIT License (MIT)
7
-
8
- Copyright (c) 2015 Stephan Hügel
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
6
  Project-URL: Repository, https://github.com/urschrei/pyzotero
29
7
  Project-URL: Tracker, https://github.com/urschrei/pyzotero/issues
30
8
  Keywords: Zotero,DH
@@ -38,11 +16,12 @@ Classifier: Development Status :: 5 - Production/Stable
38
16
  Classifier: Intended Audience :: Developers
39
17
  Classifier: Intended Audience :: Science/Research
40
18
  Classifier: Intended Audience :: Education
41
- Classifier: License :: OSI Approved :: MIT License
19
+ Classifier: License :: OSI Approved :: Blue Oak Model License (BlueOak-1.0.0)
42
20
  Classifier: Operating System :: OS Independent
43
21
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
44
22
  Requires-Python: >=3.8
45
23
  Description-Content-Type: text/markdown
24
+ License-File: LICENSE.md
46
25
  License-File: AUTHORS
47
26
  Requires-Dist: feedparser>=6.0.11
48
27
  Requires-Dist: pytz
@@ -53,7 +32,7 @@ Requires-Dist: pytest>=7.4.2; extra == "test"
53
32
  Requires-Dist: httpretty; extra == "test"
54
33
  Requires-Dist: python-dateutil; extra == "test"
55
34
 
56
- [![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](license.txt) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
35
+ [![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
57
36
 
58
37
  # Pyzotero: An API Client for the Zotero API
59
38
 
@@ -130,13 +109,13 @@ A sample citation (APA 6th edition) might look like:
130
109
 
131
110
  # License
132
111
 
133
- Pyzotero is licensed under the [MIT license][8]. See [license.txt](license.txt) for details.
112
+ Pyzotero is licensed under the [Blue Oak Model Licence 1.0.0][8]. See [LICENCE.md](LICENCE.md) for details.
134
113
 
135
114
  [1]: https://www.zotero.org/support/dev/web_api/v3/start
136
115
  [2]: https://www.zotero.org/settings/keys/new
137
116
  [3]: http://pyzotero.readthedocs.org/en/latest/
138
117
  [7]: https://nose2.readthedocs.io/en/latest/
139
- [8]: http://opensource.org/licenses/MIT
118
+ [8]: https://opensource.org/license/blue-oak-model-license
140
119
  [9]: https://github.com/urschrei/pyzotero/tree/dev
141
120
  [10]: http://www.pip-installer.org/en/latest/index.html
142
121
  † This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
@@ -1,4 +1,4 @@
1
- [![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](license.txt) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
1
+ [![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
2
2
 
3
3
  # Pyzotero: An API Client for the Zotero API
4
4
 
@@ -75,13 +75,13 @@ A sample citation (APA 6th edition) might look like:
75
75
 
76
76
  # License
77
77
 
78
- Pyzotero is licensed under the [MIT license][8]. See [license.txt](license.txt) for details.
78
+ Pyzotero is licensed under the [Blue Oak Model Licence 1.0.0][8]. See [LICENCE.md](LICENCE.md) for details.
79
79
 
80
80
  [1]: https://www.zotero.org/support/dev/web_api/v3/start
81
81
  [2]: https://www.zotero.org/settings/keys/new
82
82
  [3]: http://pyzotero.readthedocs.org/en/latest/
83
83
  [7]: https://nose2.readthedocs.io/en/latest/
84
- [8]: http://opensource.org/licenses/MIT
84
+ [8]: https://opensource.org/license/blue-oak-model-license
85
85
  [9]: https://github.com/urschrei/pyzotero/tree/dev
86
86
  [10]: http://www.pip-installer.org/en/latest/index.html
87
87
  † This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
@@ -1087,7 +1087,7 @@ Most Read API methods return **lists** of **dicts** or, in the case of tag metho
1087
1087
 
1088
1088
  License
1089
1089
  =======
1090
- Pyzotero is licensed under the `MIT <http://opensource.org/licenses/MIT>`_ license.
1090
+ Pyzotero is licensed under the `Blue Oak Model Licence <https://opensource.org/license/blue-oak-model-license>`_ license.
1091
1091
 
1092
1092
 
1093
1093
  Cat Picture
@@ -23,7 +23,7 @@ classifiers = [
23
23
  "Intended Audience :: Developers",
24
24
  "Intended Audience :: Science/Research",
25
25
  "Intended Audience :: Education",
26
- "License :: OSI Approved :: MIT License",
26
+ "License :: OSI Approved :: Blue Oak Model License (BlueOak-1.0.0)",
27
27
  "Operating System :: OS Independent",
28
28
  "Topic :: Software Development :: Libraries :: Python Modules",
29
29
  ]
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.5.19'
16
- __version_tuple__ = version_tuple = (1, 5, 19)
15
+ __version__ = version = '1.5.24'
16
+ __version_tuple__ = version_tuple = (1, 5, 24)
@@ -5,29 +5,6 @@ zotero.py
5
5
  Created by Stephan Hügel on 2011-02-28
6
6
 
7
7
  This file is part of Pyzotero.
8
-
9
- The MIT License (MIT)
10
-
11
- Copyright (c) 2015 Stephan Hügel
12
-
13
- Permission is hereby granted, free of charge, to any person obtaining a copy
14
- of this software and associated documentation files (the "Software"), to deal
15
- in the Software without restriction, including without limitation the rights
16
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
- copies of the Software, and to permit persons to whom the Software is
18
- furnished to do so, subject to the following conditions:
19
-
20
- The above copyright notice and this permission notice shall be included in
21
- all copies or substantial portions of the Software.
22
-
23
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
- THE SOFTWARE.
30
-
31
8
  """
32
9
 
33
10
  __author__ = "Stephan Hügel"
@@ -416,6 +393,10 @@ class Zotero:
416
393
  self.self_link = request
417
394
  # ensure that we wait if there's an active backoff
418
395
  self._check_backoff()
396
+ if params:
397
+ params["locale"] = self.locale
398
+ if not params:
399
+ params = {"locale": self.locale}
419
400
  self.request = requests.get(
420
401
  url=full_url, headers=self.default_headers(), params=params
421
402
  )
@@ -4,28 +4,6 @@ zotero_errors.py
4
4
  Created by Stephan Hügel on 2011-03-04
5
5
 
6
6
  This file is part of Pyzotero.
7
-
8
- The MIT License (MIT)
9
-
10
- Copyright (c) 2015 Stephan Hügel
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining a copy
13
- of this software and associated documentation files (the "Software"), to deal
14
- in the Software without restriction, including without limitation the rights
15
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
- copies of the Software, and to permit persons to whom the Software is
17
- furnished to do so, subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in
20
- all copies or substantial portions of the Software.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28
- THE SOFTWARE.
29
7
  """
30
8
 
31
9
 
@@ -1,30 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyzotero
3
- Version: 1.5.19
3
+ Version: 1.5.24
4
4
  Summary: Python wrapper for the Zotero API
5
5
  Author-email: Stephan Hügel <urschrei@gmail.com>
6
- License: The MIT License (MIT)
7
-
8
- Copyright (c) 2015 Stephan Hügel
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
6
  Project-URL: Repository, https://github.com/urschrei/pyzotero
29
7
  Project-URL: Tracker, https://github.com/urschrei/pyzotero/issues
30
8
  Keywords: Zotero,DH
@@ -38,11 +16,12 @@ Classifier: Development Status :: 5 - Production/Stable
38
16
  Classifier: Intended Audience :: Developers
39
17
  Classifier: Intended Audience :: Science/Research
40
18
  Classifier: Intended Audience :: Education
41
- Classifier: License :: OSI Approved :: MIT License
19
+ Classifier: License :: OSI Approved :: Blue Oak Model License (BlueOak-1.0.0)
42
20
  Classifier: Operating System :: OS Independent
43
21
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
44
22
  Requires-Python: >=3.8
45
23
  Description-Content-Type: text/markdown
24
+ License-File: LICENSE.md
46
25
  License-File: AUTHORS
47
26
  Requires-Dist: feedparser>=6.0.11
48
27
  Requires-Dist: pytz
@@ -53,7 +32,7 @@ Requires-Dist: pytest>=7.4.2; extra == "test"
53
32
  Requires-Dist: httpretty; extra == "test"
54
33
  Requires-Dist: python-dateutil; extra == "test"
55
34
 
56
- [![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](license.txt) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
35
+ [![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
57
36
 
58
37
  # Pyzotero: An API Client for the Zotero API
59
38
 
@@ -130,13 +109,13 @@ A sample citation (APA 6th edition) might look like:
130
109
 
131
110
  # License
132
111
 
133
- Pyzotero is licensed under the [MIT license][8]. See [license.txt](license.txt) for details.
112
+ Pyzotero is licensed under the [Blue Oak Model Licence 1.0.0][8]. See [LICENCE.md](LICENCE.md) for details.
134
113
 
135
114
  [1]: https://www.zotero.org/support/dev/web_api/v3/start
136
115
  [2]: https://www.zotero.org/settings/keys/new
137
116
  [3]: http://pyzotero.readthedocs.org/en/latest/
138
117
  [7]: https://nose2.readthedocs.io/en/latest/
139
- [8]: http://opensource.org/licenses/MIT
118
+ [8]: https://opensource.org/license/blue-oak-model-license
140
119
  [9]: https://github.com/urschrei/pyzotero/tree/dev
141
120
  [10]: http://www.pip-installer.org/en/latest/index.html
142
121
  † This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
@@ -5,10 +5,10 @@ AUTHORS
5
5
  CITATION.cff
6
6
  CONTRIBUTING.md
7
7
  CONTRIBUTORS.md
8
+ LICENSE.md
8
9
  README.md
9
10
  __init__.py
10
11
  dump_contributors.py
11
- license.txt
12
12
  pyproject.toml
13
13
  setup.py
14
14
  .github/dependabot.yml
@@ -2,33 +2,11 @@
2
2
  Tests for the Pyzotero module
3
3
 
4
4
  This file is part of Pyzotero.
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2015 Stephan Hügel
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
5
  """
28
6
 
29
7
  import os
30
- import unittest
31
8
  import time
9
+ import unittest
32
10
 
33
11
  import httpretty
34
12
  from dateutil import parser
@@ -1,19 +0,0 @@
1
- # Contributing
2
- Contributions are welcome. Please bear the following in mind:
3
-
4
- - **Base your changes on the dev branch**
5
- - If necessary, rebase against `dev` before opening a pull request
6
- - Follow [PEP 8](http://www.python.org/dev/peps/pep-0008/). I currently periodically run [`Black`](https://black.readthedocs.io/en/stable/) against the codebase and perhaps you should, too
7
- - Use spaces for indentation, and ensure that all methods have a proper docstring. **Please don't use Doctest**
8
- - If at all possible, don't add dependencies
9
- - If it's unavoidable, ensure that the dependency is maintained, and supported
10
- - Ensure that you add your dependency to [setup.py](setup.py)
11
- - Run the tests, and ensure that they pass. If you're adding a feature, **you must add tests that exercise it**
12
- - If your pull request is a feature, **document it**
13
- - One feature per pull request
14
- - If possible, [squash](http://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) your commits before opening a pull request, unless it makes no sense to do so
15
- - If in doubt, comment your code.
16
-
17
- ## License of Contributed Code
18
- Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be MIT licensed, without any additional terms or conditions.
19
- Please note that pull requests with licenses that are more restrictive than or otherwise incompatible with the MIT license will not be accepted.
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Stephan Hügel
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes