FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge branch 'gitpython-developers:master' into master · gitpython-developers/GitPython@811346d · GitHub

Repository navigation

Commit 811346d

Browse files
authored
Merge branch 'gitpython-developers:master' into master
2 parents a134d2a + ea43def commit 811346d

160 files changed

Lines changed: 3280 additions & 3627 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.appveyor.yml‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
1+
# UNUSED, only for reference. If windows testing is needed, please add that to github actions
12
# CI on Windows via appveyor
23
environment:
34
GIT_DAEMON_PATH: "C:\\Program Files\\Git\\mingw64\\libexec\\git-core"
45
CYGWIN_GIT_PATH: "C:\\cygwin\\bin;%GIT_DAEMON_PATH%"
56
CYGWIN64_GIT_PATH: "C:\\cygwin64\\bin;%GIT_DAEMON_PATH%"
67

78
matrix:
8-
## MINGW
9-
#
10-
- PYTHON: "C:\\Python27"
11-
PYTHON_VERSION: "2.7"
12-
GIT_PATH: "%GIT_DAEMON_PATH%"
139
- PYTHON: "C:\\Python34-x64"
1410
PYTHON_VERSION: "3.4"
1511
GIT_PATH: "%GIT_DAEMON_PATH%"
1612
- PYTHON: "C:\\Python35-x64"
1713
PYTHON_VERSION: "3.5"
1814
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%"
1921
- PYTHON: "C:\\Miniconda35-x64"
2022
PYTHON_VERSION: "3.5"
2123
IS_CONDA: "yes"
24+
MAYFAIL: "yes"
2225
GIT_PATH: "%GIT_DAEMON_PATH%"
23-
2426
## 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%"
3127
- PYTHON: "C:\\Python35-x64"
3228
PYTHON_VERSION: "3.5"
33-
GIT_PATH: "%CYGWIN64_GIT_PATH%"
3429
IS_CYGWIN: "yes"
30+
MAYFAIL: "yes"
31+
GIT_PATH: "%CYGWIN64_GIT_PATH%"
3532

36-
33+
matrix:
34+
allow_failures:
35+
- MAYFAIL: "yes"
3736
install:
3837
- set PATH=%PYTHON%;%PYTHON%\Scripts;%GIT_PATH%;%PATH%
3938

@@ -51,6 +50,7 @@ install:
5150
conda info -a &
5251
conda install --yes --quiet pip
5352
)
53+
- pip install -r requirements.txt
5454
- pip install -r test-requirements.txt
5555
- pip install codecov
5656

‎.deepsource.toml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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'

‎.dockerignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.git/
2+
.tox/

‎.gitattributes‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
git/test/fixtures/* eol=lf
1+
test/fixtures/* eol=lf
22
init-tests-after-clone.sh
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff 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

‎.gitignore‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.swp
33
*~
44
.venv/
5+
venv/
56
/*.egg-info
67
/lib/GitPython.egg-info
78
cover/
@@ -14,3 +15,9 @@ nbproject
1415
.DS_Store
1516
/*egg-info
1617
/.tox
18+
/.vscode/
19+
.idea/
20+
.cache/
21+
.mypy_cache/
22+
.pytest_cache/
23+
monkeytype.sqlite3

‎.gitmodules‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

‎.travis.yml‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1+
# UNUSED, only for reference. If adjustments are needed, please see github actions
12
language: python
23
python:
3-
- "2.7"
44
- "3.4"
55
- "3.5"
66
- "3.6"
7-
- "3.6-dev"
8-
- "3.7-dev"
7+
- "3.7"
8+
- "3.8"
99
- "nightly"
1010
# - "pypy" - won't work as smmap doesn't work (see gitdb/.travis.yml for details)
1111
matrix:
1212
allow_failures:
13-
- python: "3.6-dev"
14-
- python: "3.7-dev"
1513
- python: "nightly"
1614
git:
1715
# a higher depth is needed for most of the tests - must be high enough to not actually be shallow
@@ -22,7 +20,8 @@ install:
2220
- git submodule update --init --recursive
2321
- git fetch --tags
2422
- pip install -r test-requirements.txt
25-
- pip install codecov sphinx
23+
- pip install -r doc/requirements.txt
24+
- pip install codecov
2625

2726
# generate some reflog as git-python tests need it (in master)
2827
- ./init-tests-after-clone.sh
@@ -37,9 +36,9 @@ script:
3736
# Make sure we limit open handles to see if we are leaking them
3837
- ulimit -n 128
3938
- 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
4241
- 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
4443
after_success:
4544
- codecov

‎AUTHORS‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,21 @@ Contributors are:
2626
-Mikuláš Poul <mikulaspoul _at_ gmail.com>
2727
-Charles Bouchard-Légaré <cblegare.atl _at_ ntis.ca>
2828
-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>
3046
Portions derived from other open source works and are clearly marked.

‎CONTRIBUTING.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
### How to contribute
22

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.
710

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL