You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,18 @@ poetry install --with test
26
26
```
27
27
to install the current project and dev dependencies.
28
28
29
+
### Working with a local copy of Finch.jl
30
+
The `develop.py ` script can be used to set up a local copy of Finch.jl for development.
31
+
32
+
```
33
+
Usage:
34
+
develop.py [--restore] [--path <path>]
35
+
36
+
Options:
37
+
--restore Restore the original juliapkg.json file.
38
+
--path Path to the local copy of Finch.jl [default: ../Finch.jl].
39
+
```
40
+
29
41
### Publishing
30
42
31
43
The "Publish" GitHub Action is a manual workflow for publishing Python packages to PyPI using Poetry. It handles the version management based on the `pyproject.toml` file and automates tagging and creating GitHub releases.
--restore Restore the original juliapkg.json file.
19
+
--path Path to the local copy of Finch.jl [default: ../Finch.jl].
20
+
"""
21
+
parser=argparse.ArgumentParser(description="Development script for Finch. This script allows you to specify the location of a local copy of Finch.jl.", usage=usage)
22
+
parser.add_argument("--path", default=os.path.join(script_dir, "../Finch.jl"), help="Path to the Finch.jl package.")
23
+
parser.add_argument("--restore", action="store_true", help="Restore the original juliapkg.json file.")
24
+
args=parser.parse_args()
25
+
26
+
# Handle the --restore flag
27
+
ifargs.restore:
28
+
try:
29
+
shutil.copy(backup_file, source_file)
30
+
print("Restored src/finch/juliapkg.json from backup.")
31
+
exceptFileNotFoundError:
32
+
print("Error: Backup file src/finch/juliapkg.json.orig does not exist.")
33
+
exceptExceptionase:
34
+
print(f"An error occurred: {e}")
35
+
exit()
36
+
37
+
# Set the Finch path
38
+
finch_path=os.path.abspath(args.path)
39
+
40
+
# Define source and destination file paths and copy the file
0 commit comments