Skip to content

Commit

Permalink
replace setup.py with pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandogrd committed Dec 5, 2022
1 parent 0eb27c3 commit 96e53a3
Show file tree
Hide file tree
Showing 6 changed files with 309 additions and 42 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pip install git+https://github.com/moises-ai/maestro-worker-python.git

To install a version (recommended):
```
pip install git+https://github.com/moises-ai/maestro-worker-python.git@1.0.24
pip install git+https://github.com/moises-ai/maestro-worker-python.git@2.0.1
```

## Maestro init
Expand Down Expand Up @@ -103,8 +103,19 @@ docker-compose run --service-ports worker
```

### Developing this package

Install [poetry](https://python-poetry.org/docs/#installing-with-the-official-installer)


Run in development mode:

```bash
python3 setup.py develop
poetry install
poetry run maestro-init
```

To bump the package version:

```
poetry version (major|minor|patch)
```
2 changes: 1 addition & 1 deletion maestro_worker_python/data/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
git+https://github.com/moises-ai/maestro-worker-python.git@1.0.24
git+https://github.com/moises-ai/maestro-worker-python.git@2.0.1
270 changes: 270 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[tool.poetry]
name = "maestro-worker-python"
version = "2.0.1"
description = "Utility to run workers on Moises/Maestro"
authors = ["Moises.ai"]
license = "MIT"
readme = "README.md"
packages = [{include = "maestro_worker_python"}]

[tool.poetry.dependencies]
python = "^3.7"
fastapi = "~0.88.0"
json-logging = "^1.3.0"
uvicorn = "^0.20"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


[tool.poetry.scripts]
maestro-server = "maestro_worker_python.server:main"
maestro-cli = "maestro_worker_python.cli:main"
maestro-init = "maestro_worker_python.init:main"
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

35 changes: 0 additions & 35 deletions setup.py

This file was deleted.

0 comments on commit 96e53a3

Please sign in to comment.