diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9a22194..bb03bd4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/build_helper.py b/build_helper.py index 86f72853..f3e3d357 100644 --- a/build_helper.py +++ b/build_helper.py @@ -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"]) diff --git a/pyproject.toml b/pyproject.toml index f663aece..8eecca9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -55,7 +58,6 @@ testpaths = [ "tests" ] - [tool.black] # Exclude ComfyUI and any packages we have installed in nodes/ exclude = ''' @@ -106,4 +108,4 @@ select = [ ] [tool.ruff.per-file-ignores] -"comfy_horde.py" = ["I001", "F401"] \ No newline at end of file +"comfy_horde.py" = ["I001", "F401"]