Skip to content

Commit 4ed5ace

Browse files
authored
Merge branch 'master' into development-1.1.4
2 parents f0f9616 + 5127d8d commit 4ed5ace

File tree

4 files changed

+41
-2
lines changed

4 files changed

+41
-2
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflows will upload a Python Package using pypa/gh-action-pypi-publish@master when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build-n-publish:
12+
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
13+
runs-on: ubuntu-18.04
14+
steps:
15+
- uses: actions/checkout@master
16+
- name: Set up Python 3.x
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.x
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install setuptools wheel
24+
- name: Build a binary wheel and a source tarball
25+
run: |
26+
python setup.py sdist bdist_wheel
27+
- name: Publish distribution 📦 to Test PyPI
28+
uses: pypa/gh-action-pypi-publish@master
29+
with:
30+
user: __token__
31+
password: ${{ secrets.test_pypi_password }}
32+
repository_url: https://test.pypi.org/legacy/
33+
- name: Publish distribution 📦 to PyPI
34+
if: startsWith(github.event.ref, 'refs/tags')
35+
uses: pypa/gh-action-pypi-publish@master
36+
with:
37+
user: __token__
38+
password: ${{ secrets.pypi_password }}

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
theme: jekyll-theme-cayman

labfis/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
# Local imports
99
from labfis.main import labfloat
10-
labfloat
10+
labfloat

labfis/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def split(self):
7777
else:
7878
m, u = self.format()
7979
return(["{:g}".format(m),"{:g}".format(u)])
80-
80+
8181
def tex(self,*args,**kwargs):
8282
precision = kwargs.get('precision')
8383
if args:

0 commit comments

Comments
 (0)