Skip to content

Add test_files content to packaging#27

Open
dhgutteridge wants to merge 2 commits intoMartijnBraam:masterfrom
dhgutteridge:master
Open

Add test_files content to packaging#27
dhgutteridge wants to merge 2 commits intoMartijnBraam:masterfrom
dhgutteridge:master

Conversation

@dhgutteridge
Copy link
Copy Markdown

Provide test_files content in the distribution so downstream packagers sourcing from PyPI can run all tests successfully. While here, also note Python 3.6 support, since that's what I'm using it with.

Provide test_files content in the distribution so downstream packagers sourcing from PyPI can run all tests successfully. While here, also note Python 3.6 support, since that's what I'm using it with.
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling f46f589 on dhgutteridge:master into e96c00e on MartijnBraam:master.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 23, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 9909959 on dhgutteridge:master into e96c00e on MartijnBraam:master.

@dhgutteridge
Copy link
Copy Markdown
Author

While packaging this for pkgsrc.org, which prefers sourcing distribution files via PyPI, I found the distribution file doesn't include the test_files directory, so six of the sixteen tests fail. It's preferable to include all test files for optional inclusion downstream.

@dhgutteridge
Copy link
Copy Markdown
Author

One of the Travis CI jobs failed, but apparently not for reasons relating to this change. It looks like a fundamental problem with Python 3.3 coverage: "RuntimeError: Python 3.4 or later is required."

Comment thread setup.py Outdated
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5'
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Trailing comma? -> cleaner diffs down the road

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sure, I could add that. (I just noted it works with 3.7 as well.) I hadn't done that because it didn't seem to be the original author's style.

The test suite passes on Python 3.7, and I've been using it with 3.7 successfully for months.
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