Skip to content

Commit dac8050

Browse files
authored
Merge branch 'develop' into pixi_prefered_installation
2 parents 67bfa64 + 9d3312e commit dac8050

4 files changed

Lines changed: 6 additions & 21 deletions

File tree

docs/development.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ After the image was configured you can use it like a self installed env ::
162162

163163

164164

165+
165166
Code Style
166167
----------
167168

mslib/mscolab/migrations/versions/922e4d9c94e2_to_version_10_0_0.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ def upgrade():
2121
# ### commands auto generated by Alembic - please adjust! ###
2222
with op.batch_alter_table('users', schema=None) as batch_op:
2323
batch_op.add_column(sa.Column('profile_image_path', sa.String(length=255), nullable=True))
24-
24+
op.execute("UPDATE changes SET version_name = NULL WHERE version_name = 'None';")
25+
op.execute("UPDATE changes SET comment = NULL WHERE comment = 'None';")
2526
# ### end Alembic commands ###
2627

2728

2829
def downgrade():
2930
# ### commands auto generated by Alembic - please adjust! ###
3031
with op.batch_alter_table('users', schema=None) as batch_op:
3132
batch_op.drop_column('profile_image_path')
32-
33+
op.execute("UPDATE changes SET version_name = 'None' WHERE version_name IS NULL;")
34+
op.execute("UPDATE changes SET comment = 'None' WHERE comment IS NULL;")
3335
# ### end Alembic commands ###

requirements.d/development.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ pytest-cov
1212
sphinx
1313
sphinx_rtd_theme
1414
sphinxcontrib-video
15-
gitpython
1615
pynco
1716
conda-verify
1817
pytest-reverse

tests/constants.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,13 @@
2828
import os
2929
import fs
3030
import tempfile
31-
import logging
3231
from fs.tempfs import TempFS
3332

34-
try:
35-
import git
36-
except ImportError:
37-
SHA = ""
38-
else:
39-
path = os.path.dirname(os.path.realpath(__file__))
40-
repo = git.Repo(path, search_parent_directories=True)
41-
logging.debug(path)
42-
try:
43-
# this is for local development important to get a fresh named tmpdir
44-
SHA = repo.head.object.hexsha[0:10]
45-
except (ValueError, BrokenPipeError) as ex:
46-
logging.debug("Unknown Problem: %s", ex)
47-
# mounted dir in docker container and owner is not root
48-
SHA = ""
49-
5033
CACHED_CONFIG_FILE = None
5134
SERVER_CONFIG_FILE = "mswms_settings.py"
5235
MSCOLAB_CONFIG_FILE = "mscolab_settings.py"
5336
MSCOLAB_AUTH_FILE = "mscolab_auth.py"
54-
ROOT_FS = TempFS(identifier=f"msui{SHA}")
37+
ROOT_FS = TempFS(identifier="msui")
5538
OSFS_URL = ROOT_FS.geturl("", purpose="fs")
5639

5740
ROOT_DIR = ROOT_FS.getsyspath("")

0 commit comments

Comments
 (0)