Skip to content

Commit

Permalink
ci: changelog wasn't include in setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
jug-dev committed Apr 11, 2023
1 parent bae4e00 commit b6a6175
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ jobs:
# Build a changelog
- name: "🔧 Prepare our build for release"
if: ${{ steps.release.outputs.version != '' }}
env:
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
run: >-
python build_helper.py
Expand Down
17 changes: 0 additions & 17 deletions build_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,8 @@ def patch_toml(unpatch=False):
outfile.writelines(newfile)


def dump_changelog():
if os.path.exists("CHANGELOG.md"):
print(os.listdir())
else:
print("NO CHANGELOG.md")
try:
with open("CHANGELOG.md") as infile:
contents = infile.read()
print(contents)
except IOError:
pass

# with open("CHANGELOG.md", "wt") as outfile:
# outfile.write(os.getenv("CHANGELOG", "coming soon"))


patch_requirements()
patch_toml()
dump_changelog()

# try:
# run(["python", "-m", "build"])
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ dynamic=["version"]
"Homepage" = "https://github.com/jug-dev/hordelib"
"Bug Tracker" = "https://github.com/jug-dev/hordelib/issues"

[tool.setuptools]
license-files = ["LICENSE", "CHANGELOG*"]

[tool.setuptools_scm]
write_to = "hordelib/_version.py"

Expand Down Expand Up @@ -55,7 +58,6 @@ testpaths = [
"tests"
]


[tool.black]
# Exclude ComfyUI and any packages we have installed in nodes/
exclude = '''
Expand Down Expand Up @@ -106,4 +108,4 @@ select = [
]

[tool.ruff.per-file-ignores]
"comfy_horde.py" = ["I001", "F401"]
"comfy_horde.py" = ["I001", "F401"]

0 comments on commit b6a6175

Please sign in to comment.