Initial commit

This commit is contained in:
Alex Davies 2022-03-21 13:34:11 -03:00
commit 9b6feaa649
9 changed files with 546 additions and 0 deletions

152
.gitignore vendored Normal file
View File

@ -0,0 +1,152 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

4
README.md Normal file
View File

@ -0,0 +1,4 @@
Once you have poetry setup up you can run this with
`poetry run python displaytest/main.py`

1
displaytest/__init__.py Normal file
View File

@ -0,0 +1 @@
__version__ = '0.1.0'

98
displaytest/main.py Normal file
View File

@ -0,0 +1,98 @@
# -*- coding: utf-8 -*-
import glfw
import OpenGL.GL as gl
import time
import imgui
from imgui.integrations.glfw import GlfwRenderer
def main():
imgui.create_context()
window = impl_glfw_init()
impl = GlfwRenderer(window)
framecount=0
while not glfw.window_should_close(window):
framecount+=1
glfw.poll_events()
impl.process_inputs()
imgui.new_frame()
if imgui.begin_main_menu_bar():
if imgui.begin_menu("File", True):
clicked_quit, selected_quit = imgui.menu_item(
"Quit", 'Cmd+Q', False, True
)
if clicked_quit:
exit(1)
imgui.end_menu()
imgui.end_main_menu_bar()
imgui.begin("Custom window", True)
imgui.text("Runtime:")
imgui.same_line()
imgui.text(str(glfw.get_time()))
imgui.text("Frame:")
imgui.same_line()
imgui.text(str(framecount))
imgui.text("Unix time:")
imgui.same_line()
imgui.text(str(time.time_ns() / (10 ** 9)))
if imgui.button("Pause"):
time.sleep(1)
imgui.end()
imgui.show_test_window()
if (framecount % 2) == 0:
gl.glClearColor(1., 1., 1., 1)
else:
gl.glClearColor(0., 0., 0., 1)
gl.glClear(gl.GL_COLOR_BUFFER_BIT)
imgui.render()
impl.render(imgui.get_draw_data())
glfw.swap_buffers(window)
impl.shutdown()
glfw.terminate()
def impl_glfw_init():
width, height = 1280, 720
window_name = "imgui camera test"
if not glfw.init():
print("Could not initialize OpenGL context")
exit(1)
# OS X supports only forward-compatible core profiles from 3.2
glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, 3)
glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 3)
glfw.window_hint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE)
glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, gl.GL_TRUE)
# Create a windowed mode window and its OpenGL context
window = glfw.create_window(
int(width), int(height), window_name, None, None
)
glfw.make_context_current(window)
if not window:
glfw.terminate()
print("Could not initialize Window")
exit(1)
return window
if __name__ == "__main__":
main()

15
imgui.ini Normal file
View File

