add building instructions for appimage and native python packages

master
Maximilian Zettler 4 years ago
parent 649f635b04
commit e63d5ddc20
  1. 1
      .gitignore
  2. 14
      README.md
  3. 13
      poetry.lock
  4. 2
      pyproject.toml
  5. 5
      timebot/app.py

1
.gitignore vendored

@ -4,3 +4,4 @@ __pycache__/
.idea/ .idea/
.kekse .kekse
dist/ dist/
build/

@ -8,6 +8,20 @@ This is a poetry managed project. For details see:
* https://python-poetry.org/docs/#installation * https://python-poetry.org/docs/#installation
* https://python-poetry.org/docs/basic-usage/ * https://python-poetry.org/docs/basic-usage/
## Test
``poetry run pytest``
## Build
### Python
``poetry build``
### App Image
``poetry run python -m nuitka --standalone --onefile --output-dir=build/nuitka timebot/app.py``
# ERRORS # ERRORS
## SSL verify error ## SSL verify error

13
poetry.lock generated

@ -80,6 +80,14 @@ category = "dev"
optional = false optional = false
python-versions = ">=3.5" python-versions = ">=3.5"
[[package]]
name = "nuitka"
version = "0.6.19.5"
description = "Python compiler with full language support and CPython compatibility"
category = "dev"
optional = false
python-versions = "*"
[[package]] [[package]]
name = "packaging" name = "packaging"
version = "21.3" version = "21.3"
@ -209,7 +217,7 @@ testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytes
[metadata] [metadata]
lock-version = "1.1" lock-version = "1.1"
python-versions = "^3.6" python-versions = "^3.6"
content-hash = "90a881b9873674d1beb1cbae32c605d019b3f2a945780d9fff9f98f2ad26aa02" content-hash = "69c9457fa471c11ea8c160fbc1fd743e319c7cf8fd88730a60f318d4059e7448"
[metadata.files] [metadata.files]
atomicwrites = [ atomicwrites = [
@ -244,6 +252,9 @@ more-itertools = [
{file = "more-itertools-8.12.0.tar.gz", hash = "sha256:7dc6ad46f05f545f900dd59e8dfb4e84a4827b97b3cfecb175ea0c7d247f6064"}, {file = "more-itertools-8.12.0.tar.gz", hash = "sha256:7dc6ad46f05f545f900dd59e8dfb4e84a4827b97b3cfecb175ea0c7d247f6064"},
{file = "more_itertools-8.12.0-py3-none-any.whl", hash = "sha256:43e6dd9942dffd72661a2c4ef383ad7da1e6a3e968a927ad7a6083ab410a688b"}, {file = "more_itertools-8.12.0-py3-none-any.whl", hash = "sha256:43e6dd9942dffd72661a2c4ef383ad7da1e6a3e968a927ad7a6083ab410a688b"},
] ]
nuitka = [
{file = "Nuitka-0.6.19.5.tar.gz", hash = "sha256:b100789ea71aff8814cf52958e20f82c4c5a01aaa8a8eca38cd6a7e1cc5cae25"},
]
packaging = [ packaging = [
{file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"}, {file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"},
{file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"}, {file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"},

@ -3,6 +3,7 @@ name = "timebot"
version = "0.1.0" version = "0.1.0"
description = "" description = ""
authors = ["Maximilian Zettler <info@max-zettler.de>"] authors = ["Maximilian Zettler <info@max-zettler.de>"]
readme = "README.md"
[tool.poetry.scripts] [tool.poetry.scripts]
timebot = 'timebot.app:run' timebot = 'timebot.app:run'
@ -13,6 +14,7 @@ requests = "^2.27.1"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
pytest = "^5.2" pytest = "^5.2"
Nuitka = "^0.6.15"
[build-system] [build-system]
requires = ["poetry-core>=1.0.0"] requires = ["poetry-core>=1.0.0"]

@ -114,3 +114,8 @@ def run():
sys.exit(1) sys.exit(1)
sys.exit(0) sys.exit(0)
if __name__ == "__main__":
run()

Loading…
Cancel
Save