Title: Readme claims test dependencies are installed automatically · Issue #1652 · gitpython-developers/GitPython · GitHub
Open Graph Title: Readme claims test dependencies are installed automatically · Issue #1652 · gitpython-developers/GitPython
X Title: Readme claims test dependencies are installed automatically · Issue #1652 · gitpython-developers/GitPython
Description: README.md says: The list of dependencies are listed in ./requirements.txt and ./test-requirements.txt. The installer takes care of installing them for you. That is not accurate, because while dependencies listed in test-requirements.txt ...
Open Graph Description: README.md says: The list of dependencies are listed in ./requirements.txt and ./test-requirements.txt. The installer takes care of installing them for you. That is not accurate, because while depen...
X Description: README.md says: The list of dependencies are listed in ./requirements.txt and ./test-requirements.txt. The installer takes care of installing them for you. That is not accurate, because while depen...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1652
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Readme claims test dependencies are installed automatically","articleBody":"`README.md` says:\r\n\r\n\u003e The list of dependencies are listed in `./requirements.txt` and `./test-requirements.txt`. The installer takes care of installing them for you.\r\n\r\nThat is not accurate, because while dependencies listed in `test-requirements.txt` are included in the list passed as `tests_require` in `setup.py`, this does not actually cause them to be installed. As `README.md` later notes, they currently have to be installed with a command like `pip install -r test-requirements.txt`. That makes the above text in the readme misleading, because this is *not* the case for `requirements.txt` dependencies, which do not have to be installed manually.\r\n\r\n(Two related things: The CI workflows currently must install from `requirements.txt` explicitly because they do not install the project itself. The `test_installation` unit test installs from `requirements.txt` before installing the project itself, which should probably not be done, because this makes it so that test would not fail if installing GitPython failed to entail installation of its dependencies, which could arise as a regression in a change to `setup.py`.)\r\n\r\nThere are at least three distinct ways this documentation bug could be fixed:\r\n\r\n- Remove the claim that the installer takes care of this, while making no other changes.\r\n- Remove the claim that the installer takes care of this, and remove the `test_require` keyword argument from the `setup` call in `setup.py`.\r\n- Use an extra instead of `tests_require` so that there really is a way to install the package such that not only are the test dependencies downloaded but they are also installed automatically in the environment in which GitPython and its regular dependencies are installed. This has the substantial disadvantage that it is somewhat unintuitive to have an extra providing dependencies for functionality that is not itself part of the package people download from PyPI. But it would have the the advantage that it would fully achieve what appears to be intended or at least aspired to and that, depending on what other changes are being made, it might make the dependency installation procedure faster and simpler.\r\n\r\nI've opened #1654, which fixes this as well as some other issues. I took the approach of making a `test` extra, but as noted in the PR description, that can be changed, including to either of the other two approaches I've suggested here.","author":{"url":"https://github.com/EliahKagan","@type":"Person","name":"EliahKagan"},"datePublished":"2023-09-10T18:31:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1652/GitPython/issues/1652"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:98695080-cec1-4ff4-8f07-501e6efc8874 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AB0:21D373:2796D7:378974:6969159A |
| html-safe-nonce | 461cea8d7cfba8eb1aee4c37e720cb8ffbfb2c72ec52343c98fb82ae8625d080 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUIwOjIxRDM3MzoyNzk2RDc6Mzc4OTc0OjY5NjkxNTlBIiwidmlzaXRvcl9pZCI6IjQ4MTAyNDMwMDEyNzE2MzgwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2aa7a667e4711c60a41ba7e7a59f191c01aba25efc97805c918ca42b5544c646 |
| hovercard-subject-tag | issue:1889280309 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/1652/issue_layout |
| twitter:image | https://opengraph.githubassets.com/627e55515de7b365302632d194cbb09f1b71dcb718d89fa122452bd0f0a22e4a/gitpython-developers/GitPython/issues/1652 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/627e55515de7b365302632d194cbb09f1b71dcb718d89fa122452bd0f0a22e4a/gitpython-developers/GitPython/issues/1652 |
| og:image:alt | README.md says: The list of dependencies are listed in ./requirements.txt and ./test-requirements.txt. The installer takes care of installing them for you. That is not accurate, because while depen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EliahKagan |
| hostname | github.com |
| expected-hostname | github.com |
| None | afd5814870f8609d217a32dd3bccc05a5df5f5699df4d458c242e80fdfddcc2e |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 572e69339f2401a569f15071214cbbee314ea8bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width