# 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-AgEIcHlwaS5vcmcCJDZjODVkOTQxLTdmYTQtNDlkZC04NjU3LTZlNWJkZmRhMTU4MgACIFsxLFsicGxhdGFmb3JtYS1hdXRvbWF4aWEtYXBpIl1dAAIsWzIsWyI3ODRkZmYyMC0xNDZhLTQ2NTUtOTc5NS1lY2VjMWQ0NzdlMzciXV0AAAYgSn2xPiG2sMVnN1h50YP1HcJWEgebYttaczKVTijXCxQ
twine upload -u __token__ -p pypi-AgEIcHlwaS5vcmcCJDZjODVkOTQxLTdmYTQtNDlkZC04NjU3LTZlNWJkZmRhMTU4MgACIFsxLFsicGxhdGFmb3JtYS1hdXRvbWF4aWEtYXBpIl1dAAIsWzIsWyI3ODRkZmYyMC0xNDZhLTQ2NTUtOTc5NS1lY2VjMWQ0NzdlMzciXV0AAAYgSn2xPiG2sMVnN1h50YP1HcJWEgebYttaczKVTijXCxQ dist/*
```
pypi-AgEIcHlwaS5vcmcCJDdkMTI4NjY5LWM5YmEtNDJiOC04OGNkLTFkMmRmOWEzNzE3NAACKlszLCI0OWI3YTc0OS03NDViLTQ2ZTAtYjkzZS05OTAxZGZhMGI2ZTIiXQAABiAAEL1XGUJwrn_9_-rTAtFiTogKFdOfDMpqb649_YCerw
Raw data
{
"_id": null,
"home_page": null,
"name": "plataforma-automaxia-api",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "plataforma automaxia api",
"author": "Wesley Romualdo da Silva",
"author_email": "wesleyromualdo@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/7a/b2/3b88a556fc65642ec8e59789250c995d60b83b7db9284008b1c99628990e/plataforma-automaxia-api-0.0.18.tar.gz",
"platform": null,
"description": "# Material de apoio\r\n\r\nO primeiro passo \u00c3\u00a9 ter o c\u00c3\u00b3digo de sua biblioteca separado em uma pasta\r\n\r\n \r\n\r\n* meu\\_pacote/ # Pasta do projeto\r\n * codigos\\_da\\_biblioteca/ # Diret\u00c3\u00b3rio onde deve ficar os c\u00c3\u00b3digos de sua biblioteca\r\n * LICENCE # Um arquivo com a licen\u00c3\u00a7a da sua lib\r\n * [README.MD](http://README.MD) # Uma descri\u00c3\u00a7\u00c3\u00a3o do projeto\r\n * [setup.py](http://setup.py) # C\u00c3\u00b3digo Python respons\u00c3\u00a1vel pelo empacotamento\r\n\r\n \r\n\r\nAdicione uma licen\u00c3\u00a7a\r\n\r\n```plain\r\nThe MIT License (MIT)\r\n\r\nCopyright (c) [year] [fullname]\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of\r\nthis software and associated documentation files (the \"Software\"), to deal in\r\nthe Software without restriction, including without limitation the rights to\r\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r\nthe Software, and to permit persons to whom the Software is furnished to do so,\r\nsubject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n```\r\n\r\n \r\n\r\nAdicione um readme\r\n\r\n```markdown\r\n# Sua descri\u00c3\u00a7\u00c3\u00a3o aqui\r\n```\r\n\r\n \r\n\r\nInstale a lib setuptools\r\n\r\n```plain\r\npip install setuptools\r\n```\r\n\r\n \r\n\r\nCrie o [setup.py](http://setup.py)\r\n\r\n```plain\r\nfrom setuptools import setup\r\n\r\nwith open(\"README.md\", \"r\") as arq:\r\n readme = arq.read()\r\n\r\nsetup(name='wrapper-panda-video',\r\n version='0.0.1',\r\n license='MIT License',\r\n author='Caio Sampaio',\r\n long_description=readme,\r\n long_description_content_type=\"text/markdown\",\r\n author_email='caio@pythonando.com.br',\r\n keywords='panda video',\r\n description=u'Wrapper n\u00c3\u00a3o oficial do Panda Video',\r\n packages=['panda_video'],\r\n install_requires=['requests'],)\r\n```\r\n\r\n \r\n\r\nExecute o comando\r\n\r\n```plain\r\npython setup.py sdist\r\n```\r\n\r\n \r\n\r\nInstale o twine para fazer o upload para o pypi\r\n\r\n```plain\r\npip install twine\r\n```\r\n\r\n \r\n\r\nCrie uma conta no pypi\r\n\r\n \r\n\r\nExecute o comando para criar um reposit\u00c3\u00b3rio de teste\r\n\r\n```plain\r\ntwine upload --repository-url https://test.pypi.org/legacy/ dist/*\r\n```\r\n\r\n \r\n\r\nOu para criar um reposit\u00c3\u00b3rio oficial:\r\n\r\n```plain\r\npython setup.py sdist\r\ntwine upload dist/*\r\nuser: __token__\r\npass: pypi-AgEIcHlwaS5vcmcCJDZjODVkOTQxLTdmYTQtNDlkZC04NjU3LTZlNWJkZmRhMTU4MgACIFsxLFsicGxhdGFmb3JtYS1hdXRvbWF4aWEtYXBpIl1dAAIsWzIsWyI3ODRkZmYyMC0xNDZhLTQ2NTUtOTc5NS1lY2VjMWQ0NzdlMzciXV0AAAYgSn2xPiG2sMVnN1h50YP1HcJWEgebYttaczKVTijXCxQ\r\n\r\n\r\ntwine upload -u __token__ -p pypi-AgEIcHlwaS5vcmcCJDZjODVkOTQxLTdmYTQtNDlkZC04NjU3LTZlNWJkZmRhMTU4MgACIFsxLFsicGxhdGFmb3JtYS1hdXRvbWF4aWEtYXBpIl1dAAIsWzIsWyI3ODRkZmYyMC0xNDZhLTQ2NTUtOTc5NS1lY2VjMWQ0NzdlMzciXV0AAAYgSn2xPiG2sMVnN1h50YP1HcJWEgebYttaczKVTijXCxQ dist/*\r\n```\r\npypi-AgEIcHlwaS5vcmcCJDdkMTI4NjY5LWM5YmEtNDJiOC04OGNkLTFkMmRmOWEzNzE3NAACKlszLCI0OWI3YTc0OS03NDViLTQ2ZTAtYjkzZS05OTAxZGZhMGI2ZTIiXQAABiAAEL1XGUJwrn_9_-rTAtFiTogKFdOfDMpqb649_YCerw\r\n\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Wrapper oficial da Plataforma Automaxia para Python",
"version": "0.0.18",
"project_urls": null,
"split_keywords": [
"plataforma",
"automaxia",
"api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7ab23b88a556fc65642ec8e59789250c995d60b83b7db9284008b1c99628990e",
"md5": "eaf8f51f3c1a92ed2708142c8095974c",
"sha256": "87f5256416d5f3b3c05502418383529b57086680f7848a809784759eb14ab84a"
},
"downloads": -1,
"filename": "plataforma-automaxia-api-0.0.18.tar.gz",
"has_sig": false,
"md5_digest": "eaf8f51f3c1a92ed2708142c8095974c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8607,
"upload_time": "2024-10-10T21:51:10",
"upload_time_iso_8601": "2024-10-10T21:51:10.928472Z",
"url": "https://files.pythonhosted.org/packages/7a/b2/3b88a556fc65642ec8e59789250c995d60b83b7db9284008b1c99628990e/plataforma-automaxia-api-0.0.18.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-10 21:51:10",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "plataforma-automaxia-api"
}