-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1187 from datajoint/migrate-pyproject
Replace setup.py with pyproject.toml
- Loading branch information
Showing
14 changed files
with
142 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
ARG IMAGE=jupyter/docker-stacks-foundation | ||
ARG PY_VER=3.9 | ||
ARG DISTRO=debian | ||
ARG IMAGE=mambaorg/micromamba:1.5-bookworm-slim | ||
FROM ${IMAGE} | ||
RUN conda install -y -n base -c conda-forge python=${PY_VER} && \ | ||
conda clean -afy | ||
COPY --chown=anaconda:anaconda ./setup.py ./datajoint.pub ./requirements.txt /main/ | ||
COPY --chown=anaconda:anaconda ./datajoint /main/datajoint | ||
|
||
ARG CONDA_BIN=micromamba | ||
ARG PY_VER=3.9 | ||
ARG HOST_UID=1000 | ||
|
||
RUN ${CONDA_BIN} install --no-pin -qq -y -n base -c conda-forge \ | ||
python=${PY_VER} pip setuptools git graphviz pydot && \ | ||
${CONDA_BIN} clean -qq -afy | ||
ENV PATH="$PATH:/home/mambauser/.local/bin" | ||
|
||
COPY --chown=${HOST_UID:-1000}:mambauser ./pyproject.toml ./README.md ./LICENSE.txt /main/ | ||
COPY --chown=${HOST_UID:-1000}:mambauser ./datajoint /main/datajoint | ||
|
||
VOLUME /src | ||
WORKDIR /src | ||
USER root | ||
RUN \ | ||
pip install --no-cache-dir /main && \ | ||
chown -R ${HOST_UID:-1000}:mambauser /main && \ | ||
chown -R ${HOST_UID:-1000}:mambauser /src && \ | ||
${CONDA_BIN} run -n base pip install -q --no-cache-dir /main && \ | ||
rm -r /main/* | ||
USER ${MAMBA_USER} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
[project] | ||
name = "datajoint" | ||
version = "0.14.2" | ||
dependencies = [ | ||
"numpy", | ||
"pymysql>=0.7.2", | ||
"pyparsing", | ||
"ipython", | ||
"pandas", | ||
"tqdm", | ||
"networkx", | ||
"pydot", | ||
"minio>=7.0.0", | ||
"matplotlib", | ||
"otumat", | ||
"faker", | ||
"cryptography", | ||
"urllib3" | ||
] | ||
requires-python = ">=3.8,<4.0" | ||
authors = [ | ||
{name = "Dimitri Yatsenko", email = "dimitri@datajoint.com"}, | ||
{name = "Raphael Guzman"}, | ||
{name = "Edgar Walker"}, | ||
{name = "DataJoint Contributors", email = "support@datajoint.com"}, | ||
] | ||
maintainers = [ | ||
{name = "Dimitri Yatsenko", email = "dimitri@datajoint.com"}, | ||
{name = "DataJoint Contributors", email = "support@datajoint.com"}, | ||
] | ||
description = "A relational data pipeline framework." | ||
readme = "README.md" | ||
license = {file = "LICENSE.txt"} | ||
keywords = [ | ||
"database", | ||
"data pipelines", | ||
"scientific computing", | ||
"automated research workflows", | ||
] | ||
classifiers = [ | ||
"Programming Language :: Python" | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest", | ||
"pytest-cov", | ||
"black==24.2.0", | ||
"flake8", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://datajoint.com/docs" | ||
Documentation = "https://datajoint.com/docs" | ||
Repository = "https://github.com/datajoint/datajoint-python" | ||
"Bug Tracker" = "https://github.com/datajoint/datajoint-python/issues" | ||
Changelog = "https://github.com/datajoint/datajoint-python/blob/master/CHANGELOG.md" | ||
|
||
[project.entry-points."console_scripts"] | ||
dj = "datajoint.cli:cli" | ||
datajoint = "datajoint.cli:cli" | ||
|
||
[tool.setuptools] | ||
packages = ["datajoint"] | ||
|
||
[build-system] | ||
requires = [ | ||
"setuptools>=60", | ||
"setuptools-scm>=8.0" | ||
] | ||
build-backend = "setuptools.build_meta" |
Oops, something went wrong.