Skip to main content

Work in Repl.it

3-simplelayout-package

简介

  • 本次作业将大家完成的数据生成器进行打包,可供 pip 进行安装,发布到 PyPI。同时使用 Sphinx 构建文档,发布到 Read the Docs

Sphinx is a powerful documentation generator that has many great features for writing technical documentation including:

  • Generate web pages, printable PDFs, documents for e-readers (ePub), and more all from the same sources
  • You can use reStructuredText or Markdown to write documentation
  • An extensive system of cross-referencing code and documentation
  • Syntax highlighted code samples
  • A vibrant ecosystem of first and third-party extensions

要求

  • 将个人完成的 2-simplelayout-generator 项目中的 simplelayout 目录复制到本次作业的 src 目录下。
  • 编写 setup.py
    • 参考官方文档,与 Packaging and distributing projects,正确配置 setuptools.setup(),确保能被 pip 正确安装,要求
      • package 名称设置为 simplelayout-github账号名
      • 正确包含 src/simplelayout 这个 package
      • install_requires 包含 simplelayout 的相关依赖
      • 正确配置 entry_points,使命令 simplelayout 对应 simplelayout/__main__.py 中的 main() 函数
  • 参考 文档,正确打包
  • 参考 文档,正确上传到 PyPI
  • 根据参考教程,创建 docs 目录,并创建 Sphinx 项目。
    • 在执行 sphinx-quickstart 时输入相关信息
    • Sphinx 默认使用 rst 格式(reStructuredText )编写文档,可进行配置使用 Markdown 进行文档编写。
    • 选做:参考 配置 autodoc、napoleon 插件,自动生成 simplelayout 中的 docstring API。
    • 在本地生成正确的 Sphinx 文档
  • 注册 Read the Docs,将个人仓库中的文档正确托管
  • 将个人项目 PyPI 仓库的链接、read the docs 链接以评论的方式发在 Feedback

注意

本次作业的在线测试分为以下部分:

  1. 测试能否正确执行
pip install .

分值:1 分

  1. 测试能否正确执行
pip install .
simplelayout -h

分值:1 分

以上测试通过后,会在 Feedback 中打印相关信息(包括 PyPI 链接,生成图片),但不会对 PyPIRead the Docs 自动测试

Release files for simplelayout-yuloveyet 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplelayout-yuloveyet 0.1.5
File Size Uploaded
simplelayout-yuloveyet-0.1.5.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simplelayout-yuloveyet 0.1.5
File Interpreter ABI Platform
simplelayout_yuloveyet-0.1.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 16.7 kB

Release files / simplelayout-yuloveyet-0.1.5.tar.gz

Download URL simplelayout-yuloveyet-0.1.5.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d9acee0aa513c724287b5e58cd81bf8e2c8f0d569bece1b667b371d3585e9a62
BLAKE2b-256 checksum
How to use checksums
54f13eadd1e1de651e332bfcd5b2abcb7cdb6f838eaff2a449a4e0fe9b0ae988
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / simplelayout_yuloveyet-0.1.5-py2.py3-none-any.whl

Download URL simplelayout_yuloveyet-0.1.5-py2.py3-none-any.whl
Size 6.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4a3884a3c214a509fa41f2eb3cbc4acc7fba4ef9fbeed6153ff8dbb6fe0ca6b6
BLAKE2b-256 checksum
How to use checksums
9d879694d692f4192afdb59261a1c123c00a6f6755c7061bd73d5dc32c70fd86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page