-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from HEnquist/include_env_files
Include env files
- Loading branch information
Showing
11 changed files
with
141 additions
and
64 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = (2, 0, 0) | ||
VERSION = (2, 0, 1) |
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import yaml | ||
import os | ||
|
||
from jinja2 import Environment, FileSystemLoader | ||
|
||
from backend.version import VERSION | ||
|
||
script_dir = os.path.dirname(__file__) | ||
|
||
with open(os.path.join(script_dir, "versions.yml")) as f: | ||
versions = yaml.safe_load(f) | ||
|
||
versions["backend_version"] = ".".join(str(v) for v in VERSION) | ||
|
||
environment = Environment(loader=FileSystemLoader(os.path.join(script_dir, "templates/"))) | ||
|
||
filenames = [ | ||
"requirements.txt", | ||
"cdsp_conda.yml", | ||
"pyproject.toml", | ||
] | ||
|
||
for filename in filenames: | ||
t = environment.get_template(filename + ".j2") | ||
|
||
# render and write | ||
rendered = t.render(versions) | ||
with open(filename, mode="w", encoding="utf-8") as f: | ||
f.write(rendered) |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{# Template for conda environment file -#} | ||
--- | ||
name: camillagui | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- pip | ||
- aiohttp | ||
- pip: | ||
- "git+https://github.com/HEnquist/pycamilladsp.git@{{ pycamilladsp_tag }}" | ||
- "camilladsp-plot[plot]@git+https://github.com/HEnquist/pycamilladsp-plot.git@{{ pycamilladsp_plot_tag }}" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[tool.poetry] | ||
name = "camillagui-backend" | ||
version = "{{ backend_version }}" | ||
description = "Backend server for CamillaGUI" | ||
authors = ["Henrik Enquist <henrik[email protected]>"] | ||
license = "GPLv3" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.12" | ||
websocket-client = "^1.6.4" | ||
jsonschema = "^4.20.0" | ||
aiohttp = "^3.9.0" | ||
numpy = "^1.26.0" | ||
camilladsp = {git = "https://github.com/HEnquist/pycamilladsp.git", rev = "{{ pycamilladsp_tag }}"} | ||
camilladsp-plot = {git = "https://github.com/HEnquist/pycamilladsp-plot.git", rev = "{{ pycamilladsp_plot_tag }}"} | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{# Template for pip requirements file -#} | ||
aiohttp | ||
git+https://github.com/HEnquist/pycamilladsp.git@{{ pycamilladsp_tag }} | ||
camilladsp-plot[plot]@git+https://github.com/HEnquist/pycamilladsp-plot.git@{{ pycamilladsp_plot_tag }} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
camillagui_tag: v2.0.0 | ||
pycamilladsp_tag: v2.0.2 | ||
pycamilladsp_plot_tag: v2.0.0 |