Skip to content

Commit

Permalink
reintroduce public nebari package
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed May 30, 2023
1 parent 9ca2bb2 commit cf2cac9
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/kubernetes_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/_nebari/**"
- "src/**"
- "pyproject.toml"
- "pytest.ini"
push:
Expand All @@ -22,7 +22,7 @@ on:
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/_nebari/**"
- "src/**"
- "pyproject.toml"
- "pytest.ini"
workflow_call:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/_nebari/**"
- "src/**"
- "pyproject.toml"
push:
branches:
Expand All @@ -21,7 +21,7 @@ on:
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/_nebari/**"
- "src/**"
- "pyproject.toml"
workflow_call:
inputs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/_nebari/**"
- "src/**"
- "pyproject.toml"
- "pytest.ini"
push:
Expand All @@ -22,7 +22,7 @@ on:
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/_nebari/**"
- "src/**"
- "pyproject.toml"
- "pytest.ini"

Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/_nebari"]
packages = [
"src/_nebari",
"src/nebari",
]

[tool.hatch.version]
source = "vcs"
Expand Down
11 changes: 0 additions & 11 deletions src/_nebari/__main__.py

This file was deleted.

Empty file added src/nebari/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions src/nebari/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import sys

from _nebari.cli.main import app as main

if __name__ == "__main__":
main(sys.argv[1:])
4 changes: 1 addition & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ def run(command):

command = ["nebari", "--version"]

# FIXME: this is only temporary until we have a toplevel nebari package again
# actual = run(["python", "-m", *command])
actual = run(["python", "-m", "_nebari", "--version"])
actual = run(["python", "-m", *command])
expected = run(command)

assert actual == expected
4 changes: 0 additions & 4 deletions tests/test_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

@pytest.mark.conda
def test_build_by_conda_forge(tmp_path):
# FIXME: temporarily disable this because the conda build tries to import nebari
# which is only available in the next commit
return

"""
This test ensures that nebari can be built and packaged by conda-forge.
Expand Down

0 comments on commit cf2cac9

Please sign in to comment.