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