Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/python_deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
source-repo-names: '["public-noremote-conda-dev"]'
conda-channels: '["conda-forge"]'
publish-repo-names: '["public-noremote-conda-dev"]'
build-experimental: true
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
Expand Down
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,23 @@ style = "pep440"
vcs = "git"

[tool.poetry-dynamic-versioning.substitution]
files = ["surface_apps/_version.py", "recipe.yaml"]
files = ["surface_apps/_version.py", "_version.json"]
patterns = [
{ value = '''(^__version__\s*(?::.*?)?=\s*['"])[^'"]*(['"])''', mode = "str" },
{ value = '''(^\s*version\s*(?::.*?)?:\s*['"])[^'"]*(['"])''', mode = "str" },
'''(^__version__\s*(?::.*?)?=\s*['"])[^'"]*(['"])''',
'''(^{\s*"version"\s*:\s*")[^"]*("\s*})''',
]

[tool.poetry-dynamic-versioning.files."surface_apps/_version.py"]
persistent-substitution = true
initial-content = """
# Version placeholder that will be replaced during substitution
__version__ = "0.0.0"
__version__ = "0.0.0.dev0"
"""

[tool.poetry-dynamic-versioning.files."recipe.yaml"]
[tool.poetry-dynamic-versioning.files."_version.json"]
persistent-substitution = true
initial-content = """
{ "version": "0.0.0.dev0" }
"""

[tool.conda-lock]
platforms = ['win-64', 'linux-64']
Expand Down
5 changes: 3 additions & 2 deletions recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ schema_version: 1

context:
name: "surface-apps"
version: "0.0.0.dev0" # This will be replaced by the actual version in the build process
python_min: "3.10"
# Extract version from auto-generated _version.json
version: ${{ load_from_file("_version.json").version | trim }}
Comment on lines +5 to +6
Comment on lines +5 to +6
python_min: '3.10'

package:
name: ${{ name|lower }}
Expand Down
Loading