Skip to content

Commit 318f461

Browse files
committed
Remove legacy code to support Python 3.8
1 parent 17ae369 commit 318f461

File tree

4 files changed

+24
-23
lines changed

4 files changed

+24
-23
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gitman is a language-agnostic dependency manager using Git. It aims to serve as
1717

1818
### Requirements
1919

20-
- Python 3.8+
20+
- Python 3.9+
2121
- Git 2.8+ (with [stored credentials](http://gitman.readthedocs.io/en/latest/setup/git/))
2222

2323
### Installation

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ requests==2.32.5 ; python_version >= "3.9" and python_version < "4.0"
6565
rope==0.14.0 ; python_version >= "3.9" and python_version < "4.0"
6666
ruamel-yaml-clib==0.2.8 ; python_version >= "3.9" and python_version < "3.11" and platform_python_implementation == "CPython"
6767
ruamel-yaml==0.17.21 ; python_version >= "3.9" and python_version < "4.0"
68-
setuptools==70.0.0 ; python_version >= "3.9" and python_version < "4.0"
68+
setuptools==80.9.0 ; python_version >= "3.9" and python_version < "4.0"
6969
six==1.16.0 ; python_version >= "3.9" and python_version < "4.0"
7070
sly==0.5 ; python_version >= "3.9" and python_version < "4.0"
7171
sniffer==0.4.1 ; python_version >= "3.9" and python_version < "4.0"
@@ -76,6 +76,6 @@ types-freezegun==1.1.10 ; python_version >= "3.9" and python_version < "4.0"
7676
types-setuptools==65.3.0 ; python_version >= "3.9" and python_version < "4.0"
7777
typing-extensions==4.3.0 ; python_version >= "3.9" and python_version < "4.0"
7878
universal-startfile==0.2 ; python_version >= "3.9" and python_version < "4.0"
79-
urllib3==1.26.19 ; python_version >= "3.9" and python_version < "4.0"
79+
urllib3==2.5.0 ; python_version >= "3.9" and python_version < "4.0"
8080
watchdog==2.1.9 ; python_version >= "3.9" and python_version < "4.0"
8181
zipp==3.19.1 ; python_version >= "3.9" and python_version < "4.0"

gitman/models/config.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import sys
32
from typing import Iterator, List, Optional
43

54
import log
@@ -450,12 +449,8 @@ def find_nested_configs(
450449

451450

452451
def _resolve_current_directory():
453-
start = os.getcwd()
454-
if sys.version_info < (3, 8) and os.name == "nt":
455-
log.warn("Python 3.8+ is required to resolve virtual drives on Windows")
456-
else:
457-
start = os.path.realpath(start)
458-
os.chdir(start)
452+
start = os.path.realpath(os.getcwd())
453+
os.chdir(start)
459454
return start
460455

461456

poetry.lock

Lines changed: 19 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)