Skip to content

Commit

Permalink
added setup for cdiff component
Browse files Browse the repository at this point in the history
  • Loading branch information
RAHenriksen committed Nov 20, 2024
1 parent d175015 commit c490ce3
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ git pull origin main --tags
LATEST_COMMIT=$(git rev-parse HEAD)
echo "Updated commit hash of cdiff_fbi after update: $LATEST_COMMIT"

# print the latest tag of ecoli_fbi
# print the latest tag of cdiff_fbi
LATEST_TAG_COMMIT=$(git tag --sort=-creatordate --format '%(objectname)'|head -1)
LATEST_TAG=$(git tag --sort=-creatordate|head -1)

echo "Checking commit hash for the latest tag of ecoli_fbi: $LATEST_TAG_COMMIT"
echo "Checking the lastest tag of ecoli_fbi: $LATEST_TAG"
echo "Checking commit hash for the latest tag of cdiff_fbi: $LATEST_TAG_COMMIT"
echo "Checking the lastest tag of cdiff_fbi: $LATEST_TAG"

git checkout $LATEST_TAG_COMMIT

Expand Down
31 changes: 31 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[bumpversion]
current_version = 0.0.1
parse = ((?P<major>\d+))(.(?P<minor>\d+))(.(?P<patch>\d+))
serialize = {major}.{minor}.{patch}
commit = True
tag = True

[metadata]
description-file = README.md

[bumpversion:file:setup.py]
search = version='{current_version}'
replace = version='{new_version}'

[bumpversion:file:bifrost_sp_cdiff/config.yaml]
search = {current_version}
replace = {new_version}

[bumpversion:file:bifrost_sp_cdiff/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'

[bumpversion:file:tests/test_simple.py]
search = component_name = "sp_cdiff__v{current_version}"
replace = component_name = "sp_cdiff__v{new_version}"

[tool:pytest]
minversion = 6.0
addopts = -ra -q --durations=0
testpaths =
tests
19 changes: 19 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from setuptools import setup, find_namespace_packages

setup(
name='bifrost_sp_cdiff',
version='0.0.1',
description='Cdiff serotyping and stx typing for Bifrost',
url='https://github.com/ssi-dk/bifrost_sp_cdiff',
author='Rasmus',
author_email='[email protected]',
license='MIT',
packages=find_namespace_packages(),
install_requires=[
'bifrostlib >= 2.1.9',
'biopython>=1.77'
],
python_requires='>=3.11',
package_data={'bifrost_sp_cdiff': ['config.yaml', 'pipeline.smk']},
include_package_data=True
)

0 comments on commit c490ce3

Please sign in to comment.