<h1 align="center">
github2pypi
</h1>
<h4 align="center">
Utils to release Python repository on GitHub to PyPi
</h4>
<div align="center">
<a href="https://github.com/wkentaro/github2pypi/actions"><img src="https://github.com/wkentaro/github2pypi/workflows/ci/badge.svg"></a>
</div>
## Usage
```bash
pip install github2pypi
```
### 2. Edit `setup.py`.
```python
import github2pypi
...
with open('README.md') as f:
# e.g., ![](examples/image.jpg) ->
# ![](https://github.com/wkentaro/imgviz/blob/main/examples/image.jpg)
long_description = github2pypi.replace_url(
slug='wkentaro/imgviz', content=f.read(), branch="main"
)
setup(
...
long_description=long_description,
long_description_content_type='text/markdown',
)
```
## Examples
- https://github.com/wkentaro/labelme
- https://github.com/wkentaro/imgviz
Raw data
{
"_id": null,
"home_page": "https://github.com/wkentaro/github2pypi",
"name": "github2pypi",
"maintainer": "",
"docs_url": null,
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7",
"maintainer_email": "",
"keywords": "\"GitHub Release\"",
"author": "Kentaro Wada",
"author_email": "www.kentaro.wada@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/4a/d0/5f2b9b16cb34405abcc895d49fc621df5a126f19d4e2b07ab59a0afa6cd6/github2pypi-1.0.0.tar.gz",
"platform": "any",
"description": "<h1 align=\"center\">\n github2pypi\n</h1>\n\n<h4 align=\"center\">\n Utils to release Python repository on GitHub to PyPi\n</h4>\n\n<div align=\"center\">\n <a href=\"https://github.com/wkentaro/github2pypi/actions\"><img src=\"https://github.com/wkentaro/github2pypi/workflows/ci/badge.svg\"></a>\n</div>\n\n\n## Usage\n\n```bash\npip install github2pypi\n```\n\n\n### 2. Edit `setup.py`.\n\n```python\nimport github2pypi\n\n...\nwith open('README.md') as f:\n # e.g., ![](examples/image.jpg) ->\n # ![](https://github.com/wkentaro/imgviz/blob/main/examples/image.jpg)\n long_description = github2pypi.replace_url(\n slug='wkentaro/imgviz', content=f.read(), branch=\"main\"\n )\n\nsetup(\n ...\n long_description=long_description,\n long_description_content_type='text/markdown',\n)\n```\n\n\n## Examples\n\n- https://github.com/wkentaro/labelme\n- https://github.com/wkentaro/imgviz\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Utils to release Python project from GitHub to PyPi.",
"version": "1.0.0",
"project_urls": {
"Bug Tracker": "https://github.com/wkentaro/github2pypi/issues",
"Homepage": "https://github.com/wkentaro/github2pypi"
},
"split_keywords": [
"\"github",
"release\""
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4ad05f2b9b16cb34405abcc895d49fc621df5a126f19d4e2b07ab59a0afa6cd6",
"md5": "3c5d4b44cfccfb15efd3034ec380830d",
"sha256": "5d2510f85d558784936aff88c5fef109b9927ca5073b596bcd7eb71035d1f2ed"
},
"downloads": -1,
"filename": "github2pypi-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "3c5d4b44cfccfb15efd3034ec380830d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7",
"size": 2694,
"upload_time": "2022-03-03T13:53:35",
"upload_time_iso_8601": "2022-03-03T13:53:35.542450Z",
"url": "https://files.pythonhosted.org/packages/4a/d0/5f2b9b16cb34405abcc895d49fc621df5a126f19d4e2b07ab59a0afa6cd6/github2pypi-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-03-03 13:53:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "wkentaro",
"github_project": "github2pypi",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "github2pypi"
}