Skip to content
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

Fix aiomysql.sa in Python 3.7 and run tests for python 3.7 in CI #434

Closed
wants to merge 2 commits into from
Closed

Fix aiomysql.sa in Python 3.7 and run tests for python 3.7 in CI #434

wants to merge 2 commits into from

Conversation

zhoukuncheng
Copy link

@zhoukuncheng zhoukuncheng commented Sep 8, 2019

What do these changes do?

Fix async iterator protocol in aiomysql.utils._SAConnectionContextManager,
and run tests for python 3.7 in CI.

  1. Add __aiter__ and __anext__ methods for _SAConnectionContextManager
  2. Update .travis.yml for Python 3.7

Are there changes in behavior for the user?

No changes.

Related issue number

#410

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> (e.g. 588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the PR
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: Fix issue with non-ascii contents in doctest text files.

@codecov
Copy link

codecov bot commented Sep 8, 2019

Codecov Report

Merging #434 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #434      +/-   ##
==========================================
+ Coverage   92.28%   92.34%   +0.05%     
==========================================
  Files           9        9              
  Lines        1180     1188       +8     
  Branches      172      173       +1     
==========================================
+ Hits         1089     1097       +8     
  Misses         64       64              
  Partials       27       27
Impacted Files Coverage Δ
aiomysql/utils.py 90% <100%> (+0.86%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2f8a6d...77f6b95. Read the comment docs.

@zhoukuncheng
Copy link
Author

@terrycain I need someone to review this PR.
It will be nice to see a new release built and published to PyPI after this PR merged.

.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
aiomysql/utils.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
tests/test_issues.py Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
@codecov-io
Copy link

Codecov Report

Merging #434 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #434      +/-   ##
==========================================
+ Coverage   92.28%   92.34%   +0.05%     
==========================================
  Files           9        9              
  Lines        1180     1188       +8     
  Branches      172      173       +1     
==========================================
+ Hits         1089     1097       +8     
  Misses         64       64              
  Partials       27       27
Impacted Files Coverage Δ
aiomysql/utils.py 90% <100%> (+0.86%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b16e5bd...da130a5. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Sep 12, 2019

Codecov Report

Merging #434 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #434      +/-   ##
==========================================
+ Coverage   92.28%   92.34%   +0.05%     
==========================================
  Files           9        9              
  Lines        1180     1188       +8     
  Branches      172      173       +1     
==========================================
+ Hits         1089     1097       +8     
  Misses         64       64              
  Partials       27       27
Impacted Files Coverage Δ
aiomysql/utils.py 90% <100%> (+0.86%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2f8a6d...0434fe1. Read the comment docs.

.travis.yml Outdated Show resolved Hide resolved
.travis.yml Show resolved Hide resolved
.travis.yml Outdated
env: PYTHONASYNCIODEBUG=
addons:
mysql: 5.7


before_script:
- "sudo systemctl start mysql || true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a global addons section instead.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, add - mysql in global services section ,
Setting up Databases and Services - Travis CI

@ethe
Copy link

ethe commented Feb 20, 2020

Anything updates?

@webknjaz
Copy link
Member

@CeresCa?

@terricain
Copy link
Collaborator

Am busy with a new job but this projects been left for a while. Will have a look this coming week once ive fixed travis

@terricain
Copy link
Collaborator

Remove the stuff from .travis matrix except from changing the main python version 3.6 to 3.7

@nickpro
Copy link

nickpro commented May 25, 2020

does this PR abandoned?

@sloev sloev mentioned this pull request Jun 8, 2020
@aio-libs aio-libs deleted a comment from CLAassistant Jan 30, 2022
@Nothing4You
Copy link
Collaborator

thank you for the PR.

python 3.7 support has been implemented quite a while ago, therefore this is no longer relevant.

@Nothing4You
Copy link
Collaborator

for the SA fix, this should be covered in #494, which also includes a test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants