Compare commits
104 Commits
Author | SHA1 | Date | |
---|---|---|---|
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 | |||
d9077a00ad | |||
a8d537e29c | |||
15d5bf50c1 | |||
17b517dd5a | |||
1408f075ee | |||
ed6b2c8e77 | |||
69c4f8ce70 | |||
216b454c14 | |||
0ed9aaf127 | |||
c1bc2a8f51 | |||
b7359511a4 | |||
26545d537f | |||
0ab0bd44a2 | |||
415f1d9619 | |||
31f5188454 |
8
.github/workflows/build-test.yml
vendored
8
.github/workflows/build-test.yml
vendored
@ -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
|
||||
|
2
.github/workflows/generate-docs.yml
vendored
2
.github/workflows/generate-docs.yml
vendored
@ -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
|
||||
|
||||
|
2
.github/workflows/generate.yml
vendored
2
.github/workflows/generate.yml
vendored
@ -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
|
||||
|
2
.github/workflows/make-release.yml
vendored
2
.github/workflows/make-release.yml
vendored
@ -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/
|
||||
|
5
.github/workflows/update-spec-for-docs.yml
vendored
5
.github/workflows/update-spec-for-docs.yml
vendored
@ -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: |
|
||||
@ -37,7 +34,7 @@ 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
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ dmypy.json
|
||||
/.coverage
|
||||
|
||||
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.
|
||||
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
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
|
||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: 74989a7dc76cd38543fd6db0578bbfeb
|
||||
config: e52be7b4f011a635dc06a208f68f244c
|
||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||
|
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.
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.
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.
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.
BIN
docs/html/.doctrees/modules/kittycad.api.users.doctree
Normal file
BIN
docs/html/.doctrees/modules/kittycad.api.users.doctree
Normal file
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.
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.
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