Skip to content

Commit c278ecd

Browse files
Merge pull request #118 from festim-dev/fix-deployment
dynamic version + copy src before pip install
2 parents 2ce693b + d52ce3f commit c278ecd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ WORKDIR /app
2323
COPY requirements.txt .
2424
RUN pip install --no-cache-dir -r requirements.txt
2525

26-
# Install python core package
26+
# Copy source code and package configuration
2727
COPY pyproject.toml .
28+
COPY src/ ./src/
29+
30+
# Install python core package with setuptools-scm version override
2831
RUN pip install .
2932

3033
# Install gunicorn for production WSGI server
3134
RUN pip install gunicorn
32-
33-
# Copy backend source code
34-
COPY src/ ./src/
3535
# COPY *.py ./
3636

3737
# Copy built frontend from previous stage

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "fuel-cycle-sim"
7-
version = "0.1.0"
7+
dynamic = ["version"]
88
description = "A Python package for fuel cycle simulation with pathsim integration"
99
readme = "README.md"
1010
license = {file = "LICENSE"}
@@ -46,8 +46,8 @@ Issues = "https://github.com/yourusername/fuel-cycle-sim/issues"
4646
packages = ["fuel_cycle_sim"]
4747
package-dir = {"fuel_cycle_sim" = "src/python"}
4848

49-
[tool.setuptools_scm]
50-
write_to = "src/python/_version.py"
51-
5249
[tool.setuptools.package-data]
5350
fuel_cycle_sim = ["templates/*"]
51+
52+
[tool.setuptools_scm]
53+
write_to = "src/python/_version.py"

0 commit comments

Comments
 (0)