Skip to content

Commit

Permalink
Changes to versioning and pypi (#27)
Browse files Browse the repository at this point in the history
* Update __version__.py

* Update setup.py

* Update publish-to-pypi.yml
  • Loading branch information
anascacais authored Jan 24, 2024
1 parent bdd840c commit f0ea0ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Publish Python 🐍 distribution 📦 to PyPI

on: push
on:
push:
tags:
- '*'

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion biosppy/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:license: BSD 3-clause, see LICENSE for more details.
"""

VERSION = (1, 0, 0)
VERSION = (2, 1, 2)
__version__ = ".".join(map(str, VERSION))
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,26 @@
import io
import os
import sys
import re
import ast
from shutil import rmtree

from setuptools import find_packages, setup, Command

_version_re = re.compile(r'__version__\s+=\s+(.*)')

with open('biosppy/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))

# Package meta-data.
NAME = 'biosppy'
DESCRIPTION = 'A toolbox for biosignal processing written in Python.'
URL = 'https://github.com/scientisst/BioSPPy'
EMAIL = '[email protected]'
AUTHOR = 'Instituto de Telecomunicacoes'
REQUIRES_PYTHON = '>3.5.2'
VERSION = '2.1.1'
VERSION = version
LICENSE = 'BSD 3-clause'

# What packages are required for this module to be executed?
Expand Down

0 comments on commit f0ea0ea

Please sign in to comment.