diff --git a/MANIFEST.in b/MANIFEST.in index 13deaf4..79aee40 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -5,5 +5,5 @@ include setup.py include setup.cfg include VERSION include glm/py.typed -recursive-include PyGLM-stubs * +recursive-include pyglm-stubs * recursive-include PyGLM_lib * diff --git a/README.md b/README.md index 16399d4..2aadb9b 100644 --- a/README.md +++ b/README.md @@ -24,17 +24,17 @@ At the same time, it has **great performance**, usually being **a lot faster tha It can be installed from the [PyPI](https://pypi.python.org/pypi/PyGLM) using [pip](https://pip.pypa.io/en/stable/): ``` batch -pip install PyGLM +pip install pyglm ``` And finally imported and used: ``` python -from PyGLM import glm +from pyglm import glm ``` *Changed in version 2\.8* When using PyGLM version *2\.7\.3* or earlier, use ``` python try: - from PyGLM import glm + from pyglm import glm except ImportError: import glm ``` @@ -102,7 +102,7 @@ You will find an overview on the \[[Passing data to external libs](https://githu Most likely you've installed [glm](https://pypi.org/project/glm/), a JSON parser and not [PyGLM](https://pypi.org/project/PyGLM/) \(or a very early version of PyGLM\)\. The correct install command is: ``` batch -pip install PyGLM +pip install pyglm ``` #### Why is *<experimental extension name here>* not supported? @@ -112,7 +112,7 @@ I try adding them on a one\-by\-one basis\. ### Short example ``` Python -from PyGLM import glm +from pyglm import glm # Create a 3D vector v1 = glm.vec3(1, 2, 3) diff --git a/README.sb b/README.sb index 795445b..ce5857a 100644 --- a/README.sb +++ b/README.sb @@ -22,17 +22,17 @@ At the same time, it has \b \great performance\ b\, usually being \b \a lot fast It can be installed from the \url https://pypi.python.org/pypi/PyGLM \PyPI\ url\ using \url https://pip.pypa.io/en/stable/ \pip\ url\: \code batch\ -pip install PyGLM +pip install pyglm \ code\ And finally imported and used: \code python \ -from PyGLM import glm +from pyglm import glm \ code\ \i\Changed in version 2.8\i\ When using PyGLM version \i \2.7.3\ i\ or earlier, use \code python \ try: - from PyGLM import glm + from pyglm import glm except ImportError: import glm \ code\ @@ -100,7 +100,7 @@ You will find an overview on the [\url https://github.com/Zuzu-Typ/PyGLM/wiki/Pa Most likely you've installed \url https://pypi.org/project/glm/ \glm\ url\, a JSON parser and not \url https://pypi.org/project/PyGLM/ \PyGLM\ url\ (or a very early version of PyGLM). The correct install command is: \code batch \ -pip install PyGLM +pip install pyglm \ code\ \h4\Why is \i\\i\ not supported?\h4\ @@ -110,7 +110,7 @@ I try adding them on a one-by-one basis. \h3 \Short example\ h3\ \code Python \ -from PyGLM import glm +from pyglm import glm # Create a 3D vector v1 = glm.vec3(1, 2, 3) diff --git a/glm/__init__.py b/glm/__init__.py index 4e7ae87..5ef189b 100644 --- a/glm/__init__.py +++ b/glm/__init__.py @@ -1,6 +1,6 @@ -from PyGLM.glm import * -from PyGLM import glm_typing, typing +from pyglm.glm import * +from pyglm import glm_typing, typing import warnings as __warnings -__warnings.warn("Importing PyGLM via \"import glm\" is going to be deprecated in the future.\nUse \"from PyGLM import glm\" instead", PendingDeprecationWarning) \ No newline at end of file +__warnings.warn("Importing PyGLM via \"import glm\" is going to be deprecated in the future.\nUse \"from pyglm import glm\" instead", PendingDeprecationWarning) \ No newline at end of file diff --git a/PyGLM-stubs/LICENSE b/pyglm-stubs/LICENSE similarity index 100% rename from PyGLM-stubs/LICENSE rename to pyglm-stubs/LICENSE diff --git a/PyGLM-stubs/__init__.py b/pyglm-stubs/__init__.py similarity index 100% rename from PyGLM-stubs/__init__.py rename to pyglm-stubs/__init__.py diff --git a/PyGLM-stubs/glm/__init__.py b/pyglm-stubs/glm/__init__.py similarity index 100% rename from PyGLM-stubs/glm/__init__.py rename to pyglm-stubs/glm/__init__.py diff --git a/PyGLM-stubs/glm/__init__.pyi b/pyglm-stubs/glm/__init__.pyi similarity index 100% rename from PyGLM-stubs/glm/__init__.pyi rename to pyglm-stubs/glm/__init__.pyi diff --git a/PyGLM/__init__.py b/pyglm/__init__.py similarity index 100% rename from PyGLM/__init__.py rename to pyglm/__init__.py diff --git a/PyGLM/__init__.pyi b/pyglm/__init__.pyi similarity index 100% rename from PyGLM/__init__.pyi rename to pyglm/__init__.pyi diff --git a/PyGLM/glm_typing.py b/pyglm/glm_typing.py similarity index 100% rename from PyGLM/glm_typing.py rename to pyglm/glm_typing.py diff --git a/setup.cfg b/setup.cfg index 643e304..c120a57 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -name = PyGLM +name = pyglm version = file: VERSION author = Zuzu_Typ author_email = zuzu.typ@gmail.com diff --git a/setup.py b/setup.py index 231ae5c..fb73a5b 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( ext_modules=[ Extension( - name="PyGLM.glm", + name="pyglm.glm", sources=["PyGLM_lib/PyGLM.cpp"], include_dirs=["PyGLM_lib/glm/"], extra_compile_args=['-std=c++11', f'-DVERSION={VERSION}']