Skip to content

Commit

Permalink
Merge pull request #34 from geckon/24_packaging
Browse files Browse the repository at this point in the history
Add packaging and prepare first releas
  • Loading branch information
geckon authored May 31, 2020
2 parents d6657a8 + 7c48e41 commit 3699e47
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 31 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ serve for other game systems as well. The imagination is what matters the most.
Please note that the tool is under development. Ideas, comments and bug reports are
welcome!

## Installation

```
pip install rollthelore
```

## Usage

```
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion loreroll/npc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Module for generating NPCs."""

import os
import random
from collections import namedtuple

Expand All @@ -17,7 +18,7 @@
]
)

NPC_FILENAME = 'data/npc.yaml'
NPC_FILENAME = os.path.join(os.path.dirname(__file__), 'data/npc.yaml')

NPC_SCHEMA = Map({
'races': Seq(Map({'v': Str(), 'w': Float()})),
Expand Down
57 changes: 28 additions & 29 deletions poetry.lock

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

10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
[tool.poetry]
name = "rollthelore"
version = "0"
version = "0.1"
description = "An unseen servant providing an advantage to DMs/GMs while creating their worlds."
readme="README.md"
authors = ["Tomáš Heger"]
packages = [
{ include = "loreroll" },
{ include = "rollnpc.py" }
]

[tool.poetry.dependencies]
python = "^3.6"
Expand All @@ -15,6 +20,9 @@ pylint = "^2.5.2"
pycodestyle = "^2.6.0"
pytest = "^5.4.2"

[tool.poetry.scripts]
rollnpc = 'rollnpc:generate'

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

0 comments on commit 3699e47

Please sign in to comment.