| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,29 +6,12 @@ environment: | |||
| 6 | 6 | CYGWIN64_GIT_PATH: "C:\\cygwin64\\bin;%GIT_DAEMON_PATH%" | |
| 7 | 7 | ||
| 8 | 8 | matrix: | |
| 9 | - - PYTHON: "C:\\Python34-x64" | ||
| 10 | - PYTHON_VERSION: "3.4" | ||
| 11 | - GIT_PATH: "%GIT_DAEMON_PATH%" | ||
| 12 | - - PYTHON: "C:\\Python35-x64" | ||
| 13 | - PYTHON_VERSION: "3.5" | ||
| 14 | - GIT_PATH: "%GIT_DAEMON_PATH%" | ||
| 15 | 9 | - PYTHON: "C:\\Python36-x64" | |
| 16 | 10 | PYTHON_VERSION: "3.6" | |
| 17 | 11 | GIT_PATH: "%GIT_DAEMON_PATH%" | |
| 18 | 12 | - PYTHON: "C:\\Python37-x64" | |
| 19 | 13 | PYTHON_VERSION: "3.7" | |
| 20 | 14 | GIT_PATH: "%GIT_DAEMON_PATH%" | |
| 21 | - - PYTHON: "C:\\Miniconda35-x64" | ||
| 22 | - PYTHON_VERSION: "3.5" | ||
| 23 | - IS_CONDA: "yes" | ||
| 24 | - MAYFAIL: "yes" | ||
| 25 | - GIT_PATH: "%GIT_DAEMON_PATH%" | ||
| 26 | - ## Cygwin | ||
| 27 | - - PYTHON: "C:\\Python35-x64" | ||
| 28 | - PYTHON_VERSION: "3.5" | ||
| 29 | - IS_CYGWIN: "yes" | ||
| 30 | - MAYFAIL: "yes" | ||
| 31 | - GIT_PATH: "%CYGWIN64_GIT_PATH%" | ||
| 32 | 15 | ||
| 33 | 16 | matrix: | |
| 34 | 17 | allow_failures: | |
@@ -76,18 +59,10 @@ install: | |||
| 76 | 59 | build: false | |
| 77 | 60 | ||
| 78 | 61 | test_script: | |
| 79 | - - IF "%IS_CYGWIN%" == "yes" ( | ||
| 80 | - nosetests -v | ||
| 81 | - ) ELSE ( | ||
| 82 | - IF "%PYTHON_VERSION%" == "3.5" ( | ||
| 83 | - nosetests -v --with-coverage | ||
| 84 | - ) ELSE ( | ||
| 85 | - nosetests -v | ||
| 86 | - ) | ||
| 87 | - ) | ||
| 62 | + - nosetests -v | ||
| 88 | 63 | ||
| 89 | 64 | on_success: | |
| 90 | - - IF "%PYTHON_VERSION%" == "3.5" IF NOT "%IS_CYGWIN%" == "yes" (codecov) | ||
| 65 | + - IF "%PYTHON_VERSION%" == "3.6" IF NOT "%IS_CYGWIN%" == "yes" (codecov) | ||
| 91 | 66 | ||
| 92 | 67 | # Enable this to be able to login to the build worker. You can use the | |
| 93 | 68 | # `remmina` program in Ubuntu, use the login information that the line below | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ jobs: | |||
| 15 | 15 | runs-on: ubuntu-latest | |
| 16 | 16 | strategy: | |
| 17 | 17 | matrix: | |
| 18 | - python-version: [3.5, 3.6, 3.7, 3.8, 3.9] | ||
| 18 | + python-version: [3.6, 3.7, 3.8, 3.9] | ||
| 19 | 19 | ||
| 20 | 20 | steps: | |
| 21 | 21 | - uses: actions/checkout@v2 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,2 +1,2 @@ | |||
| 1 | 1 | Please see the online documentation for the latest changelog: | |
| 2 | - https://github.com/gitpython-developers/GitPython/blob/master/doc/source/changes.rst | ||
| 2 | + https://github.com/gitpython-developers/GitPython/blob/main/doc/source/changes.rst | ||
| 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.5 | ||
| 37 | + * Python >= 3.6 | ||
| 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 | |
|---|---|---|---|
@@ -1 +1 @@ | |||
| 1 | - 3.1.17 | ||
| 1 | + 3.1.18 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,14 @@ | |||
| 2 | 2 | Changelog | |
| 3 | 3 | ========= | |
| 4 | 4 | ||
| 5 | + 3.1.18 | ||
| 6 | + ====== | ||
| 7 | + | ||
| 8 | + * drop support for python 3.5 to reduce maintenance burden on typing. Lower patch levels of python 3.5 would break, too. | ||
| 9 | + | ||
| 10 | + See the following for details: | ||
| 11 | + https://github.com/gitpython-developers/gitpython/milestone/50?closed=1 | ||
| 12 | + | ||
| 5 | 13 | 3.1.17 | |
| 6 | 14 | ====== | |
| 7 | 15 | ||
| 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.5 | ||
| 16 | + * `Python`_ >= 3.6 | ||
| 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 | |
|---|---|---|---|
@@ -10,7 +10,7 @@ GitPython Tutorial | |||
| 10 | 10 | ||
| 11 | 11 | GitPython provides object model access to your git repository. This tutorial is composed of multiple sections, most of which explains a real-life usecase. | |
| 12 | 12 | ||
| 13 | - All code presented here originated from `test_docs.py <https://github.com/gitpython-developers/GitPython/blob/master/test/test_docs.py>`_ to assure correctness. Knowing this should also allow you to more easily run the code for your own testing purposes, all you need is a developer installation of git-python. | ||
| 13 | + All code presented here originated from `test_docs.py <https://github.com/gitpython-developers/GitPython/blob/main/test/test_docs.py>`_ to assure correctness. Knowing this should also allow you to more easily run the code for your own testing purposes, all you need is a developer installation of git-python. | ||
| 14 | 14 | ||
| 15 | 15 | Meet the Repo type | |
| 16 | 16 | ****************** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,9 +17,7 @@ | |||
| 17 | 17 | import subprocess | |
| 18 | 18 | import sys | |
| 19 | 19 | import threading | |
| 20 | - from collections import OrderedDict | ||
| 21 | 20 | from textwrap import dedent | |
| 22 | - import warnings | ||
| 23 | 21 | ||
| 24 | 22 | from git.compat import ( | |
| 25 | 23 | defenc, | |
@@ -150,7 +148,6 @@ def dashify(string: str) -> str: | |||
| 150 | 148 | ||
| 151 | 149 | ||
| 152 | 150 | def slots_to_dict(self, exclude: Sequence[str] = ()) -> Dict[str, Any]: | |
| 153 | - # annotate self.__slots__ as Tuple[str, ...] once 3.5 dropped | ||
| 154 | 151 | return {s: getattr(self, s) for s in self.__slots__ if s not in exclude} | |
| 155 | 152 | ||
| 156 | 153 | ||
@@ -462,7 +459,7 @@ class CatFileContentStream(object): | |||
| 462 | 459 | If not all data is read to the end of the objects's lifetime, we read the | |
| 463 | 460 | rest to assure the underlying stream continues to work""" | |
| 464 | 461 | ||
| 465 | - __slots__ = ('_stream', '_nbr', '_size') | ||
| 462 | + __slots__: Tuple[str, ...] = ('_stream', '_nbr', '_size') | ||
| 466 | 463 | ||
| 467 | 464 | def __init__(self, size: int, stream: IO[bytes]) -> None: | |
| 468 | 465 | self._stream = stream | |
@@ -1005,13 +1002,6 @@ def transform_kwarg(self, name: str, value: Any, split_single_char_options: bool | |||
| 1005 | 1002 | ||
| 1006 | 1003 | def transform_kwargs(self, split_single_char_options: bool = True, **kwargs: Any) -> List[str]: | |
| 1007 | 1004 | """Transforms Python style kwargs into git command line options.""" | |
| 1008 | - # Python 3.6 preserves the order of kwargs and thus has a stable | ||
| 1009 | - # order. For older versions sort the kwargs by the key to get a stable | ||
| 1010 | - # order. | ||
| 1011 | - if sys.version_info[:2] < (3, 6): | ||
| 1012 | - kwargs = OrderedDict(sorted(kwargs.items(), key=lambda x: x[0])) | ||
| 1013 | - warnings.warn("Python 3.5 support is deprecated and will be removed 2021-09-05.\n" + | ||
| 1014 | - "It does not preserve the order for key-word arguments and enforce lexical sorting instead.") | ||
| 1015 | 1005 | args = [] | |
| 1016 | 1006 | for k, v in kwargs.items(): | |
| 1017 | 1007 | if isinstance(v, (list, tuple)): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments