Skip to main content

A sample Python project

Project description

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 目录替换本次作业的 simplelayout 目录。
  • 编写 setup.py
    • 参考官方文档,与 Packaging and distributing projects,正确配置 setuptools.setup(),确保能被 pip 正确安装
    • 只包含 simplelayout 目录
    • install_requires 包含 simplelayout 相关依赖
    • package 名称设置为 simplelayout-github账号名
    • 正确配置 entry_points
  • 根据参考教程,创建 docs 目录,并创建 Sphinx 项目。
    • 在执行 sphinx-quickstart 时输入相关信息
    • Sphinx 默认使用 rst 格式(reStructuredText )编写文档,可进行配置使用 Markdown 进行文档编写。
    • 参考 配置 autodoc、napoleon 插件,自动生成 simplelayout 中的 docstring API。
    • 在本地生成正确的 Sphinx 文档
  • 注册 Read the Docs,将个人仓库中的文档正确托管
  • 将个人项目 PyPI 仓库的链接、read the docs 链接以评论的方式发在 Feedback

注意

本次作业的在线测试仅测试是否能正确执行

pip install .

并在 Feedback 中打印信息,并不会对 PyPIRead the Docs 自动测试

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplelayout-zweien-0.0.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

simplelayout_zweien-0.0.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file simplelayout-zweien-0.0.2.tar.gz.

File metadata

  • Download URL: simplelayout-zweien-0.0.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for simplelayout-zweien-0.0.2.tar.gz
Algorithm Hash digest
SHA256 90f042775537c3db22bcaa7b104c56537efcfd7954217977e11a9d35e64978a6
MD5 f5251dbd6ecbad470959acd2ca3957c1
BLAKE2b-256 4c6f5b0a6a4bdbf2e00c1b2e3db444c8d2d921a0a4cb6ef0ded4b7c017808c0b

See more details on using hashes here.

File details

Details for the file simplelayout_zweien-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: simplelayout_zweien-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for simplelayout_zweien-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 944cb808c242a7cefc86cb9ff7a4c5e8c54f4150a0aea58174671a26e549a4d1
MD5 be2f9619701154287e2128dca20503aa
BLAKE2b-256 684ef22aad7b5f98422195d2c3bf6a6116d825be208573623eeee482031437c2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page