Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
include:
- python-version: "3.11"
- python-version: "3.12"
- python-version: "3.13"
- python-version: "3.10"
steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.10
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
Expand All @@ -24,9 +24,8 @@ jobs:
- name: Build a binary wheel and a source tarball
run: |
cd src
sed -i 's/^version = ".*"$/version = "'${GITHUB_REF_NAME#v}'"/' pyproject.toml
python -m build --sdist --wheel --outdir dist/ .
env:
BUILD_TAG: ${{ github.ref_name }}

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def replace_environment_variables_with_empty_unset(self, value):
default_value = matches.group("defaultvalue")
if env_var is None or len(env_var) == 0:
env_var = default_value
escaped = re.sub(r"([*+?{}])", r"\\\1", matches[0]) # escape special characters
escaped = re.sub(r"([*+?{}])", r"\\\1", matches[0]) # escape special characters
value = self.update_value_with_resolved_environment(f"\\{escaped}", env_var, value)
matches = capture.search(value)
return value
Expand Down
22 changes: 22 additions & 0 deletions src/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[project]
name = "pycomposefile"
version = "0.0.1a1"
description = "Structured deserialization of Docker Compose files."
readme = "README.md"
authors = [
{ name = "Steven Murawski", email = "steven.murawski@microsoft.com" },
]
requires-python = ">=3.6"
dependencies = ["pyyaml"]
keywords = ["docker", "compose"]
license = "MIT"

[project.urls]
Homepage = "https://github.com/smurawski/pycomposefile"

[tool.flit.sdist]
include = ["tests/"]

[build-system]
requires = ["flit_core >=3.11,<4"]
build-backend = "flit_core.buildapi"
22 changes: 0 additions & 22 deletions src/setup.py

This file was deleted.