Skip to content

Commit

Permalink
poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
sowoi committed May 3, 2023
1 parent 9105ce3 commit 95b26dc
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,12 @@ location /webhook {
```
Restart Nginx.

# Poetry
Dependencies are in pyproject.toml


# Bare metal
```
apt install python3-dev python3-venv \
pip3 install -r requirements \
python3 -m venv webhook && source webhook/bin/activate \
Expand All @@ -174,8 +178,11 @@ cp Pythonfiles and ini files to your webhook folder \
export MASTODON_ACCESS_TOKEN='**Add_your_Access_Token_Here**' \
export MASTODON_BASE_URL='**https://Add_your_Mastodon_URL_Here**' \
export TRUSTED_PROXIES='**LIST of IPs with access to local webhook endpoint**'\
start uwsgi server: uwsgi --socket 127.0.0.1:5000 --protocol=http -w wsgi:app

```
start uwsgi server:
```
uwsgi --socket 127.0.0.1:5000 --protocol=http -w wsgi:app
```

# Acknowledgements
This project uses https://github.com/halcy/Mastodon.py and would not be feasible without this advance work.
Expand Down
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[tool.poetry]
name = "ghostcms2mastodon"
version = "1.1.8"
description = "Send posts from GhostCMS to Mastodon."
authors = ["Massoud Ahmed <[email protected]>"]
license = "GPLv3"

[tool.poetry.dependencies]
python = "^3.8"
blurhash = "^1.1.4"
certifi = "^2022.12.7"
charset-normalizer = "^3.1.0"
click = "^8.1.3"
decorator = "^5.1.1"
Flask = "^2.3.2"
idna = "^3.4"
importlib-metadata = "^6.6.0"
itsdangerous = "^2.1.2"
Jinja2 = "^3.1.2"
MarkupSafe = "^2.1.2"
"Mastodon.py" = "^1.8.1"
python-dateutil = "^2.8.2"
python-magic = "^0.4.27"
pytz = "^2023.3"
requests = "^2.28.2"
six = "^1.16.0"
urllib3 = "^1.26.15"
uWSGI = "^2.0.21"
Werkzeug = "^2.3.3"
zipp = "^3.15.0"

[tool.poetry.dev-dependencies]

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

0 comments on commit 95b26dc

Please sign in to comment.