Skip to content

Conversation

@browniebroke
Copy link
Contributor

@browniebroke browniebroke commented Jan 14, 2020

  • Add Django 2.2 and 3.0 to the build matrix
  • Add Python 3.7 & 3.8
  • Fix issues

packages=['django_coverage_plugin'],
install_requires=[
'coverage >= 4.0',
'coverage >= 4.0 , < 5',
Copy link
Member

Choose a reason for hiding this comment

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

Why do this?

Copy link
Collaborator

@jambonrose jambonrose Jan 14, 2020

Choose a reason for hiding this comment

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

From the test output of the first commit:

Traceback (most recent call last):
  File "tests/test_extends.py", line 16, in test_empty_block
    text = self.run_django_coverage()
  File "tests/plugin_test.py", line 139, in run_django_coverage
    for pl in self.cov.plugins:
AttributeError: 'Coverage' object has no attribute 'plugins'

I've been planning to switch to coverage.CoveragePlugin, but I've been swamped at work.

EDIT: The end of my comment about CoveragePlugin is misleading. Please ignore it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, was failing without. I feel like it's out of scope of this PR?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm in agreement.

Copy link
Member

Choose a reason for hiding this comment

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

OK: #66

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Given that this is broken on master (I think), should I move this to a separate pull request so you can make a patch release of this plugin before adding more stuff?

The FILE_CHARSET setting is removed.
@browniebroke browniebroke marked this pull request as ready for review January 14, 2020 13:28
Copy link
Collaborator

@jambonrose jambonrose left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

Please update the Read Me to note the new Python & Django versions officially being supported.

@browniebroke
Copy link
Contributor Author

@jambonrose I think I made all the changes you requested. Let me know if you see anything else.

Copy link
Collaborator

@jambonrose jambonrose left a comment

Choose a reason for hiding this comment

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

🎉

This looks good to me! Thank you for taking to time to work on this plugin.

@jambonrose jambonrose merged commit 717f879 into coveragepy:master Jan 16, 2020
jambonrose added a commit that referenced this pull request Jan 16, 2020
@browniebroke browniebroke deleted the django-3.0 branch January 16, 2020 12:21
jambonrose added a commit that referenced this pull request Jan 16, 2020
* 🚀 Bump version 1.6.0 → 1.7.0
* 👷‍♀️ Remove Django 1.11 tip from Tox matrix
* 📚 Update Copyright year
* 📚 Update History
* 📚 note Coverage 5.0 unsupported
* 📚 Add Bruno Alla to author list for PR #65

PR #67
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.

3 participants