Skip to content

Commit f99435b

Browse files
author
Andrew Vitko
committed
Missed Files
1 parent db9032d commit f99435b

File tree

7 files changed

+93
-40
lines changed

7 files changed

+93
-40
lines changed

.appveyor.yml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,17 @@
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-
- PYTHON: "C:\\Python27"
9-
PYTHON_VERSION: "2.7"
10-
GIT_PATH: "%GIT_DAEMON_PATH%"
11-
- PYTHON: "C:\\Python34-x64"
12-
PYTHON_VERSION: "3.4"
13-
GIT_PATH: "%GIT_DAEMON_PATH%"
14-
- PYTHON: "C:\\Python35-x64"
15-
PYTHON_VERSION: "3.5"
16-
GIT_PATH: "%GIT_DAEMON_PATH%"
179
- PYTHON: "C:\\Python36-x64"
1810
PYTHON_VERSION: "3.6"
1911
GIT_PATH: "%GIT_DAEMON_PATH%"
2012
- PYTHON: "C:\\Python37-x64"
2113
PYTHON_VERSION: "3.7"
2214
GIT_PATH: "%GIT_DAEMON_PATH%"
23-
- PYTHON: "C:\\Miniconda35-x64"
24-
PYTHON_VERSION: "3.5"
25-
IS_CONDA: "yes"
26-
MAYFAIL: "yes"
27-
GIT_PATH: "%GIT_DAEMON_PATH%"
28-
## Cygwin
29-
- PYTHON: "C:\\Miniconda-x64"
30-
PYTHON_VERSION: "2.7"
31-
IS_CONDA: "yes"
32-
IS_CYGWIN: "yes"
33-
MAYFAIL: "yes"
34-
GIT_PATH: "%CYGWIN_GIT_PATH%"
35-
- PYTHON: "C:\\Python35-x64"
36-
PYTHON_VERSION: "3.5"
37-
IS_CYGWIN: "yes"
38-
MAYFAIL: "yes"
39-
GIT_PATH: "%CYGWIN64_GIT_PATH%"
4015

4116
matrix:
4217
allow_failures:
@@ -84,18 +59,10 @@ install:
8459
build: false
8560

8661
test_script:
87-
- IF "%IS_CYGWIN%" == "yes" (
88-
nosetests -v
89-
) ELSE (
90-
IF "%PYTHON_VERSION%" == "3.5" (
91-
nosetests -v --with-coverage
92-
) ELSE (
93-
nosetests -v
94-
)
95-
)
62+
- nosetests -v
9663

9764
on_success:
98-
- IF "%PYTHON_VERSION%" == "3.5" IF NOT "%IS_CYGWIN%" == "yes" (codecov)
65+
- IF "%PYTHON_VERSION%" == "3.6" IF NOT "%IS_CYGWIN%" == "yes" (codecov)
9966

10067
# Enable this to be able to login to the build worker. You can use the
10168
# `remmina` program in Ubuntu, use the login information that the line below

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

.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

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: byron

.github/workflows/pythonpackage.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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.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: Check types with mypy
51+
run: |
52+
set -x
53+
pip install tox
54+
tox -e type
55+
- name: Test with nose
56+
run: |
57+
set -x
58+
pip install nose
59+
nosetests -v --with-coverage
60+
- name: Documentation
61+
run: |
62+
set -x
63+
pip install -r doc/requirements.txt
64+
make -C doc html

.gitignore

Lines changed: 6 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/
@@ -15,3 +16,8 @@ nbproject
1516
/*egg-info
1617
/.tox
1718
/.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

0 commit comments

Comments
 (0)