Skip to content

Commit e91917f

Browse files
committed
Rename module to pyglm
1 parent a6f52a8 commit e91917f

File tree

13 files changed

+16
-16
lines changed

13 files changed

+16
-16
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ include setup.py
55
include setup.cfg
66
include VERSION
77
include glm/py.typed
8-
recursive-include PyGLM-stubs *
8+
recursive-include pyglm-stubs *
99
recursive-include PyGLM_lib *

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ At the same time, it has **great performance**, usually being **a lot faster tha
2424

2525
It can be installed from the [PyPI](https://pypi.python.org/pypi/PyGLM) using [pip](https://pip.pypa.io/en/stable/):
2626
``` batch
27-
pip install PyGLM
27+
pip install pyglm
2828
```
2929
And finally imported and used:
3030
``` python
31-
from PyGLM import glm
31+
from pyglm import glm
3232
```
3333
*Changed in version 2\.8*
3434
When using PyGLM version *2\.7\.3* or earlier, use
3535
``` python
3636
try:
37-
from PyGLM import glm
37+
from pyglm import glm
3838
except ImportError:
3939
import glm
4040
```
@@ -102,7 +102,7 @@ You will find an overview on the \[[Passing data to external libs](https://githu
102102
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\)\.
103103
The correct install command is:
104104
``` batch
105-
pip install PyGLM
105+
pip install pyglm
106106
```
107107

108108
#### Why is *<experimental extension name here>* not supported?
@@ -112,7 +112,7 @@ I try adding them on a one\-by\-one basis\.
112112

113113
### Short example
114114
``` Python
115-
from PyGLM import glm
115+
from pyglm import glm
116116

117117
# Create a 3D vector
118118
v1 = glm.vec3(1, 2, 3)

README.sb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ At the same time, it has \b \great performance\ b\, usually being \b \a lot fast
2222

2323
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\:
2424
\code batch\
25-
pip install PyGLM
25+
pip install pyglm
2626
\ code\
2727
And finally imported and used:
2828
\code python \
29-
from PyGLM import glm
29+
from pyglm import glm
3030
\ code\
3131
\i\Changed in version 2.8\i\
3232
When using PyGLM version \i \2.7.3\ i\ or earlier, use
3333
\code python \
3434
try:
35-
from PyGLM import glm
35+
from pyglm import glm
3636
except ImportError:
3737
import glm
3838
\ code\
@@ -100,7 +100,7 @@ You will find an overview on the [\url https://github.com/Zuzu-Typ/PyGLM/wiki/Pa
100100
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).
101101
The correct install command is:
102102
\code batch \
103-
pip install PyGLM
103+
pip install pyglm
104104
\ code\
105105

106106
\h4\Why is \i\<experimental extension name here>\i\ not supported?\h4\
@@ -110,7 +110,7 @@ I try adding them on a one-by-one basis.
110110

111111
\h3 \Short example\ h3\
112112
\code Python \
113-
from PyGLM import glm
113+
from pyglm import glm
114114

115115
# Create a 3D vector
116116
v1 = glm.vec3(1, 2, 3)

glm/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from PyGLM.glm import *
2-
from PyGLM import glm_typing, typing
1+
from pyglm.glm import *
2+
from pyglm import glm_typing, typing
33

44
import warnings as __warnings
55

6-
__warnings.warn("Importing PyGLM via \"import glm\" is going to be deprecated in the future.\nUse \"from PyGLM import glm\" instead", PendingDeprecationWarning)
6+
__warnings.warn("Importing PyGLM via \"import glm\" is going to be deprecated in the future.\nUse \"from pyglm import glm\" instead", PendingDeprecationWarning)

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
name = PyGLM
2+
name = pyglm
33
version = file: VERSION
44
author = Zuzu_Typ
55
author_email = [email protected]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
setup(
1313
ext_modules=[
1414
Extension(
15-
name="PyGLM.glm",
15+
name="pyglm.glm",
1616
sources=["PyGLM_lib/PyGLM.cpp"],
1717
include_dirs=["PyGLM_lib/glm/"],
1818
extra_compile_args=['-std=c++11', f'-DVERSION={VERSION}']
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)