Skip to content

Commit

Permalink
Add PDM as package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Apr 9, 2024
1 parent 4acd01f commit 48009c2
Show file tree
Hide file tree
Showing 5 changed files with 1,345 additions and 16 deletions.
12 changes: 8 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ coverage.xml
*.mo
*.pot

# Django stuff:
# Django
*.log
local_settings.py
db.sqlite3

# Flask stuff:
# Flask
instance/
.webassets-cache

# Scrapy stuff:
# Scrapy
.scrapy

# Sphinx documentation
Expand Down Expand Up @@ -138,4 +138,8 @@ config.json
temp/
test.py
stack.yml
.github/workflows/build_docker.yml
.github/workflows/build_docker.yml

# PDM
.pdm-python
.pdm-build/
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Modmail has quite a few significant problems with its feature implementations, r

This is a general installation guide for developers. Refer to the [documentation](https://modmail-docs.netlify.app) for user guide.

This guide assumes you have installed **git**, a **compatible Python version** and [**Poetry**](https://python-poetry.org/) installed.
This guide assumes you have installed **git**, a **compatible Python version** and [**Poetry**](https://python-poetry.org/) / [**PDM**](https://pdm-project.org/) installed.

1. Clone the repository
```console
Expand All @@ -31,11 +31,19 @@ This guide assumes you have installed **git**, a **compatible Python version** a
2. Create a Discord bot account, grant the necessary intents, and invite the bot.
3. Create a MongoDB database and a user for the bot to connect to.
4. Rename the file `.env.example` to `.env` and fill it with appropriate values.
5. Install the Python dependencies and run the bot.
```console
$ poetry install --no-root
$ poetry run python bot.py
```
5. Install project dependencies and run the bot.
- Using Poetry:

```console
$ poetry install --no-root
$ poetry run python bot.py
```
- Using PDM:

```console
$ pdm install
$ pdm run python bot.py
```
7. [Optional] Load the logviewer plugin with `[p]plugin load raidensakura/modmail-plugins/logviewer@main`

## Running the Docker Image
Expand Down
Loading

0 comments on commit 48009c2

Please sign in to comment.