Skip to content

Commit

Permalink
Copy tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jul 16, 2024
1 parent fc8fb60 commit 611a762
Show file tree
Hide file tree
Showing 3 changed files with 1,329 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/generate_workflows_lib/hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
class CustomBuildHook(BuildHookInterface):

def initialize(self, version, build_data):
print(version)
print(build_data)
print(Path(__file__))

with open(
Path(__file__).parent.parent.parent.parent.joinpath("tox.ini")
) as tox_ini_file_0:
with open(
Path(__file__).parent.joinpath("src/generate_workflows_lib/tox.ini"), "w"
) as tox_ini_file_1:
tox_ini_file_1.write(tox_ini_file_0.read())
3 changes: 3 additions & 0 deletions .github/workflows/generate_workflows_lib/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ dependencies = ["Jinja2", "tox"]
path = "src/generate_workflows_lib/version.py"

[tool.hatch.build.targets.wheel.hooks.custom]

# [tool.hatch.build]
# include = ["tox.ini"]
Loading

0 comments on commit 611a762

Please sign in to comment.