-
Notifications
You must be signed in to change notification settings - Fork 39
Implement asyncio support, plus session optimizations #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
seandstewart
wants to merge
16
commits into
contentful:master
Choose a base branch
from
seandstewart:seandstewart/86/asyncio-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7e5854d
Implement asyncio support, plus session optimizations for more effici…
37c1c59
Implement content-type caching.
13bccfc
Fix requests declaration
b74fb0e
Start getting tests working with modern toolchain
a91093d
Start getting tests working with modern toolchain
332bc6e
Ignore pycharm project files.
6ebb4c0
All tests passing.
365d5c9
Fix coverage command
2a982ee
Fix tox command
713062e
Tests for async client
6d05e19
Safer gzip detection
690bb80
Safer gzip detection
6c665b8
Safer orjson dependency, support pypy3 and get all tests passing in a…
c5ff277
Migrate to pyproject.toml & poetry
371e381
Fix python version specifier
a38e49d
Merge branch 'master' into seandstewart/86/asyncio-support
rubydog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,6 @@ _docs/_build/ | |
|
||
# PyBuilder | ||
target/ | ||
|
||
# dev | ||
.idea |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,13 +48,13 @@ lint: | |
flake8 contentful | ||
|
||
test: | ||
python setup.py test | ||
python -m unittest discover tests | ||
|
||
Comment on lines
-51
to
52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
test-all: | ||
tox | ||
|
||
coverage: | ||
coverage run --source contentful setup.py test | ||
coverage run -m unittest discover tests | ||
coverage report -m | ||
flake8 contentful | ||
|
||
|
@@ -77,9 +77,13 @@ git-docs: docs | |
git commit --amend -C HEAD | ||
|
||
release: clean git-docs | ||
python setup.py publish | ||
$(eval VERSION := $(shell poetry version -s)) | ||
poetry publish --build --no-interaction | ||
git tag -a $(VERSION) -m "version $(VERSION)" | ||
git push --tags | ||
git push | ||
|
||
|
||
dist: clean | ||
python setup.py sdist | ||
python setup.py bdist_wheel | ||
poetry build --no-interaction | ||
ls -l dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
from .client import Client # noqa: F401 | ||
from .entry import Entry # noqa: F401 | ||
from .asset import Asset # noqa: F401 | ||
from .space import Space # noqa: F401 | ||
from .locale import Locale # noqa: F401 | ||
from .resource import Link # noqa: F401 | ||
from .content_type import ContentType # noqa: F401 | ||
from .deleted_asset import DeletedAsset # noqa: F401 | ||
from .deleted_entry import DeletedEntry # noqa: F401 | ||
from .content_type_cache import ContentTypeCache # noqa: F401 | ||
from .content_type_field import ContentTypeField # noqa: F401 | ||
# flake8: noqa | ||
from importlib import metadata | ||
|
||
from .client import Client, AsyncClient | ||
from .entry import Entry | ||
from .asset import Asset | ||
from .space import Space | ||
from .locale import Locale | ||
from .resource import Link | ||
from .content_type import ContentType | ||
from .deleted_asset import DeletedAsset | ||
from .deleted_entry import DeletedEntry | ||
from .content_type_cache import ContentTypeCache | ||
from .content_type_field import ContentTypeField | ||
|
||
__version__ = "2.1.1" | ||
__author__ = "Contentful GmbH" | ||
__email__ = "[email protected]" | ||
__all__ = ( | ||
"Client", | ||
"AsyncClient", | ||
"Entry", | ||
"Asset", | ||
"Space", | ||
"Locale", | ||
"Link", | ||
"ContentType", | ||
"DeletedAsset", | ||
"DeletedEntry", | ||
"ContentTypeCache", | ||
"ContentTypeField", | ||
) | ||
|
||
_metadata = metadata.metadata(__package__) | ||
|
||
__version__ = _metadata.get("version") | ||
__author__ = _metadata.get("author") | ||
__email__ = _metadata.get("author-email") | ||
Comment on lines
+16
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Defining an |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing EOL python, adding current python.