GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [RFC/WIP] move tests and avoid packaging them by priv-kweihmann · Pull Request #1031 · gitpython-developers/GitPython

Conversation

@priv-kweihmann

@priv-kweihmann priv-kweihmann commented Jul 12, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
priv-kweihmann added 5 commits July 12, 2020 15:01
@priv-kweihmann
tests: move to root dir
0374d7c
This should ensure that tests are NOT packaged into
release package by setuptools, as tests are development
only
+ fixtures after moving

Signed-off-by: Konrad Weihmann <[email protected]>
@priv-kweihmann
setup.py: exclude all test files
c7e0979
by using exclude feature of find_packages.
py_modules are determined by new function, which
recursively scans the base dir but omits the
external modules.
Plus remove now obselete package_data setting

Signed-off-by: Konrad Weihmann <[email protected]>
@priv-kweihmann
MANIFEST.in: update to exclude tests
7e7045c
and remove all previously used test related settings

Signed-off-by: Konrad Weihmann <[email protected]>
@priv-kweihmann
tools: update tool scripts after moving tests
961539c
Signed-off-by: Konrad Weihmann <[email protected]>
@priv-kweihmann
test: add installation test
e0b10d9
which installs the current codebase in a venv
and runs 'import git' to test if codebase can be
installed properly.
This adds virtualenv to the test requirements

Signed-off-by: Konrad Weihmann <[email protected]>
@priv-kweihmann priv-kweihmann changed the title [RFC/WIP] move test and avoid packaging them [RFC/WIP] move tests and avoid packaging them Jul 12, 2020
@Byron
Byron self-requested a review July 13, 2020 02:02
@Byron

Byron commented Jul 13, 2020

Copy link
Copy Markdown
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 if these stats can be trusted - amazing!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Byron
Byron merged commit 3edd16c into gitpython-developers:master Jul 13, 2020
@Byron Byron added this to the v3.1.6 - Bugfixes milestone Jul 13, 2020
This was referenced Jul 13, 2020
Tutorial examples in documentation no longer displaying #1032
Closed
Fixed broken paths in tutorial documentation #1033
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Byron Byron Awaiting requested review from Byron

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Milestone

v3.1.8 - Bugfixes

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@priv-kweihmann @Byron
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.