Metadata-Version: 2.1
Name: plataforma-automaxia-api
Version: 0.0.14
Summary: Wrapper oficial da Plataforma Automaxia para Python
Home-page: UNKNOWN
Author: Wesley Romualdo da Silva
Author-email: wesleyromualdo@gmail.com
License: MIT License
Keywords: plataforma automaxia api
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENCE

# Material de apoio

O primeiro passo Ã© ter o cÃ³digo de sua biblioteca separado em uma pasta

  

*   meu\_pacote/ # Pasta do projeto
    *   codigos\_da\_biblioteca/ # DiretÃ³rio onde deve ficar os cÃ³digos de sua biblioteca
    *   LICENCE # Um arquivo com a licenÃ§a da sua lib
    *   [README.MD](http://README.MD) # Uma descriÃ§Ã£o do projeto
    *   [setup.py](http://setup.py) # CÃ³digo Python responsÃ¡vel pelo empacotamento

  

Adicione uma licenÃ§a

```plain
The MIT License (MIT)

Copyright (c) [year] [fullname]

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```

  

Adicione um readme

```markdown
# Sua descriÃ§Ã£o aqui
```

  

Instale a lib setuptools

```plain
pip install setuptools
```

  

Crie o [setup.py](http://setup.py)

```plain
from setuptools import setup

with open("README.md", "r") as arq:
    readme = arq.read()

setup(name='wrapper-panda-video',
    version='0.0.1',
    license='MIT License',
    author='Caio Sampaio',
    long_description=readme,
    long_description_content_type="text/markdown",
    author_email='caio@pythonando.com.br',
    keywords='panda video',
    description=u'Wrapper nÃ£o oficial do Panda Video',
    packages=['panda_video'],
    install_requires=['requests'],)
```

  

Execute o comando

```plain
python setup.py sdist
```

  

Instale o twine para fazer o upload para o pypi

```plain
pip install twine
```

  

Crie uma conta no pypi

  

Execute o comando para criar um repositÃ³rio de teste

```plain
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
```

  

Ou para criar um repositÃ³rio oficial:

```plain
python setup.py sdist
twine upload dist/*
user: __token__
pass: pypi-AgEIcHlwaS5vcmcCJDc0NmI1NjU2LWY2Y2EtNDIwMS1hNzlmLTViNjMwMjQ5MDRlZgACIFsxLFsicGxhdGFmb3JtYS1hdXRvbWF4aWEtYXBpIl1dAAIsWzIsWyI3ODRkZmYyMC0xNDZhLTQ2NTUtOTc5NS1lY2VjMWQ0NzdlMzciXV0AAAYgPFc26AfM4ryIi6Deg-GPB4l5Z6DqpABqmOox6-CLqlQ


twine upload -u __token__ -p pypi-AgEIcHlwaS5vcmcCJDc0NmI1NjU2LWY2Y2EtNDIwMS1hNzlmLTViNjMwMjQ5MDRlZgACIFsxLFsicGxhdGFmb3JtYS1hdXRvbWF4aWEtYXBpIl1dAAIsWzIsWyI3ODRkZmYyMC0xNDZhLTQ2NTUtOTc5NS1lY2VjMWQ0NzdlMzciXV0AAAYgPFc26AfM4ryIi6Deg-GPB4l5Z6DqpABqmOox6-CLqlQ dist/*
```
pypi-AgEIcHlwaS5vcmcCJDdkMTI4NjY5LWM5YmEtNDJiOC04OGNkLTFkMmRmOWEzNzE3NAACKlszLCI0OWI3YTc0OS03NDViLTQ2ZTAtYjkzZS05OTAxZGZhMGI2ZTIiXQAABiAAEL1XGUJwrn_9_-rTAtFiTogKFdOfDMpqb649_YCerw

