diff --git a/pyproject.toml b/pyproject.toml index b2fa2825..f1d706bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" + [project] name = "papermill" -dynamic = ["version"] description = "Parameterize and run Jupyter and nteract Notebooks" readme = "README.md" license = "BSD-3-clause" @@ -43,105 +43,7 @@ dependencies = [ "tenacity >= 5.0.2", "tqdm >= 4.32.2", ] - -[project.optional-dependencies] -all = [ - "azure-datalake-store >= 0.0.30", - "azure-identity>=1.3.1", - "azure-storage-blob >= 12.1.0", - "black >= 23.11.0", - "boto3", - "gcsfs>=0.2.0", - "pyarrow >= 2.0", - "PyGithub >= 1.55", - "requests >= 2.21.0", -] -azure = [ - "azure-datalake-store >= 0.0.30", - "azure-identity>=1.3.1", - "azure-storage-blob >= 12.1.0", - "requests >= 2.21.0", -] -dev = [ - "attrs>=17.4.0", - "azure-datalake-store >= 0.0.30", - "azure-identity>=1.3.1", - "azure-storage-blob >= 12.1.0", - "black >= 23.11.0", - "boto3", - "boto3", - "botocore", - "bumpversion", - "check-manifest", - "codecov", - "coverage", - "flake8", - "Flake8-pyproject", - "gcsfs>=0.2.0", - "google_compute_engine", - "ipython>=5.0", - "ipywidgets", - "moto", - "notebook", - "pip>=18.1", - "pre-commit", - "pytest-cov>=2.6.1", - "pytest-env>=0.6.2", - "pytest-mock>=1.10", - "pytest>=4.1", - "recommonmark", - "requests >= 2.21.0", - "requests >= 2.21.0", - "setuptools>=38.6.0", - "twine>=1.11.0", - "wheel>=0.31.0", -] -gcs = [ - "gcsfs>=0.2.0", -] -github = [ - "PyGithub >= 1.55", -] -hdfs = [ - "pyarrow >= 2.0", -] -s3 = [ - "boto3", -] -test = [ - "attrs>=17.4.0", - "azure-datalake-store >= 0.0.30", - "azure-identity>=1.3.1", - "azure-storage-blob >= 12.1.0", - "black >= 23.11.0", - "boto3", - "boto3", - "botocore", - "bumpversion", - "check-manifest", - "codecov", - "coverage", - "flake8", - "gcsfs>=0.2.0", - "google_compute_engine", - "ipython>=5.0", - "ipywidgets", - "moto", - "notebook", - "pip>=18.1", - "pre-commit", - "pytest-cov>=2.6.1", - "pytest-env>=0.6.2", - "pytest-mock>=1.10", - "pytest>=4.1", - "recommonmark", - "requests >= 2.21.0", - "requests >= 2.21.0", - "setuptools>=38.6.0", - "tox", - "twine>=1.11.0", - "wheel>=0.31.0", -] +dynamic = ["version"] [project.scripts] papermill = "papermill.__main__:papermill" @@ -154,14 +56,16 @@ Source = "https://github.com/nteract/papermill/" Tracker = "https://github.com/nteract/papermill/issues" [tool.hatch.version] -path = "papermill/version.py" +source = "vcs" + +[tool.hatch.build.hooks.vcs] +version-file = "papermill/version.py" [tool.hatch.build.targets.sdist] include = [ "/papermill", ] -# Test environment [[tool.hatch.envs.test.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] @@ -206,28 +110,17 @@ cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_ no-cov = "cov --no-cov" [tool.hatch.envs.docs] -template="default" -extra-dependencies = [ - "azure-datalake-store >= 0.0.30", - "azure-identity>=1.3.1", - "azure-storage-blob >= 12.1.0", - "black >= 23.11.0", - "boto3", - "entrypoints", - "furo>=2023.9.10", - "gcsfs>=0.2.0", - "moto>=4.2.8", - "myst-parser>=2.0.0", - "nbformat", - "pyarrow >= 2.0", - "PyGithub >= 1.55", - "requests >= 2.21.0", +dependencies = [ "sphinx-copybutton>=0.5.2", + "sphinx-autobuild", "Sphinx>=7.2.6", ] + [tool.hatch.envs.docs.scripts] build = "sphinx-build docs docs_out --color -W -bhtml" -build-ci = "sphinx-build docs docs_out --color -W -bhtml" +clean = "rm -rf docs_out" +serve = "sphinx-autobuild docs docs_out/index.html" +ci-build = "sphinx-build docs docs_out --color -W -bhtml" [tool.pytest.ini_options] minversion = "6.0"