Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Fix Python 3.7.0 #9

Merged
merged 15 commits into from
Jul 4, 2018
Merged

Fix Python 3.7.0 #9

merged 15 commits into from
Jul 4, 2018

Conversation

hellysmile
Copy link
Member

@hellysmile hellysmile commented Jun 30, 2018

Closes #8

@codecov
Copy link

codecov bot commented Jun 30, 2018

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #9   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          19     25    +6     
  Branches        2      4    +2     
=====================================
+ Hits           19     25    +6
Impacted Files Coverage Δ
idna_ssl.py 100% <100%> (ø) ⬆️

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 b7b3e73...9cbd52c. Read the comment docs.

@hellysmile
Copy link
Member Author

It is fails for travis 3.7-dev, but works for local Python 3.7.0, so it depends right now on travis-ci/travis-ci#9815

This was referenced Jun 30, 2018
.travis.yml Outdated
@@ -18,7 +22,7 @@ deploy:
provider: pypi
user: hellysmile
Copy link
Member

Choose a reason for hiding this comment

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

Let's also update to the new bot user

Copy link
Member Author

Choose a reason for hiding this comment

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

Where I can find new bot credentials?

.travis.yml Outdated
- pip install -U setuptools
- pip install -U pip
- pip install -U wheel
- pip install -U tox
script:
- export TOXENV=py`python -c 'import sys; print("".join(map(str, sys.version_info[:2])))'`
Copy link
Member

Choose a reason for hiding this comment

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

I suggest you to use an approach, I'm demoing in multidict PR now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

have envlist = python in tox.ini and run just tox then.



@pytest.mark.skipif(
Copy link
Member

Choose a reason for hiding this comment

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

Save this into a shortcut variable and reuse instead of copy-pasting.

tox.ini Outdated
py3{5,6}
skip_missing_interpreters = True
py3{5,6,7}
skip_missing_interpreters = False
Copy link
Member

Choose a reason for hiding this comment

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

Don't do this, since it's bad for local dev flow.

.travis.yml Outdated
- pip install -U setuptools
- pip install -U pip
- pip install -U wheel
- pip install -U tox
script:
- export TOXENV=py`python -c 'import sys; print("".join(map(str, sys.version_info[:2])))'`
Copy link
Member

Choose a reason for hiding this comment

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

Also just TOXENV=py should work.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have no idea how it should work, cuz we need explicit env namig

Copy link
Member

Choose a reason for hiding this comment

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

Why? You don't. It will pick up whatever current python points to by default, but will allow -e py37-like stuff if you need.


only_370 = pytest.mark.skipif(
not PY_370,
reason='Python>=3.7.0 do not need monkey patching',
Copy link
Member

Choose a reason for hiding this comment

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

This message is exactly the same as one on line 10. One of them is clearly wrong.

@hellysmile
Copy link
Member Author

@webknjaz let's update credentials to new bot and publish new version?

@@ -14,6 +14,8 @@ after_success:
- pip install codecov
- codecov
cache: pip
env:
TOXENV: py
Copy link
Member Author

@hellysmile hellysmile Jul 3, 2018

Choose a reason for hiding this comment

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

this is really, cool, but looks like a magic for me ;)

Copy link
Member

Choose a reason for hiding this comment

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

It just matches any py* envs. Well, it could be omitted because it's default behavior.
But I normally don't even list envs. envlist = python is enough to make everything work without extra configuration.

@webknjaz
Copy link
Member

webknjaz commented Jul 3, 2018

@hellysmile please go ahead and update creds, I'm traveling today and likely won't have time for that.

@joar
Copy link

joar commented Jul 4, 2018

I'm anxiously waiting for this fix.
❤️

@webknjaz webknjaz merged commit 3374e21 into master Jul 4, 2018
@webknjaz
Copy link
Member

webknjaz commented Jul 4, 2018

@hellysmile I've updated creds. Feel free to release dist.

@asvetlov asvetlov deleted the fix_370 branch August 26, 2018 09:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants