Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace taskipy with poetry scripts #29

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ This repository has both a CLI tool, and a web app available at https://solder-s

## Installation

`gerber_to_scad` requires python3.9.
`gerber_to_scad` requires >=python3.10.
`gerber_to_scad` requires >=python3.10.

* Make sure you have [poetry](https://python-poetry.org/docs/) installed.
* Make sure you have [poetry](https://python-poetry.org/docs/) installed. Easiest way: `curl -sSL https://install.python-poetry.org | python3 -`
* Run `poetry install`.
* or add via poetry `add git+ssh://[email protected]:kirberich/gerber_to_scad.git` to your poetry based project

Note: on M1 macs, scipy doesn't install correctly out of the box. If you're getting installation errors, try this:

Expand Down
17 changes: 17 additions & 0 deletions gts_service/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import subprocess
from time import sleep


def main():
try:
process = subprocess.Popen(
args="gunicorn --workers 1 --threads 8 gts_service.wsgi", shell=True
)
while process.poll() is None:
pass
except KeyboardInterrupt:
sleep(1) # just for nicer shutdown in console


if __name__ == "__main__":
main()
Loading