Skip to content

Commit 858a02d

Browse files
committed
Modify publish.yaml
Signed-off-by: Sorin Birchi <[email protected]>
1 parent c6be1dc commit 858a02d

File tree

6 files changed

+25
-10
lines changed

6 files changed

+25
-10
lines changed

.github/workflows/publish.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,33 @@ on:
77
pull_request:
88
tags:
99
- 'v*'
10+
1011
jobs:
1112
pypi-publish:
1213
name: upload release to PyPI
1314
runs-on: ubuntu-latest
14-
# Specifying a GitHub environment is optional, but strongly encouraged
1515
environment: release
1616
permissions:
17-
# IMPORTANT: this permission is mandatory for trusted publishing
1817
id-token: write
1918
steps:
20-
# retrieve your distributions here
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: '3.x'
26+
27+
- name: Install build dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install build
31+
32+
- name: Build package
33+
run: python -m build
34+
35+
- name: List dist directory contents
36+
run: ls -la dist
2137

2238
- name: Publish package distributions to PyPI
2339
uses: pypa/gh-action-pypi-publish@release/v1

docs_sphinx/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3232
# ones.
3333
extensions = [
34+
"sphinx_rtd_theme",
3435
]
3536

3637
# Add any paths that contain templates here, relative to this directory.

docs_sphinx/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ Welcome to QuantSI's documentation!
1212

1313
user/units
1414
developer/units
15-
usage/usage_comparison
16-
15+
usage_comparison/usage_comparison
1716
modules
1817

1918

20-
2119
Indices and tables
2220
==================
2321

docs_sphinx/modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
unitSI
1+
QuantSI
22
======
33

44
.. toctree::

docs_sphinx/usage comaprison/usage comparison.rst renamed to docs_sphinx/usage_comparison/usage_comparison.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Usage
2-
=====
1+
Usage comparison
2+
================
33

44
In this section, we will compare the usage of QuantSI with another packages.
55
The comparation will be made with Pint and Astropy's units module.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ keywords = ['computational neuroscience', 'simulation', 'system units']
1515
classifiers = [
1616
'Development Status :: 4 - Beta',
1717
'Intended Audience :: Science/Research',
18-
'License :: GPL-3.0',
18+
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
1919
'Natural Language :: English',
2020
'Operating System :: OS Independent',
2121
'Programming Language :: Python',

0 commit comments

Comments
 (0)