mirror of
https://github.com/maxkratz/edgedb.git
synced 2024-09-07 23:03:07 +00:00
Move script entrypoints from setup.py
to pyproject.toml
(#6366)
The latest victim of the ongoing march of Python packaging deprecations is the `entry_points` argument. We stopped doing dynamic things to entrypoints in `setup.py` some time ago anyway, so it's an easy fix.
This commit is contained in:
parent
fbc47370af
commit
cc8ef6d958
2 changed files with 6 additions and 11 deletions
|
@ -2,7 +2,7 @@
|
|||
name = "edgedb-server"
|
||||
description = "EdgeDB Server"
|
||||
requires-python = '>=3.10.0'
|
||||
dynamic = ["entry-points", "version"]
|
||||
dynamic = ["version"]
|
||||
dependencies = [
|
||||
'edgedb==1.6.0',
|
||||
|
||||
|
@ -24,6 +24,11 @@ dependencies = [
|
|||
'aiosmtplib~=2.0',
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
edgedb-server = "edb.server.main:main"
|
||||
edb = "edb.tools.edb:edbcommands"
|
||||
edgedb = "edb.cli:rustcli"
|
||||
|
||||
[project.optional-dependencies]
|
||||
test = [
|
||||
'black~=21.7b0',
|
||||
|
|
10
setup.py
10
setup.py
|
@ -918,18 +918,8 @@ def _version():
|
|||
return buildmeta.get_version_from_scm(ROOT_PATH)
|
||||
|
||||
|
||||
_entry_points = {
|
||||
'edgedb-server = edb.server.main:main',
|
||||
'edgedb = edb.cli:rustcli',
|
||||
'edb = edb.tools.edb:edbcommands',
|
||||
}
|
||||
|
||||
|
||||
setuptools.setup(
|
||||
version=_version(),
|
||||
entry_points={
|
||||
"console_scripts": _entry_points,
|
||||
},
|
||||
cmdclass={
|
||||
'build': build,
|
||||
'build_metadata': build_metadata,
|
||||
|
|
Loading…
Reference in a new issue