submitted lib
This commit is contained in:
parent
fc6b0c7663
commit
d90076d1b4
@ -40,8 +40,14 @@ python3.8 -m coverage report -m
|
|||||||
```
|
```
|
||||||
* deploy pipy
|
* deploy pipy
|
||||||
```
|
```
|
||||||
|
pip install -U twine wheel setuptools
|
||||||
|
|
||||||
|
rm -rf dist
|
||||||
|
|
||||||
python setup.py sdist
|
python setup.py sdist
|
||||||
pip install twine
|
python setup.py bdist_wheel
|
||||||
|
twine check dist/*
|
||||||
|
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
```
|
```
|
||||||
|
|
||||||
|
37
setup.py
37
setup.py
@ -1,38 +1,43 @@
|
|||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
long_des = """ # obj2html lib
|
long_des = """obj2html lib
|
||||||
|
=============================
|
||||||
|
|
||||||
You can use that lib to create html file from a .obj path:
|
You can use that lib to create html file from a .obj path:
|
||||||
```
|
|
||||||
from obj2html import obj2html
|
from obj2html import obj2html
|
||||||
|
|
||||||
html_string = obj2html(obj_path)
|
html_string = obj2html(obj_path)
|
||||||
|
|
||||||
obj2html(obj_path, 'index.html')
|
obj2html(obj_path, 'index.html')
|
||||||
|
|
||||||
# firefox index.html
|
# firefox index.html
|
||||||
```
|
|
||||||
|
|
||||||
Use in a Jupyter notebook to display a .obj 3D file:
|
Use in a Jupyter notebook to display a .obj 3D file:
|
||||||
```
|
|
||||||
! pip install obj2html
|
! pip install
|
||||||
|
|
||||||
from obj2html import obj2html
|
from obj2html import obj2html
|
||||||
|
|
||||||
from IPython.display import display, HTML
|
from IPython.display import display, HTML
|
||||||
|
|
||||||
obj_path = 'model.obj'
|
obj_path = 'model.obj'
|
||||||
|
|
||||||
obj2html(obj_path, 'index.html')
|
obj2html(obj_path, 'index.html')
|
||||||
|
|
||||||
display(HTML('index.html'))
|
display(HTML('index.html'))
|
||||||
```
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'obj2html', # How you named your package folder (MyLib)
|
name = 'obj2html',
|
||||||
packages = ['obj2html'], # Chose the same as "name"
|
packages = ['obj2html'],
|
||||||
version = '0.2', # Start with a small number and increase it with every change you make
|
version = '0.3',
|
||||||
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
|
license='MIT',
|
||||||
description = 'Create an html with three.js that contains the given .obj file.', # Give a short description about your library
|
description = 'Create an html with three.js that contains the given .obj file.',
|
||||||
long_description = long_des,
|
long_description = long_des,
|
||||||
author = 'Nicola Landro', # Type in your name
|
author = 'Nicola Landro',
|
||||||
author_email = 'nicolaxx94@live.it', # Type in your E-Mail
|
author_email = 'nicolaxx94@live.it',
|
||||||
url = 'https://gitlab.com/nicolalandro/obj2html', # Provide either the link to your github or to your website
|
url = 'https://gitlab.com/nicolalandro/obj2html',
|
||||||
keywords = ['3D', '.obj', '.html','jupyter', ''], # Keywords that define your package best
|
keywords = ['3D', '.obj', '.html', 'jupyter', '3D viewer'],
|
||||||
install_requires=[],
|
|
||||||
)
|
)
|
Loading…
Reference in New Issue
Block a user