| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,39 +1,38 @@ | |||
| 1 | + # UNUSED, only for reference. If windows testing is needed, please add that to github actions | ||
| 1 | 2 | # CI on Windows via appveyor | |
| 2 | 3 | environment: | |
| 3 | 4 | GIT_DAEMON_PATH: "C:\\Program Files\\Git\\mingw64\\libexec\\git-core" | |
| 4 | 5 | CYGWIN_GIT_PATH: "C:\\cygwin\\bin;%GIT_DAEMON_PATH%" | |
| 5 | 6 | CYGWIN64_GIT_PATH: "C:\\cygwin64\\bin;%GIT_DAEMON_PATH%" | |
| 6 | 7 | ||
| 7 | 8 | matrix: | |
| 8 | - ## MINGW | ||
| 9 | - # | ||
| 10 | - - PYTHON: "C:\\Python27" | ||
| 11 | - PYTHON_VERSION: "2.7" | ||
| 12 | - GIT_PATH: "%GIT_DAEMON_PATH%" | ||
| 13 | 9 | - PYTHON: "C:\\Python34-x64" | |
| 14 | 10 | PYTHON_VERSION: "3.4" | |
| 15 | 11 | GIT_PATH: "%GIT_DAEMON_PATH%" | |
| 16 | 12 | - PYTHON: "C:\\Python35-x64" | |
| 17 | 13 | PYTHON_VERSION: "3.5" | |
| 18 | 14 | GIT_PATH: "%GIT_DAEMON_PATH%" | |
| 15 | + - PYTHON: "C:\\Python36-x64" | ||
| 16 | + PYTHON_VERSION: "3.6" | ||
| 17 | + GIT_PATH: "%GIT_DAEMON_PATH%" | ||
| 18 | + - PYTHON: "C:\\Python37-x64" | ||
| 19 | + PYTHON_VERSION: "3.7" | ||
| 20 | + GIT_PATH: "%GIT_DAEMON_PATH%" | ||
| 19 | 21 | - PYTHON: "C:\\Miniconda35-x64" | |
| 20 | 22 | PYTHON_VERSION: "3.5" | |
| 21 | 23 | IS_CONDA: "yes" | |
| 24 | + MAYFAIL: "yes" | ||
| 22 | 25 | GIT_PATH: "%GIT_DAEMON_PATH%" | |
| 23 | - | ||
| 24 | 26 | ## Cygwin | |
| 25 | - # | ||
| 26 | - - PYTHON: "C:\\Miniconda-x64" | ||
| 27 | - PYTHON_VERSION: "2.7" | ||
| 28 | - IS_CONDA: "yes" | ||
| 29 | - IS_CYGWIN: "yes" | ||
| 30 | - GIT_PATH: "%CYGWIN_GIT_PATH%" | ||
| 31 | 27 | - PYTHON: "C:\\Python35-x64" | |
| 32 | 28 | PYTHON_VERSION: "3.5" | |
| 33 | - GIT_PATH: "%CYGWIN64_GIT_PATH%" | ||
| 34 | 29 | IS_CYGWIN: "yes" | |
| 30 | + MAYFAIL: "yes" | ||
| 31 | + GIT_PATH: "%CYGWIN64_GIT_PATH%" | ||
| 35 | 32 | ||
| 36 | - | ||
| 33 | + matrix: | ||
| 34 | + allow_failures: | ||
| 35 | + - MAYFAIL: "yes" | ||
| 37 | 36 | install: | |
| 38 | 37 | - set PATH=%PYTHON%;%PYTHON%\Scripts;%GIT_PATH%;%PATH% | |
| 39 | 38 | ||
@@ -51,6 +50,7 @@ install: | |||
| 51 | 50 | conda info -a & | |
| 52 | 51 | conda install --yes --quiet pip | |
| 53 | 52 | ) | |
| 53 | + - pip install -r requirements.txt | ||
| 54 | 54 | - pip install -r test-requirements.txt | |
| 55 | 55 | - pip install codecov | |
| 56 | 56 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,15 @@ | |||
| 1 | + version = 1 | ||
| 2 | + | ||
| 3 | + test_patterns = [ | ||
| 4 | + 'test/**/test_*.py' | ||
| 5 | + ] | ||
| 6 | + | ||
| 7 | + exclude_patterns = [ | ||
| 8 | + 'doc/**', | ||
| 9 | + 'etc/sublime-text' | ||
| 10 | + ] | ||
| 11 | + | ||
| 12 | + [[analyzers]] | ||
| 13 | + name = 'python' | ||
| 14 | + enabled = true | ||
| 15 | + runtime_version = '3.x.x' | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + .git/ | ||
| 2 | + .tox/ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,2 +1,2 @@ | |||
| 1 | - git/test/fixtures/* eol=lf | ||
| 1 | + test/fixtures/* eol=lf | ||
| 2 | 2 | init-tests-after-clone.sh | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,59 @@ | |||
| 1 | + # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
| 2 | + # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
| 3 | + | ||
| 4 | + name: Python package | ||
| 5 | + | ||
| 6 | + on: | ||
| 7 | + push: | ||
| 8 | + branches: [ main ] | ||
| 9 | + pull_request: | ||
| 10 | + branches: [ main ] | ||
| 11 | + | ||
| 12 | + jobs: | ||
| 13 | + build: | ||
| 14 | + | ||
| 15 | + runs-on: ubuntu-latest | ||
| 16 | + strategy: | ||
| 17 | + matrix: | ||
| 18 | + python-version: [3.5, 3.6, 3.7, 3.8, 3.9] | ||
| 19 | + | ||
| 20 | + steps: | ||
| 21 | + - uses: actions/checkout@v2 | ||
| 22 | + with: | ||
| 23 | + fetch-depth: 9999 | ||
| 24 | + - name: Set up Python ${{ matrix.python-version }} | ||
| 25 | + uses: actions/setup-python@v1 | ||
| 26 | + with: | ||
| 27 | + python-version: ${{ matrix.python-version }} | ||
| 28 | + - name: Install dependencies and prepare tests | ||
| 29 | + run: | | ||
| 30 | + set -x | ||
| 31 | + python -m pip install --upgrade pip | ||
| 32 | + python --version; git --version | ||
| 33 | + git submodule update --init --recursive | ||
| 34 | + git fetch --tags | ||
| 35 | + | ||
| 36 | + pip install -r test-requirements.txt | ||
| 37 | + TRAVIS=yes ./init-tests-after-clone.sh | ||
| 38 | + | ||
| 39 | + git config --global user.email "travis@ci.com" | ||
| 40 | + git config --global user.name "Travis Runner" | ||
| 41 | + # If we rewrite the user's config by accident, we will mess it up | ||
| 42 | + # and cause subsequent tests to fail | ||
| 43 | + cat test/fixtures/.gitconfig >> ~/.gitconfig | ||
| 44 | + - name: Lint with flake8 | ||
| 45 | + run: | | ||
| 46 | + set -x | ||
| 47 | + pip install flake8 | ||
| 48 | + # stop the build if there are Python syntax errors or undefined names | ||
| 49 | + flake8 --ignore=W293,E265,E266,W503,W504,E731 --count --show-source --statistics | ||
| 50 | + - name: Test with nose | ||
| 51 | + run: | | ||
| 52 | + set -x | ||
| 53 | + pip install nose | ||
| 54 | + nosetests -v --with-coverage | ||
| 55 | + - name: Documentation | ||
| 56 | + run: | | ||
| 57 | + set -x | ||
| 58 | + pip install -r doc/requirements.txt | ||
| 59 | + make -C doc html | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ | |||
| 2 | 2 | *.swp | |
| 3 | 3 | *~ | |
| 4 | 4 | .venv/ | |
| 5 | + venv/ | ||
| 5 | 6 | /*.egg-info | |
| 6 | 7 | /lib/GitPython.egg-info | |
| 7 | 8 | cover/ | |
@@ -14,3 +15,9 @@ nbproject | |||
| 14 | 15 | .DS_Store | |
| 15 | 16 | /*egg-info | |
| 16 | 17 | /.tox | |
| 18 | + /.vscode/ | ||
| 19 | + .idea/ | ||
| 20 | + .cache/ | ||
| 21 | + .mypy_cache/ | ||
| 22 | + .pytest_cache/ | ||
| 23 | + monkeytype.sqlite3 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,3 @@ | |||
| 1 | - [submodule "gitdb"] | ||
| 2 | - url = https://github.com/gitpython-developers/gitdb.git | ||
| 3 | - path = git/ext/gitdb | ||
| 1 | + [submodule "gitdb"] | ||
| 2 | + url = https://github.com/gitpython-developers/gitdb.git | ||
| 3 | + path = git/ext/gitdb | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,17 +1,15 @@ | |||
| 1 | + # UNUSED, only for reference. If adjustments are needed, please see github actions | ||
| 1 | 2 | language: python | |
| 2 | 3 | python: | |
| 3 | - - "2.7" | ||
| 4 | 4 | - "3.4" | |
| 5 | 5 | - "3.5" | |
| 6 | 6 | - "3.6" | |
| 7 | - - "3.6-dev" | ||
| 8 | - - "3.7-dev" | ||
| 7 | + - "3.7" | ||
| 8 | + - "3.8" | ||
| 9 | 9 | - "nightly" | |
| 10 | 10 | # - "pypy" - won't work as smmap doesn't work (see gitdb/.travis.yml for details) | |
| 11 | 11 | matrix: | |
| 12 | 12 | allow_failures: | |
| 13 | - - python: "3.6-dev" | ||
| 14 | - - python: "3.7-dev" | ||
| 15 | 13 | - python: "nightly" | |
| 16 | 14 | git: | |
| 17 | 15 | # a higher depth is needed for most of the tests - must be high enough to not actually be shallow | |
@@ -22,7 +20,8 @@ install: | |||
| 22 | 20 | - git submodule update --init --recursive | |
| 23 | 21 | - git fetch --tags | |
| 24 | 22 | - pip install -r test-requirements.txt | |
| 25 | - - pip install codecov sphinx | ||
| 23 | + - pip install -r doc/requirements.txt | ||
| 24 | + - pip install codecov | ||
| 26 | 25 | ||
| 27 | 26 | # generate some reflog as git-python tests need it (in master) | |
| 28 | 27 | - ./init-tests-after-clone.sh | |
@@ -37,9 +36,9 @@ script: | |||
| 37 | 36 | # Make sure we limit open handles to see if we are leaking them | |
| 38 | 37 | - ulimit -n 128 | |
| 39 | 38 | - ulimit -n | |
| 40 | - - nosetests -v --with-coverage | ||
| 41 | - - if [ "$TRAVIS_PYTHON_VERSION" == '3.4' ]; then flake8; fi | ||
| 39 | + - coverage run --omit="test/*" -m unittest --buffer | ||
| 40 | + - coverage report | ||
| 42 | 41 | - if [ "$TRAVIS_PYTHON_VERSION" == '3.5' ]; then cd doc && make html; fi | |
| 43 | - - | ||
| 42 | + - if [ "$TRAVIS_PYTHON_VERSION" == '3.6' ]; then flake8 --ignore=W293,E265,E266,W503,W504,E731; fi | ||
| 44 | 43 | after_success: | |
| 45 | 44 | - codecov | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,5 +26,21 @@ Contributors are: | |||
| 26 | 26 | -Mikuláš Poul <mikulaspoul _at_ gmail.com> | |
| 27 | 27 | -Charles Bouchard-Légaré <cblegare.atl _at_ ntis.ca> | |
| 28 | 28 | -Yaroslav Halchenko <debian _at_ onerussian.com> | |
| 29 | - | ||
| 29 | + -Tim Swast <swast _at_ google.com> | ||
| 30 | + -William Luc Ritchie | ||
| 31 | + -David Host <hostdm _at_ outlook.com> | ||
| 32 | + -A. Jesse Jiryu Davis <jesse _at_ emptysquare.net> | ||
| 33 | + -Steven Whitman <ninloot _at_ gmail.com> | ||
| 34 | + -Stefan Stancu <stefan.stancu _at_ gmail.com> | ||
| 35 | + -César Izurieta <cesar _at_ caih.org> | ||
| 36 | + -Arthur Milchior <arthur _at_ milchior.fr> | ||
| 37 | + -Anil Khatri <anil.soccer.khatri _at_ gmail.com> | ||
| 38 | + -JJ Graham <thetwoj _at_ gmail.com> | ||
| 39 | + -Ben Thayer <ben _at_ benthayer.com> | ||
| 40 | + -Dries Kennes <admin _at_ dries007.net> | ||
| 41 | + -Pratik Anurag <panurag247365 _at_ gmail.com> | ||
| 42 | + -Harmon <harmon.public _at_ gmail.com> | ||
| 43 | + -Liam Beguin <liambeguin _at_ gmail.com> | ||
| 44 | + -Ram Rachum <ram _at_ rachum.com> | ||
| 45 | + -Alba Mendez <me _at_ alba.sh> | ||
| 30 | 46 | Portions derived from other open source works and are clearly marked. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,10 @@ | |||
| 1 | 1 | ### How to contribute | |
| 2 | 2 | ||
| 3 | - * [fork this project](https://github.com/gitpython-developers/GitPython/fork) on GitHub | ||
| 4 | - * For setting up the environment to run the self tests, look at `.travis.yml`. | ||
| 5 | - * Add yourself to AUTHORS.md and write your patch. **Write a test that fails unless your patch is present.** | ||
| 6 | - * Initiate a pull request | ||
| 3 | + The following is a short step-by-step rundown of what one typically would do to contribute. | ||
| 4 | + | ||
| 5 | + * [fork this project](https://github.com/gitpython-developers/GitPython/fork) on GitHub. | ||
| 6 | + * For setting up the environment to run the self tests, please look at `.travis.yml`. | ||
| 7 | + * Please try to **write a test that fails unless the contribution is present.** | ||
| 8 | + * Feel free to add yourself to AUTHORS file. | ||
| 9 | + * Create a pull request. | ||
| 7 | 10 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments