Skip to content

ignore valid setup.py during --doctest-modules #2834

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

Merged
merged 3 commits into from
Oct 17, 2017

Conversation

aysonje
Copy link
Contributor

@aysonje aysonje commented Oct 13, 2017

Addresses #502

  • Add a new news fragment into the changelog folder
    • name it $issue_id.$type for example (588.bug)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of removal, feature, bugfix, vendor, doc or trivial
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."
  • Target: for bugfix, vendor, doc or trivial fixes, target master; for removals or features target features;
  • Make sure to include reasonable tests for your change if necessary

Unless your change is a trivial or a documentation fix (e.g., a typo or reword of a small section) please:

  • Add yourself to AUTHORS;

@aysonje
Copy link
Contributor Author

aysonje commented Oct 13, 2017

Hi, I wanted to check first if I'm on the right track in fixing the issue before I work on tests and other required things for a pull request. :)

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 92.208% when pulling 0014e8d on aysonje:ignore-setup into 46e3043 on pytest-dev:master.

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

good start on this low hanging fruit 👍 ,
since it has some backward compat implications please target the features branch

def _is_setup_py(config, path, parent):
if path.basename != "setup.py":
return False
with open(path.strpath, 'r') as f:
Copy link
Member

Choose a reason for hiding this comment

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

just use path.read() to get the content

@aysonje aysonje changed the base branch from master to features October 13, 2017 16:47
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 92.676% when pulling eaf38c7 on aysonje:ignore-setup into c750a5b on pytest-dev:features.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 92.672% when pulling eaf38c7 on aysonje:ignore-setup into c750a5b on pytest-dev:features.

@nicoddemus
Copy link
Member

The new failures are happening because I improved the formatting a bit in the changelog, but they are related to #2843. This was passing just fine in eaf38c7.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 92.672% when pulling 843872b on aysonje:ignore-setup into c750a5b on pytest-dev:features.

@RonnyPfannschmidt RonnyPfannschmidt merged commit 71c76d9 into pytest-dev:features Oct 17, 2017
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.

4 participants