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