Compare commits
107 Commits
Author | SHA1 | Date | |
---|---|---|---|
0b33d376c2 | |||
95faa77326 | |||
39b183c731 | |||
f408eae3d2 | |||
2134a8e5de | |||
8d0ab1a2b8 | |||
efabead34c | |||
4d2468541c | |||
e7f966bea8 | |||
147dea9927 | |||
6f2330aa85 | |||
8e7d73973d | |||
8c9d476771 | |||
96a23c4672 | |||
4f88e5f0a7 | |||
a49aa621ed | |||
eb0380ef2d | |||
9414ebcc0b | |||
0c6b538605 | |||
905e2094de | |||
4623f854af | |||
3802dd36fc | |||
a046a9a82b | |||
c795346cd0 | |||
3bd4326f2c | |||
b08726834a | |||
26954ba9f8 | |||
20496480f7 | |||
2c8e9f90d7 | |||
197aa2fc55 | |||
4beba625ed | |||
67a03bdd03 | |||
30db5097ff | |||
b80b69b023 | |||
9bf4dead4f | |||
c727428359 | |||
055c3bdd8f | |||
55e0cbe58d | |||
851f986d32 | |||
61ddb1a6d8 | |||
63b0703ae8 | |||
c694322a52 | |||
0e24bc5311 | |||
42e76b4b83 | |||
774b8f079c | |||
ba8eeca234 | |||
c512fd7f8a | |||
4639d82900 | |||
39cfd257a8 | |||
82f3361603 | |||
e97a042552 | |||
65cb520fce | |||
d9067d3292 | |||
2ae59c5ca3 | |||
50313ec810 | |||
f262b62cb7 | |||
3237e02c10 | |||
374d5bd238 | |||
4933e0106c | |||
f825678307 | |||
be8df00e51 | |||
58192a56ff | |||
6103b11ab8 | |||
441db38ca2 | |||
61c79305dc | |||
73cb3ff917 | |||
7c4321306a | |||
49b8d2747a | |||
9dc390a64d | |||
929e7fe993 | |||
ada7da5eca | |||
829c9cb0fe | |||
4631ca24cb | |||
b9e1d6fda6 | |||
2efdf57ec3 | |||
7f7460d366 | |||
553db98e51 | |||
699532553b | |||
4acbbc84ce | |||
02dff4020c | |||
7375479cf2 | |||
24d6d17894 | |||
1e67d9d4bd | |||
53132b1fd8 | |||
a0146d9ea5 | |||
032f5b17d5 | |||
15ef98b356 | |||
dcd5015cae | |||
219a7f14c2 | |||
7f00e3aa25 | |||
85a22b9a2a | |||
a653ebbb66 | |||
d3dfc556e0 | |||
e96d50f4f0 | |||
16e30e893f | |||
d81e82cf9c | |||
7e536090ad | |||
429c341f84 | |||
5bcbf4251b | |||
f28df119ed | |||
9e96dffb3c | |||
be68a24e48 | |||
3e0545f4aa | |||
0f66979c90 | |||
16d7e95ce6 | |||
cb257a57d6 | |||
0ae59a5548 |
2
.github/workflows/build-test.yml
vendored
2
.github/workflows/build-test.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
2
.github/workflows/generate-docs.yml
vendored
2
.github/workflows/generate-docs.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
||||||
|
2
.github/workflows/generate.yml
vendored
2
.github/workflows/generate.yml
vendored
@ -7,6 +7,7 @@ on:
|
|||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
- .github/workflows/generate.yml
|
- .github/workflows/generate.yml
|
||||||
- 'spec.json'
|
- 'spec.json'
|
||||||
|
- 'generate/generate.py'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
jobs:
|
jobs:
|
||||||
@ -34,5 +35,6 @@ jobs:
|
|||||||
git config --local user.name "github-actions[bot]"
|
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 remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
||||||
git fetch origin
|
git fetch origin
|
||||||
|
git add .
|
||||||
git commit -am "I have generated the latest API!" || true
|
git commit -am "I have generated the latest API!" || true
|
||||||
git push origin ${{github.event.pull_request.head.ref }} || true
|
git push origin ${{github.event.pull_request.head.ref }} || true
|
||||||
|
2
.github/workflows/make-release.yml
vendored
2
.github/workflows/make-release.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v3
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
# Installation instructions are from: https://python-poetry.org/docs/
|
# Installation instructions are from: https://python-poetry.org/docs/
|
||||||
|
13
.github/workflows/update-spec-for-docs.yml
vendored
13
.github/workflows/update-spec-for-docs.yml
vendored
@ -16,9 +16,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: '1.x'
|
|
||||||
- name: make generate
|
- name: make generate
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -27,7 +24,7 @@ jobs:
|
|||||||
- name: Ensure no files changed
|
- name: Ensure no files changed
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ `git status --porcelain` ]]; then
|
if [[ `git status --porcelain kittycad/` ]]; then
|
||||||
echo "Files changed, exiting";
|
echo "Files changed, exiting";
|
||||||
exit 1;
|
exit 1;
|
||||||
else
|
else
|
||||||
@ -37,14 +34,14 @@ jobs:
|
|||||||
# Checkout the docs repo since we will want to update the files there.
|
# Checkout the docs repo since we will want to update the files there.
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: 'kittycad/docs'
|
repository: 'kittycad/website'
|
||||||
path: 'docs'
|
path: 'docs'
|
||||||
token: ${{secrets.PAT_GITHUB}}
|
token: ${{secrets.PAT_GITHUB}}
|
||||||
- name: move spec to docs
|
- name: move spec to docs
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
rm docs/spec.json || true
|
rm docs/kittycad.py.patch.json || true
|
||||||
cp spec.json docs/spec.json
|
cp kittycad.py.patch.json docs/kittycad.py.patch.json
|
||||||
- name: commit the changes in the docs repo
|
- name: commit the changes in the docs repo
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -56,7 +53,7 @@ jobs:
|
|||||||
git commit -am "YOYO NEW SPEC DOCS ${VERSION}!" || exit 0
|
git commit -am "YOYO NEW SPEC DOCS ${VERSION}!" || exit 0
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git rebase origin/main || exit 0
|
git rebase origin/main || exit 0
|
||||||
export NEW_BRANCH="update-spec-${VERSION}"
|
export NEW_BRANCH="update-spec-python"
|
||||||
git checkout -b "$NEW_BRANCH"
|
git checkout -b "$NEW_BRANCH"
|
||||||
git push -f origin "$NEW_BRANCH"
|
git push -f origin "$NEW_BRANCH"
|
||||||
gh pr create --title "Update lang spec docs for ${VERSION}" \
|
gh pr create --title "Update lang spec docs for ${VERSION}" \
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ dmypy.json
|
|||||||
/.coverage
|
/.coverage
|
||||||
|
|
||||||
poetry.lock
|
poetry.lock
|
||||||
|
testing
|
||||||
|
5
Makefile
5
Makefile
@ -13,14 +13,17 @@ VERSION := $(shell toml get $(CURDIR)/pyproject.toml tool.poetry.version | jq -r
|
|||||||
generate: docker-image ## Generate the api client.
|
generate: docker-image ## Generate the api client.
|
||||||
docker run --rm -i $(DOCKER_FLAGS) \
|
docker run --rm -i $(DOCKER_FLAGS) \
|
||||||
--name python-generator \
|
--name python-generator \
|
||||||
|
--disable-content-trust \
|
||||||
-v $(CURDIR):/usr/src \
|
-v $(CURDIR):/usr/src \
|
||||||
--workdir /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
|
.PHONY: shell
|
||||||
shell: docker-image ## Pop into a shell in the docker image.
|
shell: docker-image ## Pop into a shell in the docker image.
|
||||||
docker run --rm -i $(DOCKER_FLAGS) \
|
docker run --rm -i $(DOCKER_FLAGS) \
|
||||||
--name python-generator-shell \
|
--name python-generator-shell \
|
||||||
|
-e KITTYCAD_API_TOKEN \
|
||||||
|
--disable-content-trust \
|
||||||
-v $(CURDIR):/usr/src \
|
-v $(CURDIR):/usr/src \
|
||||||
--workdir /usr/src \
|
--workdir /usr/src \
|
||||||
$(DOCKER_IMAGE_NAME) /bin/bash
|
$(DOCKER_IMAGE_NAME) /bin/bash
|
||||||
|
1942
assets/testing.obj
Normal file
1942
assets/testing.obj
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
# Sphinx build info version 1
|
# 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.
|
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||||
config: 16fc25f14c46711649e711cda6e9c6fb
|
config: b5766e7d008470ef47d7f2589ef1a682
|
||||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.api.apps.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.apps.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.api.hidden.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.hidden.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.api.hidden.login.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.hidden.login.doctree
Normal file
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.api.hidden.logout.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.hidden.logout.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.api.oauth2.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.oauth2.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.api.payments.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.payments.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.api.sessions.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.sessions.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.api.unit.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.unit.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.api.users.get_user.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.users.get_user.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.address.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.address.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.api_token.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.api_token.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.base64_data.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.base64_data.doctree
Normal file
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.billing_info.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.billing_info.doctree
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.card_details.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.card_details.doctree
Normal file
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.cluster.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.cluster.doctree
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.code_output.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.code_output.doctree
Normal file
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.commit.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.commit.doctree
Normal file
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.connection.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.connection.doctree
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.currency.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.currency.doctree
Normal file
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.customer.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.customer.doctree
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.duration.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.duration.doctree
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.empty.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.empty.doctree
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.environment.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.environment.doctree
Normal file
Binary file not shown.
BIN
docs/html/.doctrees/modules/kittycad.models.error.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.models.error.doctree
Normal file
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
Reference in New Issue
Block a user