From 790b7193d788543ecaa36004fa7e3156c59b0acd Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 18 Aug 2023 11:16:53 +0200 Subject: [PATCH] Move to pyproject.toml and setuptools_scm --- .github/workflows/ci.yaml | 2 ++ pyproject.toml | 31 +++++++++++++++++++++++++++++++ setup.cfg | 2 -- setup.py | 30 ------------------------------ 4 files changed, 33 insertions(+), 32 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5a8b40f..60a6dfd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,6 +13,8 @@ jobs: fail-fast: true steps: - uses: actions/checkout@v3 + - name: Fetch full git history + run: git fetch --prune --unshallow - name: Set up Conda env uses: mamba-org/setup-micromamba@875557da4ee020f18df03b8910a42203fbf02da1 with: diff --git a/pyproject.toml b/pyproject.toml index 36c37ee..f6c35a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,34 @@ +[build-system] +requires = ["setuptools", "setuptools-scm", "wheel"] + +[tool.setuptools_scm] +version_scheme = "post-release" + +[project] +name = "jupyter_vscode_proxy" +description = "VS Code extension for Jupyter" +readme = "README.md" +dynamic = ["version"] +authors = [ + {name = "Tim Head", email = "noreply@example.com"}, +] +classifiers = [ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Framework :: Juypter", +] +requires-python = ">=3.8" +license = {text = "BSD-3-clause"} + +[project.urls] +repository = "https://github.com/betatim/vscode-binder" + +[project.entry-points.jupyter_serverproxy_servers] +vscode = "jupyter_vscode_proxy:setup_vscode" + [tool.black] exclude = ''' /( diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 8183238..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[metadata] -license_files = LICENSE diff --git a/setup.py b/setup.py deleted file mode 100644 index ce4a661..0000000 --- a/setup.py +++ /dev/null @@ -1,30 +0,0 @@ -import setuptools - -with open("README.md", encoding="utf8") as f: - readme = f.read() - - -setuptools.setup( - name="jupyter-vscode-proxy", - version="0.2", - url="https://github.com/betatim/vscode-binder", - author="Tim Head", - license="BSD", - description="VS Code extension for Jupyter", - long_description=readme, - long_description_content_type="text/markdown", - packages=setuptools.find_packages(), - keywords=["Jupyter", "vscode", "vs code", "editor"], - classifiers=["Framework :: Jupyter"], - install_requires=["jupyter-server-proxy"], - entry_points={ - "jupyter_serverproxy_servers": [ - "vscode = jupyter_vscode_proxy:setup_vscode", - ] - }, - package_data={"jupyter_vscode_proxy": ["icons/*"]}, - project_urls={ - "Source": "https://github.com/betatim/vscode-binder/", - "Tracker": "https://github.com/betatim/vscode-binder/issues", - }, -)