From c836fa879c93cf96217792e824c272d9975c7b7d Mon Sep 17 00:00:00 2001 From: unknown <> Date: Tue, 12 Mar 2024 18:40:49 -0400 Subject: [PATCH] first commit --- .gitignore | 2 ++ .vscode/extensions.json | 6 ++++++ .vscode/launch.json | 15 +++++++++++++++ .vscode/settings.json | 3 +++ README.md | 20 ++++++++++++++++++++ mypy.ini | 16 ++++++++++++++++ pyproject.toml | 16 ++++++++++++++++ requirements.txt | 11 +++++++++++ setup.cfg | 8 ++++++++ setup.py | 10 ++++++++++ src/main.py | 2 ++ 11 files changed, 109 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 README.md create mode 100644 mypy.ini create mode 100644 pyproject.toml create mode 100644 requirements.txt create mode 100644 setup.cfg create mode 100644 setup.py create mode 100644 src/main.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4b5c202 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.venv +dist \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..53755ef --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,6 @@ +{ + "recommendations": [ + "matangover.mypy", + "ms-python.python" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..93f95c7 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python Debugger: main.py", + "type": "debugpy", + "request": "launch", + "program": "./src/main.py", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..5e0f4cc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "mypy.configFile": "" +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..1357db9 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +Voxel Dev Workspace + + +## Setup +Install python, pip, venv, mypy, vscode, vscode python extensions + +Create a venv +``` +python -m venv .venv +``` + +Activate the venv +``` +source ./.venv/Scripts/activate +``` + +Install the prereq's +``` +pip install -r ./requirements.txt +``` \ No newline at end of file diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..8a3c073 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,16 @@ +# Global options: + +[mypy] +warn_return_any = True +warn_unused_configs = True + +# Per-module options: + +[mypy-mycode.foo.*] +disallow_untyped_defs = True + +[mypy-mycode.bar] +warn_return_any = False + +[mypy-somelibrary] +ignore_missing_imports = True \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a772de8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[build-system] +requires = ["setuptools>=68", "setuptools_scm[toml]>=8"] +build-backend = "setuptools.build_meta" + +[project] +name = "voxeldev" +requires-python = ">=3.8" +dynamic = ["version"] +dependencies = [ + # Add runtime dependencies here + "matplotlib", + "numpy" +] + +# Enables the usage of setuptools_scm +[tool.setuptools_scm] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4ff0e6b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,11 @@ +contourpy==1.2.0 +cycler==0.12.1 +fonttools==4.49.0 +kiwisolver==1.4.5 +matplotlib==3.8.3 +numpy==1.26.4 +packaging==24.0 +pillow==10.2.0 +pyparsing==3.1.2 +python-dateutil==2.9.0.post0 +six==1.16.0 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..e7103d7 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,8 @@ +[metadata] +name = voxeldev +version = 0.0.1 + +[options] +install_requires = + matplotlib + numpy; python_version<"3.10" \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..04fb53d --- /dev/null +++ b/setup.py @@ -0,0 +1,10 @@ +from setuptools import setup + +setup( + name='voxeldev', + version='0.0.1', + install_requires=[ + 'matplotlib', + 'numpy' + ], +) \ No newline at end of file diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..1de1b9b --- /dev/null +++ b/src/main.py @@ -0,0 +1,2 @@ + +print('hi :D') \ No newline at end of file