Skip to content

Commit e15324c

Browse files
Cleanup references to previous repository name of python-api-client (#217)
* Cleanup references to previous repository name of python-api-client No functional changes
1 parent 03f8c0d commit e15324c

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

mergin/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _print_unhandled_exception():
143143

144144

145145
@click.group(
146-
epilog=f"Copyright (C) 2019-{date.today().year} Lutra Consulting\n\n(mergin-py-client v{__version__} / pygeodiff v{GeoDiff().version()})"
146+
epilog=f"Copyright (C) 2019-{date.today().year} Lutra Consulting\n\n(python-api-client v{__version__} / pygeodiff v{GeoDiff().version()})"
147147
)
148148
@click.option(
149149
"--url",

mergin/client_pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ def download_files_async(
786786
mp.log.info(f"Got project info. version {project_info['version']}")
787787

788788
# set temporary directory for download
789-
temp_dir = tempfile.mkdtemp(prefix="mergin-py-client-")
789+
temp_dir = tempfile.mkdtemp(prefix="python-api-client-")
790790

791791
if output_paths is None:
792792
output_paths = []

mergin/client_push.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def push_project_async(mc, directory):
124124
changes = filter_changes(mc, project_info, changes)
125125
mp.log.debug("push changes:\n" + pprint.pformat(changes))
126126

127-
tmp_dir = tempfile.TemporaryDirectory(prefix="mergin-py-client-")
127+
tmp_dir = tempfile.TemporaryDirectory(prefix="python-api-client-")
128128

129129
# If there are any versioned files (aka .gpkg) that are not updated through a diff,
130130
# we need to make a temporary copy somewhere to be sure that we are uploading full content.

mergin/merginproject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def project_id(self) -> str:
162162
163163
Raises ClientError if project id is not present in the project metadata. This should
164164
only happen with projects downloaded with old client, before February 2023,
165-
see https://github.com/MerginMaps/mergin-py-client/pull/154
165+
see https://github.com/MerginMaps/python-api-client/pull/154
166166
"""
167167
self._read_metadata()
168168

@@ -810,7 +810,7 @@ def resolve_unfinished_pull(self, user_name):
810810

811811
self.log.info("resolving unfinished pull")
812812

813-
temp_dir = tempfile.mkdtemp(prefix="mergin-py-client-")
813+
temp_dir = tempfile.mkdtemp(prefix="python-api-client-")
814814

815815
for root, dirs, files in os.walk(self.unfinished_pull_dir):
816816
for file_name in files:

mergin/test/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ def test_available_storage_validation(mcStorage):
803803
def test_available_storage_validation2(mc, mc2):
804804
"""
805805
Testing of storage limit - should not be applied for user pushing changes into project with different namespace.
806-
This should cover the exception of mergin-py-client that a user can push changes to someone else's project regardless
806+
This should cover the exception of python-api-client that a user can push changes to someone else's project regardless
807807
the user's own storage limitation. Of course, other limitations are still applied (write access, owner of
808808
a modified project has to have enough free storage).
809809

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
setup(
77
name='mergin-client',
88
version='0.9.2',
9-
url='https://github.com/MerginMaps/mergin-py-client',
9+
url='https://github.com/MerginMaps/python-api-client',
1010
license='MIT',
1111
author='Lutra Consulting Ltd.',
1212
author_email='info@merginmaps.com',

0 commit comments

Comments
 (0)