2022.22.01.4

This commit is contained in:
ульба 2022-01-22 13:58:42 +05:00
parent f5436eed72
commit 22b6615ede
2 changed files with 3 additions and 57 deletions

View File

@ -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>`_

View File

@ -1,15 +1,9 @@
from setuptools import setup 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( setup(
name='MockupEngineer', name='MockupEngineer',
version='2022.22.01.3', version='2022.22.01.4',
packages=['MockupModule', 'MockupModule.templates'], packages=['MockupModule', 'MockupModule.templates'],
url='https://github.com/ulbwazhine/MockupEngineer', url='https://github.com/ulbwazhine/MockupEngineer',
license='MIT', license='MIT',
@ -17,5 +11,6 @@ setup(
author_email='ulbwa@icloud.com', author_email='ulbwa@icloud.com',
description='An simple library for creating beautiful screenshots.', description='An simple library for creating beautiful screenshots.',
install_requires=open('./requirements.txt', 'r').readlines(), 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'
) )