Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
echo "REGISTRY=$REGISTRY" >> $GITHUB_ENV
echo "Publishing to $REGISTRY"

# versioneer requires the full git history for non-tags
# git requires the full git history for non-tags
- uses: actions/checkout@v5
with:
fetch-depth: 0
Expand All @@ -111,7 +111,8 @@ jobs:
# also push jupyter/repo2docker:1.2.3-3.abcd1234 (replace + with -)
- name: Get list of repo2docker docker tags
run: |
VERSION=$(python3 -c 'import versioneer; print(versioneer.get_version().replace("+", "-"))')
pip install setuptools-scm
VERSION=$(python3 -m setuptools_scm | sed s@+@-@g)
TAGS="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:$VERSION"
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
TAGS="$TAGS,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main"
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,5 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

repo2docker/_version.py
7 changes: 0 additions & 7 deletions MANIFEST.in

This file was deleted.

69 changes: 69 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "jupyter-repo2docker"
dynamic = ["version"]
description = "repo2docker: Turn code repositories into Jupyter enabled Docker Images"
readme = "README.md"
license = "BSD-3-Clause"
authors = [
{name = "Project Jupyter Contributors", email = "[email protected]"}
]
maintainers = [
{name = "Project Jupyter Contributors", email = "[email protected]"}
]
keywords = ["reproducible", "science", "environments", "docker"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Topic :: System :: Systems Administration",
]
requires-python = ">=3.9"
dependencies = [
"chardet",
"docker!=5.0.0",
"entrypoints",
"escapism",
"iso8601",
"jinja2",
"python-json-logger",
"requests",
"ruamel.yaml>=0.15",
"semver",
"toml",
"traitlets",
]

[project.urls]
Homepage = "https://repo2docker.readthedocs.io"
Documentation = "https://repo2docker.readthedocs.io"
Funding = "https://jupyter.org/about"
Source = "https://github.com/jupyterhub/repo2docker"
Tracker = "https://github.com/jupyterhub/repo2docker/issues"

[project.scripts]
jupyter-repo2docker = "repo2docker.__main__:main"
repo2docker = "repo2docker.__main__:main"

[project.entry-points."repo2docker.engines"]
docker = "repo2docker.docker:DockerEngine"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
where = [""]
include = ["repo2docker"]


[tool.setuptools_scm]
write_to = "repo2docker/_version.py"
12 changes: 6 additions & 6 deletions repo2docker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from ._version import get_versions
try:
from ._version import __version__
except ImportError:
__version__ = "0.0.0+unknown"

__version__ = get_versions()["version"]
del get_versions

from . import _version
from .app import Repo2Docker

__version__ = _version.get_versions()["version"]
# You can add this if you want an __all__ variable to control imports
__all__ = ["__version__", "Repo2Docker"]
Loading
Loading