@ -0,0 +1,15 @@
[Window][Debug##Default]
Pos=60,60
Size=400,400
Collapsed=0
[Window][ImGui Demo]
Pos=650,20
Size=550,680
Collapsed=0
[Window][Custom window]
Pos=133,223
Size=470,412
Collapsed=0

255
poetry.lock generated Normal file
View File

@ -0,0 +1,255 @@
[[package]]
name = "atomicwrites"
version = "1.4.0"
description = "Atomic file writes."
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
[[package]]
name = "attrs"
version = "21.4.0"
description = "Classes Without Boilerplate"
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[package.extras]
dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit", "cloudpickle"]
docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"]
tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "cloudpickle"]
tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "cloudpickle"]
[[package]]
name = "colorama"
version = "0.4.4"
description = "Cross-platform colored terminal text."
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
name = "glfw"
version = "2.5.1"
description = "A ctypes-based wrapper for GLFW3."
category = "main"
optional = false
python-versions = "*"
[package.extras]
preview = ["glfw-preview"]
[[package]]
name = "imgui"
version = "1.4.1"
description = "Cython-based Python bindings for dear imgui"
category = "main"
optional = false
python-versions = "*"
[package.dependencies]
glfw = {version = "*", optional = true, markers = "extra == \"glfw\""}
PyOpenGL = {version = "*", optional = true, markers = "extra == \"glfw\""}
[package.extras]
cython = ["Cython (>=0.24,<0.30)"]
cocos2d = ["pyopengl", "cocos2d", "pyglet (>=1.5.6)"]
full = ["pyopengl", "glfw", "pygame", "cocos2d", "Cython (>=0.24,<0.30)", "pysdl2", "pyglet", "pyglet (>=1.5.6)"]
glfw = ["pyopengl", "glfw"]
opengl = ["pyopengl"]
pygame = ["pyopengl", "pygame"]
pyglet = ["pyopengl", "pyglet", "pyglet (>=1.5.6)"]
sdl2 = ["pyopengl", "pysdl2"]
[[package]]
name = "more-itertools"
version = "8.12.0"
description = "More routines for operating on iterables, beyond itertools"
category = "dev"
optional = false
python-versions = ">=3.5"
[[package]]
name = "packaging"
version = "21.3"
description = "Core utilities for Python packages"
category = "dev"
optional = false
python-versions = ">=3.6"
[package.dependencies]
pyparsing = ">=2.0.2,<3.0.5 || >3.0.5"
[[package]]
name = "pluggy"
version = "0.13.1"
description = "plugin and hook calling mechanisms for python"
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
[package.extras]
dev = ["pre-commit", "tox"]
[[package]]
name = "py"
version = "1.11.0"
description = "library with cross-python path, ini-parsing, io, code, log facilities"
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
name = "pyopengl"
version = "3.1.6"
description = "Standard OpenGL bindings for Python"
category = "main"
optional = false
python-versions = "*"
[[package]]
name = "pyparsing"
version = "3.0.7"
description = "Python parsing module"
category = "dev"
optional = false
python-versions = ">=3.6"
[package.extras]
diagrams = ["jinja2", "railroad-diagrams"]
[[package]]
name = "pytest"
version = "5.4.3"
description = "pytest: simple powerful testing with Python"
category = "dev"
optional = false
python-versions = ">=3.5"
[package.dependencies]
atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""}
attrs = ">=17.4.0"
colorama = {version = "*", markers = "sys_platform == \"win32\""}
more-itertools = ">=4.0.0"
packaging = "*"
pluggy = ">=0.12,<1.0"
py = ">=1.5.0"
wcwidth = "*"
[package.extras]
checkqa-mypy = ["mypy (==v0.761)"]
testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"]
[[package]]
name = "wcwidth"
version = "0.2.5"
description = "Measures the displayed width of unicode strings in a terminal"
category = "dev"
optional = false
python-versions = "*"
[metadata]
lock-version = "1.1"
python-versions = "^3.10"
content-hash = "0a85f6f68dcbcf91a30eb8582e74ecc4e4b30ab3515626fc009501c406cc481d"
[metadata.files]
atomicwrites = [
{file = "atomicwrites-1.4.0-py2.py3-none-any.whl", hash = "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197"},
{file = "atomicwrites-1.4.0.tar.gz", hash = "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"},
]
attrs = [
{file = "attrs-21.4.0-py2.py3-none-any.whl", hash = "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4"},
{file = "attrs-21.4.0.tar.gz", hash = "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"},
]
colorama = [
{file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"},
{file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"},
]
glfw = [
{file = "glfw-2.5.1-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_10_6_intel.whl", hash = "sha256:eef9a5781bb9ac74674beffd9f78b088b8c58de1b49e919e670cab80e042539d"},
{file = "glfw-2.5.1-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_11_0_arm64.whl", hash = "sha256:cdae6b7f024e6a18d16ab9f4a822fc32e7bb6a85e3cd28e68454425e702d0777"},
{file = "glfw-2.5.1-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-manylinux2010_i686.whl", hash = "sha256:9861b3a9f805020a73a1cb5d2592cce6f02884343344181eaa00ac46529eff5f"},
{file = "glfw-2.5.1-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-manylinux2010_x86_64.whl", hash = "sha256:367ab2eced3961d801ff548b9e48267f5706e650012aab7b40f4cee5cbcdf160"},
{file = "glfw-2.5.1-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-manylinux2014_aarch64.whl", hash = "sha256:f0ec60d6f9d20de06f2a201c794e974dcd060531720ed62f7ccd2eb0a3fa9b1f"},
{file = "glfw-2.5.1-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-manylinux2014_x86_64.whl", hash = "sha256:085e36ab9325597304c975a89e65f96d852004fa98858e2f2bbebdf1c1e6fa19"},
{file = "glfw-2.5.1-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-win32.whl", hash = "sha256:d49fbcf6ab250cfd728fd86d4918e5a76813437c4ee2271d342439ae8362f7ca"},
{file = "glfw-2.5.1-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-win_amd64.whl", hash = "sha256:8ebec84608c59f8b96a4094016a10e94ba69d0c31584142630aebc0e6de32d39"},
{file = "glfw-2.5.1.tar.gz", hash = "sha256:90e29f3b2aacffcb9572ccb62cce53e3b9ae3c7ac9b6f60a32eaedac60f6a1ed"},
]
imgui = [
{file = "imgui-1.4.1-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a07aa19cd61baaa854cdf241484c88f5a07f6765fb175129bc72d820c608b524"},
{file = "imgui-1.4.1-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:4aff47bbc35adf56c3bca6a5aabe584d671c972bbbb85056cfc789afc41bf901"},
{file = "imgui-1.4.1-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:e06907b31aad61a4579068d4f2e1ac3512c4c8e35a6db9d020386bbd3174f6d9"},
{file = "imgui-1.4.1-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:692c16baf220f1c19acf7cfdb640a582a919369b862df65b37dfd5d7f08df76a"},
{file = "imgui-1.4.1-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:9401091e42d5ceff590d0ce5a1a3bc8627c2301e83b3b40ecd0e976f43bd158e"},
{file = "imgui-1.4.1-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:8ebbb96925c2173988b947c54f7ece580e19079547af3a9084d00fafae21a43f"},
{file = "imgui-1.4.1-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:b1415c00ad7e25fcaa7ac4b68aac3beb24949607c3ea47450ad2b93ef466c3a9"},
{file = "imgui-1.4.1-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:d4fad53320c031851acf07624bbefcf26468cd49e3a20521fb7ea3fbd107bf23"},
{file = "imgui-1.4.1-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:5a7f96157339a07657919ed34fbff44e187e6a197fec180728111997687f1097"},
{file = "imgui-1.4.1-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:f5d3d5db29d34ab7fa2b4815d679d7aa8a4e10d5ddf637666a9ac4307558c318"},
{file = "imgui-1.4.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:4b88ec4e5a1a342dfbc2961de9b285512418e984cd721b61d3a86fbc813a7df0"},
{file = "imgui-1.4.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:9dfdeb1c19b3d0feeb73c80d3e72f547b42b4003686fbeb14bf6f6f253720062"},
{file = "imgui-1.4.1-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:5874a048a04e8f2507e323eb2afabcd034c62d84dbc886f21d6e382cb8d67fa1"},
{file = "imgui-1.4.1-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:5e84daae2c9ee3d6f39cab4a163cdc97e3b9681af81656953ceb3704f059d9d4"},
{file = "imgui-1.4.1-cp35-cp35m-win32.whl", hash = "sha256:7713f1b08dafe8b74d7f862fac201aeef7f8b4ad60009a0edb3e312120fc5560"},
{file = "imgui-1.4.1-cp35-cp35m-win_amd64.whl", hash = "sha256:2e0cd42fcfacacb15bf91d56e8930644fd447a2371703aa5bfd93f35d53a0392"},
{file = "imgui-1.4.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:08cb81a2de54ed3ecdeaabf055e228b0d1bdd439d0b694d2dd684d2e236ada82"},
{file = "imgui-1.4.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:64c21ca5aeb2fa22dfeb69515a97111367385714544741716912d100073df963"},
{file = "imgui-1.4.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:105c0b3f90bc7b27af7814f627ae58b0d81b51a27bb24300629e1f8df6952d16"},
{file = "imgui-1.4.1-cp36-cp36m-win32.whl", hash = "sha256:597c61c17411f26841df17f7cc96df9a6b0d1425afe12e008a06c056b41449e1"},
{file = "imgui-1.4.1-cp36-cp36m-win_amd64.whl", hash = "sha256:8fc6d6fdba376acdc8e51425d8bee51474ad2499fc018fedde7b740b574da94d"},
{file = "imgui-1.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:9ea67d4a94f4ded750123ce86125a2c1bc992cf7b13d212a8f4f9af88ced8724"},
{file = "imgui-1.4.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:fb72039aecf96e588f823f85c32e4fbe3f77dbe276b9ac75e21140057a2e2b29"},
{file = "imgui-1.4.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:00cf4be08ab8a8f1387c629f4b1cdf9e5f3e6bf4a537603ac7ea102b95f7b50b"},
{file = "imgui-1.4.1-cp37-cp37m-win32.whl", hash = "sha256:87b3adc04ffb25df3d3a9159eeb871cde5a6c25f145d0c0024e32054c929d5aa"},
{file = "imgui-1.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:2e8d1d868605a600fef9aeb95a31ce71fb8e4c296034c911973e94e6b373bb19"},
{file = "imgui-1.4.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:a3c2f92a99b20eca177c4d3b1e1a9d005209b4961b2852d16134f1c786bd8218"},
{file = "imgui-1.4.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:76d14e36c08da90954165f570b1879cb05fef852c1bf7740ef772efe6d98d632"},
{file = "imgui-1.4.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:c0f64093f52c3c6f2a10bddfb545e01ba315852eb33537e6b632ef2bc2d5afc4"},
{file = "imgui-1.4.1-cp38-cp38-win32.whl", hash = "sha256:c1e8e696c1f62f98ada41950de9416e1e95e1e3ae1e0d61cb79a0e6a0fe2254b"},
{file = "imgui-1.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:b90ba49b892242d9f61413ea1bd3c682a80680b724ba8e812b1b09d48a2c9bad"},
{file = "imgui-1.4.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:542d3a6fb8a72580433ea3472a8f37a71fefb767a66276ba11e1418e70976678"},
{file = "imgui-1.4.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:04ff253710b780ddaeb1f536bda08c0b50200ceef877df4d11f2f9f58b85156f"},
{file = "imgui-1.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:3c8dc9c80d58e55f0006cb4193f2ed1c7ae26c945fe7115e17dbb23f9c13433c"},
{file = "imgui-1.4.1-cp39-cp39-win32.whl", hash = "sha256:3a30a20629508e1dc80db9a0d0f7a10cacc6a798ad56b4d3165a3fd909cdde8d"},
{file = "imgui-1.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:8b015a1dd36425b1894474f2da8650a33bdc356540ceee0d1daf2b6a05d3c889"},
{file = "imgui-1.4.1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:367625de69884d5161ff055a2aab74fb2b221d5e55f22b13d6863381ea9dba2f"},
{file = "imgui-1.4.1-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:5418e3ad67311532345cca4695a0ef452a0397a790c7e8015d4764783cdbe646"},
{file = "imgui-1.4.1-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:516e1e7cefa69a3568456e32eb3d536b7560cd29a59d16d9308cb4781b2e8350"},
{file = "imgui-1.4.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:9b90c89f420eed37c09a618e9fe93066d1c4cbbd27da4da9095d1d3c98860d1f"},
{file = "imgui-1.4.1.tar.gz", hash = "sha256:012fd8d581171bd04ebfa649ca92c7f382a2806c7027bc7c31c8b39899899e7d"},
]
more-itertools = [
{file = "more-itertools-8.12.0.tar.gz", hash = "sha256:7dc6ad46f05f545f900dd59e8dfb4e84a4827b97b3cfecb175ea0c7d247f6064"},
{file = "more_itertools-8.12.0-py3-none-any.whl", hash = "sha256:43e6dd9942dffd72661a2c4ef383ad7da1e6a3e968a927ad7a6083ab410a688b"},
]
packaging = [
{file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"},
{file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"},
]
pluggy = [
{file = "pluggy-0.13.1-py2.py3-none-any.whl", hash = "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"},
{file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"},
]
py = [
{file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"},
{file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"},
]
pyopengl = [
{file = "PyOpenGL-3.1.6-py2-none-any.whl", hash = "sha256:57c597d989178e1413002df6b923619f6d29807501dece1c60cc6f12c0c8e8a7"},
{file = "PyOpenGL-3.1.6-py3-none-any.whl", hash = "sha256:a7139bc3e15d656feae1f7e3ef68c799941ed43fadc78177a23db7e946c20738"},
{file = "PyOpenGL-3.1.6.tar.gz", hash = "sha256:8ea6c8773927eda7405bffc6f5bb93be81569a7b05c8cac50cd94e969dce5e27"},
]
pyparsing = [
{file = "pyparsing-3.0.7-py3-none-any.whl", hash = "sha256:a6c06a88f252e6c322f65faf8f418b16213b51bdfaece0524c1c1bc30c63c484"},
{file = "pyparsing-3.0.7.tar.gz", hash = "sha256:18ee9022775d270c55187733956460083db60b37d0d0fb357445f3094eed3eea"},
]
pytest = [
{file = "pytest-5.4.3-py3-none-any.whl", hash = "sha256:5c0db86b698e8f170ba4582a492248919255fcd4c79b1ee64ace34301fb589a1"},
{file = "pytest-5.4.3.tar.gz", hash = "sha256:7979331bfcba207414f5e1263b5a0f8f521d0f457318836a7355531ed1a4c7d8"},
]
wcwidth = [
{file = "wcwidth-0.2.5-py2.py3-none-any.whl", hash = "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784"},
{file = "wcwidth-0.2.5.tar.gz", hash = "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"},
]

16
pyproject.toml Normal file
View File

@ -0,0 +1,16 @@
[tool.poetry]
name = "displayTest"
version = "0.1.0"
description = ""
authors = ["Alex Davies <traverse.da@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.10"
imgui = {extras = ["glfw"], version = "^1.4.1"}
[tool.poetry.dev-dependencies]
pytest = "^5.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

0
tests/__init__.py Normal file
View File

View File

@ -0,0 +1,5 @@
from displaytest import __version__
def test_version():
assert __version__ == '0.1.0'