跳转到主要内容

IDOM的路由器

项目描述

idom-router

IDOM的路由器

安装

使用pip安装此软件包

pip install idom-router

对于从源代码进行开发者安装,请确保在运行之前安装NPM

git clone https://github.com/idom-team/idom-router
cd idom-router
pip install -e . -r requirements.txt

运行测试

要运行测试,您需要安装Chrome。然后您可以下载ChromeDriver并将其添加到您的PATH。完成这些后,只需使用pip安装要求即可

pip install -r requirements.txt

使用pytest运行测试

pytest tests

您可以在无头模式下运行测试(即不打开浏览器)

pytest tests

您需要在无头模式下运行以在GitHub Actions等持续集成系统中执行套件

发布此软件包

要在PyPI上发布idom-router的新版本

  1. 使用pip install twine安装twine
  2. idom-router/__init__.py中更新version = "x.y.z"变量
  3. 使用git将更改添加到__init__.py并创建git tag -a x.y.z -m 'comment'
  4. 使用python setup.py sdist bdist_wheel构建Python软件包
  5. 检查构建工件twine check --strict dist/*
  6. 将构建工件上传到PyPI twine upload dist/*

要在NPM上发布idom-router的新版本

  1. 更新 js/package.json 中的新 npm 包版本
  2. 清除以前的构建 git clean -fdx
  3. 安装并发布 npm install && npm publish

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分发

idom_router-0.0.1.tar.gz (48.9 kB 查看哈希值)

上传时间 源代码

构建分发

idom_router-0.0.1-py2.py3-none-any.whl (49.8 kB 查看哈希值)

上传时间 Python 2 Python 3

由以下提供支持