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

Add requirements.txt to MANIFEST.in #4192

Merged
merged 1 commit into from
Jul 15, 2017
Merged

Add requirements.txt to MANIFEST.in #4192

merged 1 commit into from
Jul 15, 2017

Conversation

koobs
Copy link
Contributor

@koobs koobs commented Jul 15, 2017

Three tests [1] rely on requirements.txt being available. If the file is not present, the following error is observed in those tests:

  >       with open('requirements.txt') as f:
  E       IOError: [Errno 2] No such file or directory: 'requirements.txt'

The latest (2.18.1) source distribution on PyPI does not include requirements.txt, which precludes successfully passing the tests.

This change adds the required file to the source distribution. An alternative is to use a different file already included in the sdist.

Additionally, skipping tests if a required resource (library, file, etc) is not available would be a user experience improvement.

[1] test_POSTBIN_GET_POST_FILES, test_POSTBIN_GET_POST_FILES_WITH_DATA, test_conflicting_post_params,

uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Jul 15, 2017
While I'm here, add COMMENT on specific supported Python versions

[1] psf/requests#4192

QA:	3 failed [1], 480 passed, 11 skipped, 2 xpassed in 84.60 seconds
MFH:	2017Q3


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@445845 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Jul 15, 2017
While I'm here, add COMMENT on specific supported Python versions

[1] psf/requests#4192

QA:	3 failed [1], 480 passed, 11 skipped, 2 xpassed in 84.60 seconds

Approved by:	ports-secteam (blanket: bugfix)
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Jul 15, 2017
While I'm here, add COMMENT on specific supported Python versions

[1] psf/requests#4192

QA:	3 failed [1], 480 passed, 11 skipped, 2 xpassed in 84.60 seconds
MFH:	2017Q3
Copy link
Member

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Thanks for this!

However, if resources aren't available I think the tests should probably fail. That usually means someone screwed something up and it needs to be fixed. I appreciate that it causes you inconvenience, but it leads to us fixing problems that might otherwise slip past you.

@Lukasa Lukasa merged commit cada19b into psf:master Jul 15, 2017
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Apr 1, 2021
While I'm here, add COMMENT on specific supported Python versions

[1] psf/requests#4192

QA:	3 failed [1], 480 passed, 11 skipped, 2 xpassed in 84.60 seconds

Approved by:	ports-secteam (blanket: bugfix)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2021
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.

2 participants