Skip to content

Commit 6881626

Browse files
committed
feat: Update workflows and setup
1 parent e7156a8 commit 6881626

File tree

4 files changed

+39
-39
lines changed

4 files changed

+39
-39
lines changed

.github/workflows/auto-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
auto-release:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-22.04
1414
# Set skip ci to avoid loops
1515
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
1616
# Set bash as default shell for jobs
@@ -19,7 +19,7 @@ jobs:
1919
shell: bash
2020
steps:
2121
- name: Checkout source
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323
with:
2424
# Fetch all history for all branches and tags
2525
fetch-depth: 0
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflows will upload a Python Package using Twine 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: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-22.04
14+
15+
steps:
16+
- name: Checkout source
17+
uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.11
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install setuptools wheel twine
26+
- name: Build and publish
27+
env:
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
30+
run: |
31+
python setup.py sdist bdist_wheel
32+
twine check dist/*
33+
twine upload dist/*

.github/workflows/pythonpublish.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

setup.cfg

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
name = phys2denoise
33
url = https://github.com/physiopy/phys2denoise
44
download_url = https://github.com/physiopy/phys2denoise
5-
author = phys2denoise developers
6-
maintainer = Stefano Moia
5+
author = The Physiopy Community
6+
maintainer = The Physiopy Community
77
maintainer_email = [email protected]
88
classifiers =
9-
Development Status :: 1 - Planning
9+
Development Status :: 3 - Alpha
1010
Intended Audience :: Science/Research
1111
License :: OSI Approved :: Apache Software License
12-
Programming Language :: Python :: 3.6
13-
Programming Language :: Python :: 3.7
12+
Programming Language :: Python :: 3
1413
license = Apache-2.0
1514
description = Python library to convert physiological data files into BIDS format
1615
long_description = file:README.md

0 commit comments

Comments
 (0)