From bd6a6335ef9b3487ba526ddfe02b36c2f23af273 Mon Sep 17 00:00:00 2001 From: rgraef Date: Thu, 22 Apr 2021 14:37:17 +0200 Subject: package --- .gitignore | 4 ++++ MANIFEST.in | 1 + base_shaders/fragment.glsl | 6 ------ base_shaders/vertex.glsl | 8 -------- pyproject.toml | 3 +++ setup.py | 13 +++++++++++++ txtgameengine/base_shaders/fragment.glsl | 6 ++++++ txtgameengine/base_shaders/vertex.glsl | 8 ++++++++ 8 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 MANIFEST.in delete mode 100644 base_shaders/fragment.glsl delete mode 100644 base_shaders/vertex.glsl create mode 100644 pyproject.toml create mode 100644 setup.py create mode 100644 txtgameengine/base_shaders/fragment.glsl create mode 100644 txtgameengine/base_shaders/vertex.glsl diff --git a/.gitignore b/.gitignore index e5fe787..51d97f2 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,7 @@ venv/ __pycache__/ .vscode/ .idea/ + +*.egg-info +build/ +dist/ diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..e23b1aa --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +recursive-include txtgameengine/base_shaders * \ No newline at end of file diff --git a/base_shaders/fragment.glsl b/base_shaders/fragment.glsl deleted file mode 100644 index a9dfa6f..0000000 --- a/base_shaders/fragment.glsl +++ /dev/null @@ -1,6 +0,0 @@ -#version 330 core - -out vec4 fragColor; -void main() { - fragColor = vec4(0, 0, 1, 1); -} \ No newline at end of file diff --git a/base_shaders/vertex.glsl b/base_shaders/vertex.glsl deleted file mode 100644 index 1e02417..0000000 --- a/base_shaders/vertex.glsl +++ /dev/null @@ -1,8 +0,0 @@ -#version 330 core - -layout(location = 0) in vec3 vertexPosition_modelspace; - -void main() { - gl_Position.xyz = vertexPosition_modelspace; - gl_Position.w = 1.0; -} diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a9d29f6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheels"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..69d0641 --- /dev/null +++ b/setup.py @@ -0,0 +1,13 @@ +from setuptools import setup, find_packages +import os +def o(fname): + return open(os.path.join(os.path.dirname(__file__), fname)) +setup( + name='txtgameengine', + version='0.0.0', + author='Rom', + packages=find_packages(), + install_requires=o('requirements.txt').readlines(), + zip_safe=False, + include_package_data=True, +) diff --git a/txtgameengine/base_shaders/fragment.glsl b/txtgameengine/base_shaders/fragment.glsl new file mode 100644 index 0000000..a9dfa6f --- /dev/null +++ b/txtgameengine/base_shaders/fragment.glsl @@ -0,0 +1,6 @@ +#version 330 core + +out vec4 fragColor; +void main() { + fragColor = vec4(0, 0, 1, 1); +} \ No newline at end of file diff --git a/txtgameengine/base_shaders/vertex.glsl b/txtgameengine/base_shaders/vertex.glsl new file mode 100644 index 0000000..1e02417 --- /dev/null +++ b/txtgameengine/base_shaders/vertex.glsl @@ -0,0 +1,8 @@ +#version 330 core + +layout(location = 0) in vec3 vertexPosition_modelspace; + +void main() { + gl_Position.xyz = vertexPosition_modelspace; + gl_Position.w = 1.0; +} -- cgit