mirror of
https://github.com/ulbwazhine/MockupEngineer.git
synced 2024-11-25 02:03:45 +03:00
2022.22.01.4
This commit is contained in:
parent
f5436eed72
commit
22b6615ede
49
readme.rst
49
readme.rst
|
@ -1,49 +0,0 @@
|
|||
.. role:: raw-html-m2r(raw)
|
||||
:format: html
|
||||
|
||||
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<div align="center">
|
||||
<h1>MockupEngineer</h1>
|
||||
<p>An simple library for creating beautiful screenshots.</p>
|
||||
</div>
|
||||
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
:raw-html-m2r:`<img align="center" width="350" src="https://raw.githubusercontent.com/ulbwazhine/MockupEngineer/main/MockupModule/templates/iphone12promax/example.png" alt="Apple iPhone 12 Pro Max">`
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
In Python console:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from MockupModule import MockupEngineer
|
||||
|
||||
mockup = MockupEngineer()
|
||||
|
||||
mockup.generate(template=mockup.templates[0],
|
||||
screenshot_path='/path/to/screenshot',
|
||||
color=mockup.templates[0].colors[0].color)
|
||||
|
||||
.. code-block::
|
||||
|
||||
>>> /path/to/mockup
|
||||
|
||||
As a standalone application:
|
||||
|
||||
.. code-block::
|
||||
|
||||
$ python -m MockupModule
|
||||
|
||||
Links
|
||||
-----
|
||||
|
||||
|
||||
* `Author <https://t.me/ulbwa>`_
|
||||
* `GitHub <https://github.com/ulbwazhine/MockupEngineer>`_
|
11
setup.py
11
setup.py
|
@ -1,15 +1,9 @@
|
|||
from setuptools import setup
|
||||
|
||||
try:
|
||||
from pypandoc import convert
|
||||
|
||||
read_md = lambda f: convert(f, 'rst')
|
||||
except ImportError:
|
||||
read_md = lambda f: open(f, 'r').read()
|
||||
|
||||
setup(
|
||||
name='MockupEngineer',
|
||||
version='2022.22.01.3',
|
||||
version='2022.22.01.4',
|
||||
packages=['MockupModule', 'MockupModule.templates'],
|
||||
url='https://github.com/ulbwazhine/MockupEngineer',
|
||||
license='MIT',
|
||||
|
@ -17,5 +11,6 @@ setup(
|
|||
author_email='ulbwa@icloud.com',
|
||||
description='An simple library for creating beautiful screenshots.',
|
||||
install_requires=open('./requirements.txt', 'r').readlines(),
|
||||
long_description=read_md('README.md')
|
||||
long_description=open('./readme.md', 'r').read(),
|
||||
long_description_content_type='text/markdown'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user