Skip to content

Commit

Permalink
version stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Jul 12, 2024
1 parent d55395a commit d101161
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,5 @@ frontend/node_modules
node_modules/

# Data
server/curfu/data
server/src/curfu/data
client/node_modules
8 changes: 7 additions & 1 deletion server/src/curfu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
"""Fusion curation interface."""
import logging
from importlib.metadata import PackageNotFoundError, version
from os import environ
from pathlib import Path

from .version import __version__
try:
__version__ = version("{{ cookiecutter.project_slug }}")
except PackageNotFoundError:
__version__ = "unknown"
finally:
del version, PackageNotFoundError

# provide consistent paths
APP_ROOT = Path(__file__).resolve().parents[0]
Expand Down
2 changes: 1 addition & 1 deletion server/src/curfu/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from starlette.templating import _TemplateResponse as TemplateResponse

from curfu import APP_ROOT
from curfu import __version__ as curfu_version
from curfu.domain_services import DomainService
from curfu.gene_services import GeneService
from curfu.routers import (
Expand All @@ -19,7 +20,6 @@
utilities,
validate,
)
from curfu.version import __version__ as curfu_version

fastapi_app = FastAPI(
title="Fusion Curation API",
Expand Down
2 changes: 1 addition & 1 deletion server/src/curfu/routers/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from fastapi import APIRouter
from fusor import __version__ as fusor_version

from curfu import __version__ as curfu_version
from curfu.schemas import RouteTag, ServiceInfoResponse
from curfu.version import __version__ as curfu_version

router = APIRouter()

Expand Down
2 changes: 0 additions & 2 deletions server/src/curfu/version.py

This file was deleted.

0 comments on commit d101161

Please sign in to comment.