Skip to content

Commit f25b64b

Browse files
committed
refactoring
1 parent cb077fb commit f25b64b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

piper/envs/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88

99
def init_default_env():
10-
# INITIALIZE ENVIRONMENT FROM CONFIGURATION
10+
"""
11+
This method initialize the default environment by the string name from the configuration.
12+
CurrentEnv means default python where piper is installed.
13+
"""
1114
if cfg.default_env == "docker":
1215
set_env(DockerEnv())
1316
elif cfg.default_env == "virtualenv":

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
from setuptools import find_packages, setup
66

7-
# Директория, в которой содержится этот файл
7+
# directory with current setup.py file
88
HERE = pathlib.Path(__file__).parent
9-
# Текст README-файла
9+
10+
# Readme file as text
1011
README = (HERE / "Readme.rst").read_text()
11-
# Автоматически собирает в requirements.txt все модули для install_requires, а также настраивает ссылки на зависимости
12+
13+
# Automatically collects all_modules to requirements.txt for install_requires and set dependency links
1214
with open(path.join(HERE, 'requirements.txt'), encoding='utf-8') as f:
1315
all_reqs = f.read().split('\n')
1416
install_requires = [x.strip() for x in all_reqs if ('git+' not in x) and (

0 commit comments

Comments
 (0)