Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[RFC/WIP] move tests and avoid packaging them#1031

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Byron merged 5 commits intogitpython-developers:masterfrompriv-kweihmann:move-test-2nd
Jul 13, 2020
Merged

[RFC/WIP] move tests and avoid packaging them#1031

Byron merged 5 commits intogitpython-developers:masterfrompriv-kweihmann:move-test-2nd
Jul 13, 2020

Conversation

priv-kweihmann
Copy link
Contributor

@priv-kweihmannpriv-kweihmann commentedJul 12, 2020
edited
Loading

This is the followup to#1028.

Move test files out of git module and into the root dir.
This enables it to ignore them while setuptools packaging and is resulting in a way smaller release package.

additionally a new test is added, which tests package installation, to avoid ModuleNotFound errors (e.g.#1030) in future

Please review and test locally if possible - that's why I marked it as RFC/WIP for now

This should ensure that tests are NOT packaged intorelease package by setuptools, as tests are developmentonly+ fixtures after movingSigned-off-by: Konrad Weihmann <kweihmann@outlook.com>
by using exclude feature of find_packages.py_modules are determined by new function, whichrecursively scans the base dir but omits theexternal modules.Plus remove now obselete package_data settingSigned-off-by: Konrad Weihmann <kweihmann@outlook.com>
and remove all previously used test related settingsSigned-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
which installs the current codebase in a venvand runs 'import git' to test if codebase can beinstalled properly.This adds virtualenv to the test requirementsSigned-off-by: Konrad Weihmann <kweihmann@outlook.com>
@priv-kweihmannpriv-kweihmann changed the title[RFC/WIP] move test and avoid packaging them[RFC/WIP] move tests and avoid packaging themJul 12, 2020
@ByronByron self-requested a reviewJuly 13, 2020 02:02
@Byron
Copy link
Member

Thanks a lot for giving it another go, and for 'the test' which will probably save many people a lot of time in future by catching bad releases before they happen.

I will cut a new release, fingers crossed!

PS: This PR is probably worth ~15GB in saved transfer volume per month ifthese stats can be trusted - amazing!

@ByronByron merged commit3edd16c intogitpython-developers:masterJul 13, 2020
@ByronByron added this to thev3.1.6 - Bugfixes milestoneJul 13, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ByronByronAwaiting requested review from Byron

Assignees
No one assigned
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
@priv-kweihmann@Byron

[8]ページ先頭

©2009-2025 Movatter.jp