Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to src folder? #137

Merged
merged 13 commits into from
Jan 10, 2025
24 changes: 15 additions & 9 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,39 @@ jobs:

- uses: cvxgrp/.github/actions/uv/[email protected]

sphinx:

test:
runs-on: "ubuntu-latest"
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected]
- uses: cvxgrp/.github/actions/uv/[email protected]
with:
source-folder: 'src/cvx'
tests-folder: 'src/tests'

test:
jupyter:
runs-on: "ubuntu-latest"
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/coverage@v2.0.0
- uses: cvxgrp/.github/actions/uv/jupyter@v2.0.0

jupyter:
runs-on: "ubuntu-latest"
pdoc:
runs-on: ubuntu-latest
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected]
- uses: cvxgrp/.github/actions/uv/[email protected]
with:
source-folder: 'src/cvx'

book:
runs-on: "ubuntu-latest"
needs: [test, sphinx, jupyter, marimo]
needs: [test, jupyter, marimo, pdoc]

permissions:
contents: write
Expand All @@ -47,4 +53,4 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/[email protected].0
- uses: cvxgrp/.github/actions/[email protected].2
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected].0
- uses: cvxgrp/.github/actions/uv/[email protected].2
with:
python-version: ${{ matrix.python-version }}
tests-folder: 'src/tests'
7 changes: 6 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected]
- uses: cvxgrp/.github/actions/uv/[email protected]
with:
source-folder: 'src/cvx'
tests-folder: 'src/tests'

- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
Expand All @@ -25,3 +28,5 @@ jobs:
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected]
with:
source-folder: 'src/cvx'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ and encouraged.
```python
import numpy as np

from cvx.bson import read_bson, write_bson
from src.cvx.bson import read_bson, write_bson

data = {"A": np.random.rand(50,50), "B": np.random.rand(50)}
data = {"A": np.random.rand(50, 50), "B": np.random.rand(50)}

write_bson("test.bson", data)
recovered = read_bson("test.bson")
Expand Down
4 changes: 1 addition & 3 deletions book/docs/api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# API

## Sphinx

[API](https://www.cvxgrp.org/cvxbson/sphinx/)
[API](https://www.cvxgrp.org/cvxbson/pdoc/)
4 changes: 2 additions & 2 deletions book/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ and encouraged.
```python
import numpy as np

from cvx.bson import read_bson, write_bson
from src.cvx.bson import read_bson, write_bson

data = {"A": np.random.rand(50,50), "B": np.random.rand(50)}
data = {"A": np.random.rand(50, 50), "B": np.random.rand(50)}

write_bson("test.bson", data)
recovered = read_bson("test.bson")
Expand Down
2 changes: 1 addition & 1 deletion experiment/demo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import polars as pl

from cvx.bson.dataclass import Data
from src.cvx.bson.dataclass import Data


@dataclass(frozen=True)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["cvx"]
packages = ["src/cvx"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading