Skip to content

Commit 83349d4

Browse files
authored
Rename the package to gel (#566)
Though we still need to figure out if it is worth also building and releasing parallel edgedb packages, or what. Or maybe just releasing one final broken edgedb 3.0 package the redirects to gel?
1 parent 8f40d0e commit 83349d4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

setup.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import sys
2121

2222
if sys.version_info < (3, 8):
23-
raise RuntimeError('edgedb requires Python 3.8 or greater')
23+
raise RuntimeError('gel requires Python 3.8 or greater')
2424

2525
import os
2626
import os.path
@@ -161,15 +161,15 @@ class sdist(setuptools_sdist.sdist, VersionMixin):
161161

162162
def make_release_tree(self, base_dir, files):
163163
super().make_release_tree(base_dir, files)
164-
self._fix_version(pathlib.Path(base_dir) / 'edgedb' / '_version.py')
164+
self._fix_version(pathlib.Path(base_dir) / 'gel' / '_version.py')
165165

166166

167167
class build_py(setuptools_build_py.build_py, VersionMixin):
168168

169169
def build_module(self, module, module_file, package):
170170
outfile, copied = super().build_module(module, module_file, package)
171171

172-
if module == '_version' and package == 'edgedb':
172+
if module == '_version' and package == 'gel':
173173
self._fix_version(outfile)
174174

175175
return outfile, copied
@@ -243,13 +243,13 @@ def finalize_options(self):
243243
import Cython
244244
except ImportError:
245245
raise RuntimeError(
246-
'please install {} to compile edgedb from source'.format(
246+
'please install {} to compile gel from source'.format(
247247
CYTHON_DEPENDENCY))
248248

249249
cython_dep = pkg_resources.Requirement.parse(CYTHON_DEPENDENCY)
250250
if Cython.__version__ not in cython_dep:
251251
raise RuntimeError(
252-
'edgedb requires {}, got Cython=={}'.format(
252+
'gel requires {}, got Cython=={}'.format(
253253
CYTHON_DEPENDENCY, Cython.__version__
254254
))
255255

@@ -284,7 +284,7 @@ def finalize_options(self):
284284

285285
setup_requires = []
286286

287-
if (not (_ROOT / 'edgedb' / 'protocol' / 'protocol.c').exists() or
287+
if (not (_ROOT / 'gel' / 'protocol' / 'protocol.c').exists() or
288288
'--cython-always' in sys.argv):
289289
# No Cython output, require Cython to build.
290290
setup_requires.append(CYTHON_DEPENDENCY)
@@ -295,9 +295,9 @@ def finalize_options(self):
295295

296296

297297
setuptools.setup(
298-
name='edgedb',
298+
name='gel',
299299
version=VERSION,
300-
description='EdgeDB Python driver',
300+
description='Gel Python driver',
301301
long_description=readme,
302302
platforms=['macOS', 'POSIX', 'Windows'],
303303
author='MagicStack Inc',

0 commit comments

Comments
 (0)