fabricatio 0.2.1.dev0__tar.gz → 0.2.1.dev1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/.github/workflows/tests.yaml +39 -39
  2. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/.gitignore +166 -166
  3. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/LICENSE +21 -21
  4. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/Makefile +26 -26
  5. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/PKG-INFO +380 -381
  6. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/README.md +379 -379
  7. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/examples/llm_usages/llm_usage.py +60 -60
  8. fabricatio-0.2.1.dev1/examples/make_diary/commits.json +23 -0
  9. fabricatio-0.2.1.dev1/examples/make_diary/diary.py +96 -0
  10. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/examples/minor/hello_fabricatio.py +31 -31
  11. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/examples/propose_task/propose.py +33 -33
  12. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/examples/simple_chat/chat.py +33 -33
  13. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/examples/task_handle/handle_task.py +88 -88
  14. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/pyproject.toml +1 -5
  15. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/__init__.py +37 -37
  16. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/_rust_instances.py +8 -8
  17. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/actions/__init__.py +5 -5
  18. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/actions/communication.py +15 -15
  19. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/actions/transmission.py +23 -23
  20. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/config.py +263 -263
  21. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/core.py +167 -167
  22. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/fs/__init__.py +5 -5
  23. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/fs/curd.py +130 -130
  24. fabricatio-0.2.1.dev1/python/fabricatio/fs/readers.py +43 -0
  25. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/journal.py +28 -28
  26. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/action.py +139 -139
  27. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/advanced.py +128 -128
  28. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/events.py +82 -82
  29. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/generic.py +152 -144
  30. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/kwargs_types.py +26 -26
  31. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/role.py +48 -48
  32. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/task.py +276 -276
  33. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/usages.py +75 -19
  34. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/utils.py +78 -78
  35. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/parser.py +93 -93
  36. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/toolboxes/__init__.py +17 -17
  37. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/toolboxes/arithmetic.py +62 -62
  38. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/toolboxes/fs.py +15 -15
  39. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/toolboxes/task.py +6 -6
  40. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/src/hash.rs +16 -16
  41. fabricatio-0.2.1.dev1/templates.tar.gz +0 -0
  42. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/tests/test_models/test_task.py +101 -101
  43. fabricatio-0.2.1.dev1/uv.lock +1582 -0
  44. fabricatio-0.2.1.dev0/examples/task_handle/README.md +0 -72
  45. fabricatio-0.2.1.dev0/examples/task_handle/cli.py +0 -25
  46. fabricatio-0.2.1.dev0/python/fabricatio/fs/readers.py +0 -24
  47. fabricatio-0.2.1.dev0/readme.typ +0 -2
  48. fabricatio-0.2.1.dev0/uv.lock +0 -1587
  49. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/.github/workflows/build-package.yaml +0 -0
  50. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/.github/workflows/ruff.yaml +0 -0
  51. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/.python-version +0 -0
  52. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/Cargo.lock +0 -0
  53. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/Cargo.toml +0 -0
  54. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/_rust.pyi +0 -0
  55. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/decorators.py +0 -0
  56. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/models/tool.py +0 -0
  57. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/python/fabricatio/py.typed +0 -0
  58. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/src/lib.rs +0 -0
  59. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/src/templates.rs +0 -0
  60. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/binary-exploitation-ctf-solver.hbs +0 -0
  61. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/claude-xml.hbs +0 -0
  62. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/clean-up-code.hbs +0 -0
  63. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/cryptography-ctf-solver.hbs +0 -0
  64. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/dependencies.hbs +0 -0
  65. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/document-the-code.hbs +0 -0
  66. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/draft_tool_usage_code.hbs +0 -0
  67. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/find-security-vulnerabilities.hbs +0 -0
  68. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/fix-bugs.hbs +0 -0
  69. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/improve-performance.hbs +0 -0
  70. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/make_choice.hbs +0 -0
  71. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/make_judgment.hbs +0 -0
  72. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/propose_task.hbs +0 -0
  73. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/refactor.hbs +0 -0
  74. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/reverse-engineering-ctf-solver.hbs +0 -0
  75. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/task_briefing.hbs +0 -0
  76. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/web-ctf-solver.hbs +0 -0
  77. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/write-git-commit.hbs +0 -0
  78. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/write-github-pull-request.hbs +0 -0
  79. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/templates/built-in/write-github-readme.hbs +0 -0
  80. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/tests/test_config.py +0 -0
  81. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/tests/test_models/test_action.py +0 -0
  82. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/tests/test_models/test_advanced.py +0 -0
  83. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/tests/test_models/test_generic.py +0 -0
  84. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/tests/test_models/test_role.py +0 -0
  85. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/tests/test_models/test_tool.py +0 -0
  86. {fabricatio-0.2.1.dev0 → fabricatio-0.2.1.dev1}/tests/test_models/test_usages.py +0 -0
