# clarmy02
clarmy02
[![download](https://anaconda.org/clarmy/clarmy02/badges/downloads.svg)](https://anaconda.org/Clarmy/clarmy02/files)
如何开发一个开源的 Python 扩展包
## 基本步骤
1. 本地功能调通
2. 添加测试用例
```bash
$ pytest ./tests/
```
3. 测试本地安装成功
```bash
$ python setup.py install && python -c "import clarmy02"
```
4. 构建、上传到 pypi.org
```
$ rm -rf ./dist
$ python setup.py sdist
$ twine upload dist/*
```
5. 测试用 pip 从 pypi.org 安装自己的包
```bash
$ pip install -i https://pypi.org/simple/ clarmy02==0.0.1
```
6. 构建、上传到 anaconda.org
编写 meta.yaml,定义元信息。
```bash
$ conda build .
$ anaconda upload <path>
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Clarmy/clarmy02",
"name": "clarmy02",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Wentao Li",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/b8/26/dd5a4f5ee1bbfdaf1f4fa8f0c645ee6c9c40db95792b32c9cdc99d37ea8d/clarmy02-0.0.6.tar.gz",
"platform": null,
"description": "# clarmy02\n\nclarmy02\n\n[![download](https://anaconda.org/clarmy/clarmy02/badges/downloads.svg)](https://anaconda.org/Clarmy/clarmy02/files)\n\n\u5982\u4f55\u5f00\u53d1\u4e00\u4e2a\u5f00\u6e90\u7684 Python \u6269\u5c55\u5305\n\n## \u57fa\u672c\u6b65\u9aa4\n\n1. \u672c\u5730\u529f\u80fd\u8c03\u901a\n2. \u6dfb\u52a0\u6d4b\u8bd5\u7528\u4f8b\n\n```bash\n$ pytest ./tests/\n```\n\n3. \u6d4b\u8bd5\u672c\u5730\u5b89\u88c5\u6210\u529f\n\n```bash\n$ python setup.py install && python -c \"import clarmy02\"\n```\n\n4. \u6784\u5efa\u3001\u4e0a\u4f20\u5230 pypi.org\n\n```\n$ rm -rf ./dist\n$ python setup.py sdist\n$ twine upload dist/*\n```\n\n5. \u6d4b\u8bd5\u7528 pip \u4ece pypi.org \u5b89\u88c5\u81ea\u5df1\u7684\u5305\n\n```bash\n$ pip install -i https://pypi.org/simple/ clarmy02==0.0.1\n```\n\n6. \u6784\u5efa\u3001\u4e0a\u4f20\u5230 anaconda.org\n \u7f16\u5199 meta.yaml\uff0c\u5b9a\u4e49\u5143\u4fe1\u606f\u3002\n\n```bash\n$ conda build .\n$ anaconda upload <path>\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "example",
"version": "0.0.6",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b826dd5a4f5ee1bbfdaf1f4fa8f0c645ee6c9c40db95792b32c9cdc99d37ea8d",
"md5": "9477136f4db798e38030bc50a60a2cf1",
"sha256": "c8e5b25764c9da006052c9862a9dd19d14460cee0b83c800e5908ddabb3eba42"
},
"downloads": -1,
"filename": "clarmy02-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "9477136f4db798e38030bc50a60a2cf1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 2768,
"upload_time": "2023-01-07T06:42:00",
"upload_time_iso_8601": "2023-01-07T06:42:00.599403Z",
"url": "https://files.pythonhosted.org/packages/b8/26/dd5a4f5ee1bbfdaf1f4fa8f0c645ee6c9c40db95792b32c9cdc99d37ea8d/clarmy02-0.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-07 06:42:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "Clarmy",
"github_project": "clarmy02",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "clarmy02"
}