Skip to content

Commit

Permalink
Modify publish.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Sorin Birchi <sb.birchi.sorin@gmail.com>
  • Loading branch information
Sorin Birchi committed Aug 25, 2024
1 parent c6be1dc commit 858a02d
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,33 @@ on:
pull_request:
tags:
- 'v*'

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: List dist directory contents
run: ls -la dist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions docs_sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx_rtd_theme",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
4 changes: 1 addition & 3 deletions docs_sphinx/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ Welcome to QuantSI's documentation!

user/units
developer/units
usage/usage_comparison

usage_comparison/usage_comparison
modules



Indices and tables
==================

Expand Down
2 changes: 1 addition & 1 deletion docs_sphinx/modules.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unitSI
QuantSI
======

.. toctree::
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Usage
=====
Usage comparison
================

In this section, we will compare the usage of QuantSI with another packages.
The comparation will be made with Pint and Astropy's units module.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ keywords = ['computational neuroscience', 'simulation', 'system units']
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: GPL-3.0',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
Expand Down

0 comments on commit 858a02d

Please sign in to comment.