@@ -1,39 +1,39 @@
1
- name: Tests
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- pull_request:
8
- branches:
9
- - master
10
-
11
- jobs:
12
- test:
13
- runs-on: ${{ matrix.os }}
14
- strategy:
15
- matrix:
16
- os: [ windows-latest, ubuntu-latest ]
17
- steps:
18
- - name: Checkout repository
19
- uses: actions/checkout@v4
20
-
21
- - name: Install the latest version of uv
22
- uses: astral-sh/setup-uv@v5
23
- with:
24
- version: "latest"
25
-
26
- - name: Install nightly rust
27
- run: |
28
- rustup default nightly
29
-
30
- - name: Install deps
31
- run: |
32
- uv sync --no-install-project --all-extras --index https://pypi.org/simple
33
- make dev
34
- - name: Test
35
- run: |
36
- uvx --with-editable . pytest tests
37
-
38
-
39
-
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ matrix:
16
+ os: [ windows-latest, ubuntu-latest ]
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Install the latest version of uv
22
+ uses: astral-sh/setup-uv@v5
23
+ with:
24
+ version: "latest"
25
+
26
+ - name: Install nightly rust
27
+ run: |
28
+ rustup default nightly
29
+
30
+ - name: Install deps
31
+ run: |
32
+ uv sync --no-install-project --all-extras --index https://pypi.org/simple
33
+ make dev
34
+ - name: Test
35
+ run: |
36
+ uvx --with-editable . pytest tests
37
+
38
+
39
+
@@ -1,166 +1,166 @@
1
- ### Python template
2
- # Byte-compiled / optimized / DLL files
3
- __pycache__/
4
- *.py[cod]
5
- *$py.class
6
-
7
- # C extensions
8
- *.so
9
-
10
- # Distribution / packaging
11
- .Python
12
- build/
13
- develop-eggs/
14
- dist/
15
- downloads/
16
- eggs/
17
- .eggs/
18
- lib/
19
- lib64/
20
- parts/
21
- sdist/
22
- var/
23
- wheels/
24
- share/python-wheels/
25
- *.egg-info/
26
- .installed.cfg
27
- *.egg
28
- MANIFEST
29
-
30
- # PyInstaller
31
- # Usually these files are written by a python script from a template
32
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
- *.manifest
34
- *.spec
35
-
36
- # Installer logs
37
- pip-log.txt
38
- pip-delete-this-directory.txt
39
-
40
- # Unit test / coverage reports
41
- htmlcov/
42
- .tox/
43
- .nox/
44
- .coverage
45
- .coverage.*
46
- .cache
47
- nosetests.xml
48
- coverage.xml
49
- *.cover
50
- *.py,cover
51
- .hypothesis/
52
- .pytest_cache/
53
- cover/
54
-
55
- # Translations
56
- *.mo
57
- *.pot
58
-
59
- # Django stuff:
60
- *.log
61
- local_settings.py
62
- db.sqlite3
63
- db.sqlite3-journal
64
-
65
- # Flask stuff:
66
- instance/
67
- .webassets-cache
68
-
69
- # Scrapy stuff:
70
- .scrapy
71
-
72
- # Sphinx documentation
73
- docs/_build/
74
-
75
- # PyBuilder
76
- .pybuilder/
77
- target/
78
-
79
- # Jupyter Notebook
80
- .ipynb_checkpoints
81
-
82
- # IPython
83
- profile_default/
84
- ipython_config.py
85
-
86
- # pyenv
87
- # For a library or package, you might want to ignore these files since the code is
88
- # intended to run in multiple environments; otherwise, check them in:
89
- # .python-version
90
-
91
- # pipenv
92
- # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
- # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
- # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
- # install all needed dependencies.
96
- #Pipfile.lock
97
-
98
- # poetry
99
- # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100
- # This is especially recommended for binary packages to ensure reproducibility, and is more
101
- # commonly ignored for libraries.
102
- # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103
- #poetry.lock
104
-
105
- # pdm
106
- # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107
- #pdm.lock
108
- # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109
- # in version control.
110
- # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
111
- .pdm.toml
112
- .pdm-python
113
- .pdm-build/
114
-
115
- # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116
- __pypackages__/
117
-
118
- # Celery stuff
119
- celerybeat-schedule
120
- celerybeat.pid
121
-
122
- # SageMath parsed files
123
- *.sage.py
124
-
125
- # Environments
126
- .env
127
- .venv
128
- env/
129
- venv/
130
- ENV/
131
- env.bak/
132
- venv.bak/
133
-
134
- # Spyder project settings
135
- .spyderproject
136
- .spyproject
137
-
138
- # Rope project settings
139
- .ropeproject
140
-
141
- # mkdocs documentation
142
- /site
143
-
144
- # mypy
145
- .mypy_cache/
146
- .dmypy.json
147
- dmypy.json
148
-
149
- # Pyre type checker
150
- .pyre/
151
-
152
- # pytype static type analyzer
153
- .pytype/
154
-
155
- # Cython debug symbols
156
- cython_debug/
157
-
158
- # PyCharm
159
- # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
- # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
- # and can be added to the global gitignore or merged into this file. For a more nuclear
162
- # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
- .idea/
164
- *playground*
165
-
166
- extra/scripts
1
+ ### Python template
2
+ # Byte-compiled / optimized / DLL files
3
+ __pycache__/
4
+ *.py[cod]
5
+ *$py.class
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # poetry
99
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103
+ #poetry.lock
104
+
105
+ # pdm
106
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107
+ #pdm.lock
108
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109
+ # in version control.
110
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
111
+ .pdm.toml
112
+ .pdm-python
113
+ .pdm-build/
114
+
115
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116
+ __pypackages__/
117
+
118
+ # Celery stuff
119
+ celerybeat-schedule
120
+ celerybeat.pid
121
+
122
+ # SageMath parsed files
123
+ *.sage.py
124
+
125
+ # Environments
126
+ .env
127
+ .venv
128
+ env/
129
+ venv/
130
+ ENV/
131
+ env.bak/
132
+ venv.bak/
133
+
134
+ # Spyder project settings
135
+ .spyderproject
136
+ .spyproject
137
+
138
+ # Rope project settings
139
+ .ropeproject
140
+
141
+ # mkdocs documentation
142
+ /site
143
+
144
+ # mypy
145
+ .mypy_cache/
146
+ .dmypy.json
147
+ dmypy.json
148
+
149
+ # Pyre type checker
150
+ .pyre/
151
+
152
+ # pytype static type analyzer
153
+ .pytype/
154
+
155
+ # Cython debug symbols
156
+ cython_debug/
157
+
158
+ # PyCharm
159
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
162
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
+ .idea/
164
+ *playground*
165
+
166
+ extra/scripts/*
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Whth Yotta
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Whth Yotta
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,27 +1,27 @@
1
- DIST:=dist
2
- DATA:=extra
3
-
4
-
5
-
6
- all:bdist
7
-
8
- tools:
9
- cargo build --all --bins -Z unstable-options --artifact-dir $(DATA)/scripts --release
10
- mkdir -p $(DATA)/scripts
11
- rm $(DATA)/scripts/*.pdb || true
12
- rm $(DATA)/scripts/*.dwarf || true
13
-
14
- dev: tools
15
- uvx --with-editable . maturin develop --uv -r
16
-
17
- bdist:clean tools
18
- uvx --with-editable . maturin sdist -o $(DIST)
19
- uvx --with-editable . maturin build -r -o $(DIST)
20
-
21
- clean:
22
- rm -rf $(DIST) $(DATA)
23
-
24
- publish:tools
25
- uvx --with-editable . maturin publish --skip-existing
26
- uvx --with-editable . maturin upload --skip-existing $(DIST)/*
1
+ DIST:=dist
2
+ DATA:=extra
3
+
4
+
5
+
6
+ all:bdist
7
+
8
+ tools:
9
+ cargo build --all --bins -Z unstable-options --artifact-dir $(DATA)/scripts --release
10
+ mkdir -p $(DATA)/scripts
11
+ rm $(DATA)/scripts/*.pdb || true
12
+ rm $(DATA)/scripts/*.dwarf || true
13
+
14
+ dev: tools
15
+ uvx --with-editable . maturin develop --uv -r
16
+
17
+ bdist:clean tools
18
+ uvx --with-editable . maturin sdist -o $(DIST)
19
+ uvx --with-editable . maturin build -r -o $(DIST)
20
+
21
+ clean:
22
+ rm -rf $(DIST) $(DATA)
23
+
24
+ publish:tools
25
+ uvx --with-editable . maturin publish --skip-existing
26
+ uvx --with-editable . maturin upload --skip-existing $(DIST)/*
27
27
  .PHONY: tools