Skip to content

Commit

Permalink
updated twine cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Berguin, Steven committed Nov 18, 2024
1 parent 2b5ec36 commit a0ab2fd
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 31 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,28 +106,28 @@ jobs:
repository-url: https://upload.pypi.org/legacy/
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
# - name: Sign the dists with Sigstore
# uses: sigstore/gh-action-sigstore-python@v2.1.1
# with:
# inputs: >-
# ./dist/*.tar.gz
# ./dist/*.whl
# - name: Create GitHub Release
# env:
# GITHUB_TOKEN: ${{ github.token }}
# run: >-
# gh release create
# '${{ github.ref_name }}'
# --repo '${{ github.repository }}'
# --notes ""
# - name: Upload artifact signatures to GitHub Release
# env:
# GITHUB_TOKEN: ${{ github.token }}
# # Upload to GitHub Release using the `gh` CLI.
# # `dist/` contains the built packages, and the
# # sigstore-produced signatures and certificates.
# run: >-
# gh release upload
# '${{ github.ref_name }}' dist/**
# --repo '${{ github.repository }}'
- name: Sign the dists with Sigstore
uses: sigstore/gh-action-sigstore-python@v2.1.1
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--notes ""
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## v0.0.1 (2024-11-18)

- First release of `ipysensitivityprofiler`
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# ipysensitivityprofiler

<!-- [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/shb84/ipysensitivityprofiler.git/main?labpath=notebooks) -->

Jupyter Widgets for visualizing local sensitivities of vectorized functions with signature `y = f(x)` where `x,y` are arrays.


---
## Installation

Expand All @@ -10,14 +13,14 @@ pip install ipysensitivityprofiler
```

---
## Example
## Example

Example notebooks are avilable for download on [GitHub]() and hosted on [binder.org]().
Example notebooks are available for download on [GitHub](https://github.com/shb84/ipysensitivityprofiler/tree/main/notebooks) and hosted on [binder](https://mybinder.org/v2/gh/shb84/ipysensitivityprofiler.git/main?labpath=notebooks).

---
## Documentation

Documentation is available [here](TODO) (generated using [`sphinx`](https://www.sphinx-doc.org/en/master/))
Documentation is available [here](https://shb84.github.io/ipysensitivityprofiler/) (generated using [`sphinx`](https://www.sphinx-doc.org/en/master/))

---
## Usage
Expand Down
3 changes: 3 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ changing) and the response surface of interest.
Example Usage
-------------

.. .. image:: https://mybinder.org/badge_logo.svg
.. :target: https://mybinder.org/v2/gh/shb84/ipysensitivityprofiler.git/main?labpath=notebooks
.. collapse:: show code

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,5 @@ build-docs = { cmd = "sphinx-build -b html docs/source build/docs/html", inputs
build = { depends-on = ["build-docs", "build-dist"] }

[tool.pixi.feature.release.tasks]
release-test = { cmd = "python -m twine upload build/dist/* --verbose --skip-existing --repository testpypi", inputs = ["src/**/*.py"] }
# actual release is done via GitHub actions
release = { depends-on = ["release-test"] }
release-testpypi = { cmd = "python -m twine upload build/dist/* --verbose --skip-existing --repository testpypi", inputs = ["src/**/*.py"] }
release-pypi = { cmd = "python -m twine upload build/dist/* --verbose --skip-existing", inputs = ["src/**/*.py"] }

0 comments on commit a0ab2fd

Please sign in to comment.