Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
Add pipenv support
Browse files Browse the repository at this point in the history
  • Loading branch information
zjkmxy committed Apr 7, 2020
1 parent c953477 commit b32b49d
Show file tree
Hide file tree
Showing 4 changed files with 348 additions and 1 deletion.
23 changes: 23 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
python-socketio = ">=4.3.1"
pystray = ">=0.14.4"
aiohttp = ">=3.6.2"
aiohttp-jinja2 = ">=1.2.0"
python-ndn = "==0.2b2.post1"
Jinja2 = ">=2.10.3"
Pillow = ">=6.1.0"

[requires]
python_version = "3.8"

[scripts]
app = "python app.py"
main = "python main.py"

309 changes: 309 additions & 0 deletions Pipfile.lock

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

15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,32 @@ python3.6 -m venv ./venv
./venv/bin/python -m pip install -r requirements.txt
```

Pipenv:
Please notice that currently pipenv does not work with py2app.
Also, the specified python version is 3.8.
```bash
pipenv install
```

Execute
=======
HTTP server:
```bash
./venv/bin/python app.py
```
or
```bash
pipenv run app
```

Tray menu:
```bash
./venv/bin/python main.py
```
or
```bash
pipenv run main
```

Generate OSX App
================
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ pystray>=0.14.4
Pillow>=6.1.0
aiohttp>=3.6.2
aiohttp-jinja2>=1.2.0
python-ndn>=0.2a2
python-ndn>=0.2b2.post1

0 comments on commit b32b49d

Please sign in to comment.