| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,3 +18,6 @@ nbproject | |||
| 18 | 18 | /.vscode/ | |
| 19 | 19 | .idea/ | |
| 20 | 20 | .cache/ | |
| 21 | + .mypy_cache/ | ||
| 22 | + .pytest_cache/ | ||
| 23 | + monkeytype.sqlite3 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ If it is not in your `PATH`, you can help GitPython find it by setting | |||
| 34 | 34 | the `GIT_PYTHON_GIT_EXECUTABLE=<path/to/git>` environment variable. | |
| 35 | 35 | ||
| 36 | 36 | * Git (1.7.x or newer) | |
| 37 | - * Python >= 3.4 | ||
| 37 | + * Python >= 3.5 | ||
| 38 | 38 | ||
| 39 | 39 | The list of dependencies are listed in `./requirements.txt` and `./test-requirements.txt`. | |
| 40 | 40 | The installer takes care of installing them for you. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,7 @@ Changelog | |||
| 8 | 8 | * git.Commit objects now have a ``replace`` method that will return a | |
| 9 | 9 | copy of the commit with modified attributes. | |
| 10 | 10 | * Add python 3.9 support | |
| 11 | + * Drop python 3.4 support | ||
| 11 | 12 | ||
| 12 | 13 | 3.1.13 | |
| 13 | 14 | ====== | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ The object database implementation is optimized for handling large quantities of | |||
| 13 | 13 | Requirements | |
| 14 | 14 | ============ | |
| 15 | 15 | ||
| 16 | - * `Python`_ >= 3.4 | ||
| 16 | + * `Python`_ >= 3.5 | ||
| 17 | 17 | * `Git`_ 1.7.0 or newer | |
| 18 | 18 | It should also work with older versions, but it may be that some operations | |
| 19 | 19 | involving remotes will not work as expected. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + import os # @UnusedImport ## not really unused, is in type string | ||
| 2 | + from typing import Union, Any | ||
| 3 | + | ||
| 4 | + | ||
| 5 | + TBD = Any | ||
| 6 | + PathLike = Union[str, 'os.PathLike[str]'] | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,4 @@ | |||
| 1 | + | ||
| 2 | + [mypy] | ||
| 3 | + | ||
| 4 | + disallow_untyped_defs = True | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -95,10 +95,11 @@ def build_py_modules(basedir, excludes=[]): | |||
| 95 | 95 | license="BSD", | |
| 96 | 96 | url="https://github.com/gitpython-developers/GitPython", | |
| 97 | 97 | packages=find_packages(exclude=("test.*")), | |
| 98 | + package_data={'git': ['**/*.pyi', 'py.typed']}, | ||
| 98 | 99 | include_package_data=True, | |
| 99 | 100 | py_modules=build_py_modules("./git", excludes=["git.ext.*"]), | |
| 100 | 101 | package_dir={'git': 'git'}, | |
| 101 | - python_requires='>=3.4', | ||
| 102 | + python_requires='>=3.5', | ||
| 102 | 103 | install_requires=requirements, | |
| 103 | 104 | tests_require=requirements + test_requirements, | |
| 104 | 105 | zip_safe=False, | |
@@ -122,7 +123,6 @@ def build_py_modules(basedir, excludes=[]): | |||
| 122 | 123 | "Operating System :: MacOS :: MacOS X", | |
| 123 | 124 | "Programming Language :: Python", | |
| 124 | 125 | "Programming Language :: Python :: 3", | |
| 125 | - "Programming Language :: Python :: 3.4", | ||
| 126 | 126 | "Programming Language :: Python :: 3.5", | |
| 127 | 127 | "Programming Language :: Python :: 3.6", | |
| 128 | 128 | "Programming Language :: Python :: 3.7", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + import unittest | ||
| 2 | + loader = unittest.TestLoader() | ||
| 3 | + start_dir = '.' | ||
| 4 | + suite = loader.discover(start_dir) | ||
| 5 | + | ||
| 6 | + runner = unittest.TextTestRunner() | ||
| 7 | + runner.run(suite) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | [tox] | |
| 2 | - envlist = py34,py35,py36,py37,py38,py39,flake8 | ||
| 2 | + envlist = py35,py36,py37,py38,py39,flake8 | ||
| 3 | 3 | ||
| 4 | 4 | [testenv] | |
| 5 | 5 | commands = python -m unittest --buffer {posargs} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments