| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,6 +16,12 @@ environment: | |||
| 16 | 16 | - PYTHON: "C:\\Python35-x64" | |
| 17 | 17 | PYTHON_VERSION: "3.5" | |
| 18 | 18 | GIT_PATH: "%GIT_DAEMON_PATH%" | |
| 19 | + - PYTHON: "C:\\Python36-x64" | ||
| 20 | + PYTHON_VERSION: "3.6" | ||
| 21 | + GIT_PATH: "%GIT_DAEMON_PATH%" | ||
| 22 | + - PYTHON: "C:\\Python37-x64" | ||
| 23 | + PYTHON_VERSION: "3.7" | ||
| 24 | + GIT_PATH: "%GIT_DAEMON_PATH%" | ||
| 19 | 25 | - PYTHON: "C:\\Miniconda35-x64" | |
| 20 | 26 | PYTHON_VERSION: "3.5" | |
| 21 | 27 | IS_CONDA: "yes" | |
@@ -51,6 +57,7 @@ install: | |||
| 51 | 57 | conda info -a & | |
| 52 | 58 | conda install --yes --quiet pip | |
| 53 | 59 | ) | |
| 60 | + - pip install -r requirements.txt | ||
| 54 | 61 | - pip install -r test-requirements.txt | |
| 55 | 62 | - pip install codecov | |
| 56 | 63 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,8 +40,7 @@ script: | |||
| 40 | 40 | - ulimit -n 128 | |
| 41 | 41 | - ulimit -n | |
| 42 | 42 | - nosetests -v --with-coverage | |
| 43 | - - if [ "$TRAVIS_PYTHON_VERSION" == '3.4' ]; then flake8 --ignore=W293,E265,E266,W503,W504,E731; fi | ||
| 44 | 43 | - if [ "$TRAVIS_PYTHON_VERSION" == '3.5' ]; then cd doc && make html; fi | |
| 45 | - - | ||
| 44 | + - if [ "$TRAVIS_PYTHON_VERSION" == '3.6' ]; then flake8 --ignore=W293,E265,E266,W503,W504,E731; fi | ||
| 46 | 45 | after_success: | |
| 47 | 46 | - codecov | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,8 +2,10 @@ include VERSION | |||
| 2 | 2 | include LICENSE | |
| 3 | 3 | include CHANGES | |
| 4 | 4 | include AUTHORS | |
| 5 | - include README | ||
| 5 | + include CONTRIBUTING.md | ||
| 6 | + include README.md | ||
| 6 | 7 | include requirements.txt | |
| 8 | + include test-requirements.txt | ||
| 7 | 9 | ||
| 8 | 10 | recursive-include doc * | |
| 9 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ all: | |||
| 2 | 2 | @grep -Ee '^[a-z].*:' Makefile | cut -d: -f1 | grep -vF all | |
| 3 | 3 | ||
| 4 | 4 | clean: | |
| 5 | - rm -rf build/ dist/ | ||
| 5 | + rm -rf build/ dist/ .eggs/ .tox/ | ||
| 6 | 6 | ||
| 7 | 7 | release: clean | |
| 8 | 8 | # Check if latest tag is the current head we're releasing | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -220,7 +220,8 @@ def refresh(cls, path=None): | |||
| 220 | 220 | # - a GitCommandNotFound error is spawned by ourselves | |
| 221 | 221 | # - a PermissionError is spawned if the git executable provided | |
| 222 | 222 | # cannot be executed for whatever reason | |
| 223 | - exceptions = (GitCommandNotFound, PermissionError) | ||
| 223 | + exceptions = (GitCommandNotFound, PermissionError) # noqa | ||
| 224 | + # (silence erroneous flake8 F821) | ||
| 224 | 225 | ||
| 225 | 226 | has_git = False | |
| 226 | 227 | try: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,2 +1 @@ | |||
| 1 | - gitdb>=0.6.4 | ||
| 2 | - ddt>=1.1.1 | ||
| 1 | + gitdb2 (>=2.0.0) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,6 +19,9 @@ | |||
| 19 | 19 | with open('requirements.txt') as reqs_file: | |
| 20 | 20 | requirements = reqs_file.read().splitlines() | |
| 21 | 21 | ||
| 22 | + with open('test-requirements.txt') as reqs_file: | ||
| 23 | + test_requirements = reqs_file.read().splitlines() | ||
| 24 | + | ||
| 22 | 25 | ||
| 23 | 26 | class build_py(_build_py): | |
| 24 | 27 | ||
@@ -63,10 +66,6 @@ def _stamp_version(filename): | |||
| 63 | 66 | print("WARNING: Couldn't find version line in file %s" % filename, file=sys.stderr) | |
| 64 | 67 | ||
| 65 | 68 | ||
| 66 | - install_requires = ['gitdb2 >= 2.0.0'] | ||
| 67 | - test_requires = ['ddt>=1.1.1'] | ||
| 68 | - # end | ||
| 69 | - | ||
| 70 | 69 | setup( | |
| 71 | 70 | name="GitPython", | |
| 72 | 71 | cmdclass={'build_py': build_py, 'sdist': sdist}, | |
@@ -81,9 +80,8 @@ def _stamp_version(filename): | |||
| 81 | 80 | package_dir={'git': 'git'}, | |
| 82 | 81 | license="BSD License", | |
| 83 | 82 | python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', | |
| 84 | - requires=['gitdb2 (>=2.0.0)'], | ||
| 85 | - install_requires=install_requires, | ||
| 86 | - test_requirements=test_requires + install_requires, | ||
| 83 | + requires=requirements, | ||
| 84 | + tests_require=requirements + test_requirements, | ||
| 87 | 85 | zip_safe=False, | |
| 88 | 86 | long_description="""GitPython is a python library used to interact with Git repositories""", | |
| 89 | 87 | classifiers=[ | |
@@ -110,6 +108,6 @@ def _stamp_version(filename): | |||
| 110 | 108 | "Programming Language :: Python :: 3.4", | |
| 111 | 109 | "Programming Language :: Python :: 3.5", | |
| 112 | 110 | "Programming Language :: Python :: 3.6", | |
| 113 | - "Programming Language :: Python :: 3.7", | ||
| 111 | + "Programming Language :: Python :: 3.7" | ||
| 114 | 112 | ] | |
| 115 | 113 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,5 @@ | |||
| 1 | - -r requirements.txt | ||
| 2 | - | ||
| 1 | + ddt>=1.1.1 | ||
| 3 | 2 | coverage | |
| 4 | 3 | flake8 | |
| 5 | 4 | nose | |
| 6 | - mock; python_version=='2.7' | ||
| 5 | + mock; python_version=='2.7' | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments