forked from PIA-Group/BioSPPy
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to versioning and pypi (#27)
* Update __version__.py * Update setup.py * Update publish-to-pypi.yml
- Loading branch information
1 parent
bdd840c
commit f0ea0ea
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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? | ||
|