Compare commits

...

137 Commits

Author SHA1 Message Date
4e0a5c1b44 bump
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-25 17:50:01 -07:00
f01cb3c62d Merge pull request #41 from KittyCAD/update-spec
Update api spec
2022-07-25 17:49:23 -07:00
908c7efe12 I have generated the latest API! 2022-07-26 00:49:02 +00:00
df3f38ba7d YOYO NEW API SPEC! 2022-07-26 00:45:36 +00:00
e5b9c1020c I HAVE GENERATED YOUR NEW DOCS! 2022-07-26 00:15:59 +00:00
4a5411d0ca Merge pull request #40 from KittyCAD/update-spec
Update api spec
2022-07-25 17:13:23 -07:00
0422a9a4fd I have generated the latest API! 2022-07-26 00:11:22 +00:00
f622646127 YOYO NEW API SPEC! 2022-07-26 00:07:53 +00:00
b8f4106107 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-25 16:46:23 -07:00
b32d37fc48 bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-25 16:44:15 -07:00
650a99936b I HAVE GENERATED YOUR NEW DOCS! 2022-07-25 23:14:36 +00:00
b4d43b584b Merge pull request #39 from KittyCAD/update-spec
Update api spec
2022-07-25 16:11:49 -07:00
0d39b80547 I have generated the latest API! 2022-07-25 22:46:48 +00:00
d86f2560ac YOYO NEW API SPEC! 2022-07-25 22:43:33 +00:00
c5db75b131 fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:43:17 -07:00
0b33d376c2 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:36:12 -07:00
95faa77326 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:36:12 -07:00
39b183c731 I HAVE GENERATED YOUR NEW DOCS! 2022-07-21 20:25:42 +00:00
f408eae3d2 bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:23:39 -07:00
2134a8e5de add json patch
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:22:26 -07:00
8d0ab1a2b8 I HAVE GENERATED YOUR NEW DOCS! 2022-07-21 03:31:10 +00:00
efabead34c update spec
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-20 20:28:19 -07:00
4d2468541c bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-18 21:49:25 -07:00
e7f966bea8 I HAVE GENERATED YOUR NEW DOCS! 2022-07-19 04:46:47 +00:00
147dea9927 Merge pull request #37 from KittyCAD/update-spec-v0.2.3
Update go lang spec docs for v0.2.3
2022-07-18 21:44:19 -07:00
6f2330aa85 I have generated the latest API! 2022-07-19 04:44:07 +00:00
8e7d73973d YOYO NEW GO SPEC DOCS v0.2.3! 2022-07-19 04:41:08 +00:00
8c9d476771 Merge pull request #35 from KittyCAD/dependabot/pip/pytest-asyncio-tw-0.19.0
Update pytest-asyncio requirement from ^0.18.3 to ^0.19.0
2022-07-15 15:07:28 -07:00
96a23c4672 Merge pull request #36 from KittyCAD/update-spec-0.1.6
Update rust lang spec docs for 0.1.6
2022-07-15 15:07:20 -07:00
4f88e5f0a7 I have generated the latest API! 2022-07-15 21:49:46 +00:00
a49aa621ed YOYO NEW RUST SPEC DOCS 0.1.6! 2022-07-15 21:46:55 +00:00
eb0380ef2d Update pytest-asyncio requirement from ^0.18.3 to ^0.19.0
Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Changelog](https://github.com/pytest-dev/pytest-asyncio/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.18.3...v0.19.0)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-15 11:27:58 +00:00
9414ebcc0b I HAVE GENERATED YOUR NEW DOCS! 2022-07-08 01:03:24 +00:00
0c6b538605 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-07 18:00:09 -07:00
905e2094de Merge pull request #34 from KittyCAD/update-spec-0.1.5
Update rust lang spec docs for 0.1.5
2022-07-07 17:59:54 -07:00
4623f854af I have generated the latest API! 2022-07-08 00:56:43 +00:00
3802dd36fc YOYO NEW RUST SPEC DOCS 0.1.5! 2022-07-08 00:53:23 +00:00
a046a9a82b push to correct repo
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-07 17:49:43 -07:00
c795346cd0 I HAVE GENERATED YOUR NEW DOCS! 2022-07-05 23:25:53 +00:00
3bd4326f2c Merge pull request #33 from KittyCAD/update-spec-0.1.4
Update rust lang spec docs for 0.1.4
2022-07-05 16:23:39 -07:00
b08726834a I have generated the latest API! 2022-07-05 23:19:40 +00:00
26954ba9f8 YOYO NEW RUST SPEC DOCS 0.1.4! 2022-07-05 23:16:47 +00:00
20496480f7 I HAVE GENERATED YOUR NEW DOCS! 2022-07-05 22:47:27 +00:00
2c8e9f90d7 Merge pull request #32 from KittyCAD/update-spec-0.1.3
Update rust lang spec docs for 0.1.3
2022-07-05 15:44:38 -07:00
197aa2fc55 fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-05 15:38:49 -07:00
4beba625ed bump the version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-05 15:34:46 -07:00
67a03bdd03 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-05 15:33:51 -07:00
30db5097ff YOYO NEW RUST SPEC DOCS 0.1.3! 2022-07-05 19:27:35 +00:00
b80b69b023 I HAVE GENERATED YOUR NEW DOCS! 2022-06-16 19:06:05 +00:00
9bf4dead4f bump
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-16 12:02:24 -07:00
c727428359 I HAVE GENERATED YOUR NEW DOCS! 2022-06-16 19:01:53 +00:00
055c3bdd8f Merge pull request #29 from KittyCAD/update-spec-0.1.0
Update rust lang spec docs for 0.1.0
2022-06-16 11:58:41 -07:00
55e0cbe58d I have generated the latest API! 2022-06-16 18:58:33 +00:00
851f986d32 YOYO NEW RUST SPEC DOCS 0.1.0! 2022-06-16 18:55:09 +00:00
61ddb1a6d8 I HAVE GENERATED YOUR NEW DOCS! 2022-06-16 01:33:05 +00:00
63b0703ae8 fix for regular spec
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-15 18:29:56 -07:00
c694322a52 bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-15 18:23:57 -07:00
0e24bc5311 I HAVE GENERATED YOUR NEW DOCS! 2022-06-16 01:22:56 +00:00
42e76b4b83 Add failing test to demo to_dict issue 2022-06-15 18:18:42 -07:00
774b8f079c better generatioon
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-15 18:18:19 -07:00
ba8eeca234 Merge pull request #28 from KittyCAD/update-spec-v0.1.6
Update go lang spec docs for v0.1.6
2022-06-15 17:27:09 -07:00
c512fd7f8a YOYO NEW GO SPEC DOCS v0.1.6! 2022-06-16 00:22:46 +00:00
4639d82900 I HAVE GENERATED YOUR NEW DOCS! 2022-06-14 16:23:14 +00:00
39cfd257a8 bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-14 09:20:20 -07:00
82f3361603 update spec
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-14 09:19:55 -07:00
e97a042552 I HAVE GENERATED YOUR NEW DOCS! 2022-06-14 16:13:10 +00:00
65cb520fce Merge pull request #23 from KittyCAD/update-spec-v0.1.5
Update go lang spec docs for v0.1.5
2022-06-14 09:10:33 -07:00
d9067d3292 Merge pull request #25 from KittyCAD/kurt/24-update-codegen-to-handle-query-params
update generate.py to handle query params
2022-06-14 09:10:18 -07:00
2ae59c5ca3 use obj for mass and volume tests 2022-06-14 21:57:15 +10:00
50313ec810 clean up tests 2022-06-14 21:52:17 +10:00
f262b62cb7 I have generated the latest API! 2022-06-14 11:38:28 +00:00
3237e02c10 add tests 2022-06-14 21:35:20 +10:00
374d5bd238 I have generated the latest API! 2022-06-14 10:57:00 +00:00
4933e0106c trigger generate on change to generate.py 2022-06-14 20:53:43 +10:00
f825678307 update generate.py to handle query params 2022-06-14 20:50:22 +10:00
be8df00e51 YOYO NEW GO SPEC DOCS v0.1.5! 2022-06-14 03:17:03 +00:00
58192a56ff I HAVE GENERATED YOUR NEW DOCS! 2022-06-12 01:37:38 +00:00
6103b11ab8 Merge pull request #22 from KittyCAD/update-spec-v0.1.4
Update go lang spec docs for v0.1.4
2022-06-11 18:33:58 -07:00
441db38ca2 fix lint
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 18:30:39 -07:00
61c79305dc bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 18:09:32 -07:00
73cb3ff917 fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 18:08:23 -07:00
7c4321306a fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 17:59:55 -07:00
49b8d2747a first start of fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 17:42:00 -07:00
9dc390a64d initial fixing
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 17:26:20 -07:00
929e7fe993 I HAVE GENERATED YOUR NEW DOCS! 2022-06-11 22:56:27 +00:00
ada7da5eca Merge pull request #20 from KittyCAD/dependabot/pip/httpx-gte-0.15.4-and-lt-0.24.0
Update httpx requirement from >=0.15.4,<0.23.0 to >=0.15.4,<0.24.0
2022-06-11 15:53:37 -07:00
829c9cb0fe Merge pull request #21 from KittyCAD/dependabot/github_actions/actions/setup-python-4
Bump actions/setup-python from 3 to 4
2022-06-11 15:53:29 -07:00
4631ca24cb YOYO NEW GO SPEC DOCS v0.1.4! 2022-06-11 22:53:08 +00:00
b9e1d6fda6 Bump actions/setup-python from 3 to 4
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 11:23:38 +00:00
2efdf57ec3 Update httpx requirement from >=0.15.4,<0.23.0 to >=0.15.4,<0.24.0
Updates the requirements on [httpx](https://github.com/encode/httpx) to permit the latest version.
- [Release notes](https://github.com/encode/httpx/releases)
- [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/httpx/compare/0.15.4...0.23.0)

---
updated-dependencies:
- dependency-name: httpx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-24 11:31:04 +00:00
7f7460d366 I HAVE GENERATED YOUR NEW DOCS! 2022-04-27 20:34:57 +00:00
553db98e51 fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-27 13:32:14 -07:00
699532553b I HAVE GENERATED YOUR NEW DOCS! 2022-04-27 20:26:55 +00:00
4acbbc84ce update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-27 13:22:13 -07:00
02dff4020c cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com>

add more

Signed-off-by: Jess Frazelle <github@jessfraz.com>

update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

u[dates

Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-27 13:21:52 -07:00
7375479cf2 Merge pull request #19 from KittyCAD/update-spec-v0.1.3
Update go lang spec docs for v0.1.3
2022-04-27 12:15:16 -07:00
24d6d17894 Merge pull request #16 from KittyCAD/dependabot/github_actions/actions/setup-go-3
Bump actions/setup-go from 2 to 3
2022-04-27 12:13:30 -07:00
1e67d9d4bd Merge pull request #15 from KittyCAD/dependabot/pip/pytest-asyncio-tw-0.18.3
Update pytest-asyncio requirement from ^0.16.0 to ^0.18.3
2022-04-27 12:13:21 -07:00
53132b1fd8 Merge pull request #14 from KittyCAD/dependabot/pip/sphinx-automodapi-tw-0.14
Update sphinx-automodapi requirement from ^0.13 to ^0.14
2022-04-27 12:13:07 -07:00
a0146d9ea5 Merge pull request #13 from KittyCAD/dependabot/pip/httpx-gte-0.15.4-and-lt-0.23.0
Update httpx requirement from >=0.15.4,<0.21.0 to >=0.15.4,<0.23.0
2022-04-27 12:12:59 -07:00
032f5b17d5 YOYO NEW GO SPEC DOCS v0.1.3! 2022-04-27 19:11:12 +00:00
15ef98b356 Bump actions/setup-go from 2 to 3
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 11:33:58 +00:00
dcd5015cae Update pytest-asyncio requirement from ^0.16.0 to ^0.18.3
Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Changelog](https://github.com/pytest-dev/pytest-asyncio/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.16.0...v0.18.3)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-07 11:42:25 +00:00
219a7f14c2 Update sphinx-automodapi requirement from ^0.13 to ^0.14
Updates the requirements on [sphinx-automodapi](https://github.com/astropy/sphinx-automodapi) to permit the latest version.
- [Release notes](https://github.com/astropy/sphinx-automodapi/releases)
- [Changelog](https://github.com/astropy/sphinx-automodapi/blob/main/CHANGES.rst)
- [Commits](https://github.com/astropy/sphinx-automodapi/compare/v0.13...v0.14.1)

---
updated-dependencies:
- dependency-name: sphinx-automodapi
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-07 11:41:38 +00:00
7f00e3aa25 Update httpx requirement from >=0.15.4,<0.21.0 to >=0.15.4,<0.23.0
Updates the requirements on [httpx](https://github.com/encode/httpx) to permit the latest version.
- [Release notes](https://github.com/encode/httpx/releases)
- [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/httpx/compare/0.15.4...0.22.0)

---
updated-dependencies:
- dependency-name: httpx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-07 11:41:16 +00:00
85a22b9a2a I HAVE GENERATED YOUR NEW DOCS! 2022-04-07 06:24:57 +00:00
a653ebbb66 fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 23:21:41 -07:00
d3dfc556e0 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 23:20:20 -07:00
e96d50f4f0 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 23:18:56 -07:00
16e30e893f I HAVE GENERATED YOUR NEW DOCS! 2022-04-07 06:17:56 +00:00
d81e82cf9c items
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 23:15:12 -07:00
7e536090ad fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 23:15:12 -07:00
429c341f84 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 23:15:11 -07:00
5bcbf4251b I HAVE GENERATED YOUR NEW DOCS! 2022-04-07 06:06:16 +00:00
f28df119ed fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 23:06:10 -07:00
9e96dffb3c fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 23:02:55 -07:00
be68a24e48 I HAVE GENERATED YOUR NEW DOCS! 2022-04-07 05:44:17 +00:00
3e0545f4aa bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 22:41:45 -07:00
0f66979c90 fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 22:41:11 -07:00
16d7e95ce6 Merge pull request #12 from KittyCAD/update-spec-v0.1.0
Update go lang spec docs for v0.1.0
2022-04-06 22:34:16 -07:00
cb257a57d6 YOYO NEW GO SPEC DOCS v0.1.0! 2022-04-07 05:15:57 +00:00
0ae59a5548 I HAVE GENERATED YOUR NEW DOCS! 2022-04-07 04:17:30 +00:00
d9077a00ad bump the version;
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 21:15:39 -07:00
a8d537e29c update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 21:14:32 -07:00
15d5bf50c1 update files
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 21:14:12 -07:00
17b517dd5a update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 20:50:09 -07:00
1408f075ee more fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 20:50:09 -07:00
ed6b2c8e77 I HAVE GENERATED YOUR NEW DOCS! 2022-04-07 03:38:23 +00:00
69c4f8ce70 format
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 20:37:08 -07:00
216b454c14 add more
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 20:35:34 -07:00
0ed9aaf127 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-06 20:35:21 -07:00
c1bc2a8f51 Merge pull request #11 from KittyCAD/update-spec-v0.0.9
Update go lang spec docs for v0.0.9
2022-04-06 19:13:29 -07:00
b7359511a4 YOYO NEW GO SPEC DOCS v0.0.9! 2022-04-07 02:12:48 +00:00
26545d537f Merge pull request #10 from KittyCAD/dependabot/github_actions/codecov/codecov-action-3
Bump codecov/codecov-action from 2 to 3
2022-04-06 18:34:57 -07:00
0ab0bd44a2 Bump codecov/codecov-action from 2 to 3
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-06 11:24:42 +00:00
415f1d9619 I HAVE GENERATED YOUR NEW DOCS! 2022-04-04 19:42:53 +00:00
31f5188454 fix example
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-04-04 12:40:15 -07:00
1178 changed files with 101344 additions and 2858 deletions

View File

@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
@ -47,7 +47,7 @@ jobs:
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
#poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run pytest
shell: bash
@ -57,7 +57,7 @@ jobs:
KITTYCAD_API_TOKEN: ${{secrets.KITTYCAD_API_TOKEN}}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

View File

@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.x

View File

@ -7,6 +7,7 @@ on:
- 'Makefile'
- .github/workflows/generate.yml
- 'spec.json'
- 'generate/generate.py'
workflow_dispatch:
inputs:
jobs:
@ -34,5 +35,6 @@ jobs:
git config --local user.name "github-actions[bot]"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git fetch origin
git add .
git commit -am "I have generated the latest API!" || true
git push origin ${{github.event.pull_request.head.ref }} || true

View File

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
# Installation instructions are from: https://python-poetry.org/docs/

View File

@ -16,9 +16,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: '1.x'
- name: make generate
shell: bash
run: |
@ -27,7 +24,7 @@ jobs:
- name: Ensure no files changed
shell: bash
run: |
if [[ `git status --porcelain` ]]; then
if [[ `git status --porcelain kittycad/` ]]; then
echo "Files changed, exiting";
exit 1;
else
@ -37,30 +34,29 @@ jobs:
# Checkout the docs repo since we will want to update the files there.
- uses: actions/checkout@v3
with:
repository: 'kittycad/docs'
repository: 'kittycad/website'
path: 'docs'
token: ${{secrets.PAT_GITHUB}}
- name: move spec to docs
shell: bash
run: |
rm docs/spec.json || true
cp spec.json docs/spec.json
rm docs/kittycad.py.patch.json || true
cp kittycad.py.patch.json docs/kittycad.py.patch.json
- name: commit the changes in the docs repo
shell: bash
run: |
export VERSION=$(cat VERSION.txt);
cd docs
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -am "YOYO NEW SPEC DOCS ${VERSION}!" || exit 0
git commit -am "YOYO NEW SPEC PYTHON DOCS!" || exit 0
git fetch origin
git rebase origin/main || exit 0
export NEW_BRANCH="update-spec-${VERSION}"
export NEW_BRANCH="update-spec-python"
git checkout -b "$NEW_BRANCH"
git push -f origin "$NEW_BRANCH"
gh pr create --title "Update lang spec docs for ${VERSION}" \
--body "Updating the generated docs for go lang" \
gh pr create --title "Update lang spec docs for python" \
--body "Updating the generated docs for python" \
--head "$NEW_BRANCH" \
--base main || true
env:

1
.gitignore vendored
View File

@ -23,3 +23,4 @@ dmypy.json
/.coverage
poetry.lock
testing

View File

@ -13,14 +13,17 @@ VERSION := $(shell toml get $(CURDIR)/pyproject.toml tool.poetry.version | jq -r
generate: docker-image ## Generate the api client.
docker run --rm -i $(DOCKER_FLAGS) \
--name python-generator \
--disable-content-trust \
-v $(CURDIR):/usr/src \
--workdir /usr/src \
$(DOCKER_IMAGE_NAME) sh -c 'poetry run python generate/generate.py && poetry run autopep8 --in-place --aggressive --aggressive kittycad/models/*.py && poetry run autopep8 --in-place --aggressive --aggressive kittycad/api/*.py && poetry run autopep8 --in-place --aggressive --aggressive kittycad/*.py && poetry run autopep8 --in-place --aggressive --aggressive generate/*.py'
$(DOCKER_IMAGE_NAME) ./generate/run.sh
.PHONY: shell
shell: docker-image ## Pop into a shell in the docker image.
docker run --rm -i $(DOCKER_FLAGS) \
--name python-generator-shell \
-e KITTYCAD_API_TOKEN \
--disable-content-trust \
-v $(CURDIR):/usr/src \
--workdir /usr/src \
$(DOCKER_IMAGE_NAME) /bin/bash

1942
assets/testing.obj Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 74989a7dc76cd38543fd6db0578bbfeb
config: 5195ef48a347bca86116b482d77effa9
tags: 645f666f9bcd5a90fca523b33c5a78b7

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More