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

Catch up tox envs to include py38,py39 #316

Merged
merged 3 commits into from
Jan 17, 2021
Merged

Catch up tox envs to include py38,py39 #316

merged 3 commits into from
Jan 17, 2021

Conversation

altendky
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jan 17, 2021

Codecov Report

Merging #316 (04e42ef) into master (d4698e1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #316   +/-   ##
=======================================
  Coverage   96.78%   96.78%           
=======================================
  Files          20       20           
  Lines        1183     1183           
  Branches      106      106           
=======================================
  Hits         1145     1145           
  Misses         20       20           
  Partials       18       18           

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 d4698e1...04e42ef. Read the comment docs.

@altendky altendky marked this pull request as draft January 17, 2021 01:49
@altendky
Copy link
Member Author

So I guess technically we can't test on 3.9 on Windows due to Twisted still not being released with 3.9 support. Maybe that justifies not including it in the environment list?

@altendky altendky requested a review from adiroiban January 17, 2021 02:44
@altendky altendky marked this pull request as ready for review January 17, 2021 02:44
Copy link
Member

@adiroiban adiroiban left a comment

Choose a reason for hiding this comment

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

All good. Thanks!

Twisted is only needed for trial...so as log trial works on py3.9 we don't have to worry about official Twisted release.

@@ -0,0 +1 @@

Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a note that 3.8 and 3.9 are "officially" supported.

Like:

CPython 3.8 and 3.9 are now part of our automated test matrix and are officially supported.

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 would have thought we already had a newsfragment from when the matrix was expanded and this was forgotten... but I just looked and didn't see one, I'll add one.

@altendky
Copy link
Member Author

Yes, only Trial is needed but Twisted can't even be installed... so we can't run our tests in 3.9 on Windows. Well, not with released Twisted and we keep almost having a released Twisted that will work... almost...

@altendky altendky merged commit 00f19b4 into master Jan 17, 2021
@altendky altendky deleted the altendky-patch-1 branch January 17, 2021 13:53
@adiroiban
Copy link
Member

Well... we have 3.9 on Linux.

I am not sure that we need to run towncrier on every OS with every python.

I would say that running on Linux with every python and then on macOS and Windows only on latest Python.

But the tests are fast... so no big deal.

While checking the tests on Linux with py3.9 I have observed this output

https://github.com/twisted/towncrier/runs/1716924240#step:6:30

test_no_confirmation ... hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
Initialized empty Git repository in /tmp/tmpia63lpf2/.git/
[master (root-commit) 167cb11] Initial Commit
 4 files changed, 5 insertions(+)
 create mode 100644 foo/__init__.py
 create mode 100644 foo/newsfragments/123.feature
 create mode 100644 foo/newsfragments/124.feature.rst
 create mode 100644 pyproject.toml

I think that it needs some updates as the output of all the tests should be captured and checked....but this is low priority

@altendky
Copy link
Member Author

We could bet that Linux developers carefully keep in mind oddities that differ on Windows across Python versions... but that sounds like a bad bet. :]

Yes, git is hinting something and I ran into that when testing in Windows as I had installed a git update and set it to default to main and some tests had assumed master. There is #294 on this topic. You want the tests to test the output of git for messages like this? Checking all stdout sounds super fragile but maybe I'm missing something.

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.

2 participants