Skip to content

Commit

Permalink
Inductance (#19)
Browse files Browse the repository at this point in the history
* update pypi workflow

* update pypi workflow

* add autosummary
  • Loading branch information
dgarnier authored Jun 30, 2023
1 parent 234e1e4 commit bafcf23
Show file tree
Hide file tree
Showing 11 changed files with 818 additions and 219 deletions.
1 change: 0 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- master

jobs:
labeler:
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/inductance
permissions:
id-token: write

steps:
- name: Check out the repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -57,17 +63,12 @@ jobs:
- name: Publish package on PyPI
if: steps.check-version.outputs.tag
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
uses: pypa/[email protected]

- name: Publish package on TestPyPI
if: "! steps.check-version.outputs.tag"
uses: pypa/gh-action-pypi-publish@v1.6.4
uses: pypa/gh-action-pypi-publish@v1.8.7
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish the release notes
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
copyright = "2023, Darren Garnier"
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.napoleon",
"sphinx_click",
"myst_parser",
]
autodoc_typehints = "description"
Expand Down
3 changes: 1 addition & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ end-before: <!-- github-only -->
```{toctree}
---
hidden:
maxdepth: 1
maxdepth: 2
---
usage
reference
contributing
Code of Conduct <codeofconduct>
Expand Down
3 changes: 3 additions & 0 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## inductance

```{eval-rst}
.. autosummary::
:toctree: generated
.. automodule:: inductance
:members:
```
1 change: 0 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
furo==2022.12.7
sphinx==5.3.0
sphinx-click==4.4.0
myst_parser==0.18.1
4 changes: 1 addition & 3 deletions docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Usage

```{eval-rst}
.. click:: pysol.__main__:main
:prog: pysol
:nested: full
```
978 changes: 804 additions & 174 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ repository = "https://github.com/dgarnier/inductance"
python = "^3.8"
numpy = "^1.24"
numba = "^0.57"
click = "^8.0"

[tool.poetry.dev-dependencies]
poetry = "^1.4.0"
Expand Down
12 changes: 0 additions & 12 deletions src/inductance/__main__.py

This file was deleted.

17 changes: 0 additions & 17 deletions tests/test_main.py

This file was deleted.

0 comments on commit bafcf23

Please sign in to comment.