# pypi-template
a template for build python package to upload pypi repository
```bash
ppoetry install
poetry run dev
```
## publish
change pyproject.toml file -- version = "0.1.0"
change pypi_utils/__init__.py -- version = "0.1.0"
```bash
sed -i"s#A#B#g" *.txt
version="0.1.0"
sed -i -e "s/__version__ = .*/__version__ = '${version}'/g"
python main.py ${version}
git add .
git commit -m "release v${version}"
git tag v${version} -m "release v${version}"
git push origin v${version}
```
```powershell
$version="0.1.5"
((Get-Content -Path ./pypi_utils/__init__.py) -replace "__version__ = .*","__version__ = '$version'") | Set-Content -Path ./pypi_utils/__init__.py
python main.py $version
git add .
git commit -m "release v$version"
git tag v$version -m "release v$version"
git push origin v$version
```
Raw data
{
"_id": null,
"home_page": "https://github.com/lgf4591/pypi_utils",
"name": "pypi-utils",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "lgf4591",
"author_email": "lgf4591@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/ef/6f/1182aefa9d2006b3ff984d416c59c70f2de221bdfa19dbe2eecd15245da8/pypi_utils-0.1.5.tar.gz",
"platform": null,
"description": "# pypi-template\na template for build python package to upload pypi repository\n\n\n```bash\n\nppoetry install\npoetry run dev\n\n```\n\n\n## publish\n\nchange pyproject.toml file -- version = \"0.1.0\"\nchange pypi_utils/__init__.py -- version = \"0.1.0\"\n\n```bash\n\nsed -i\"s#A#B#g\" *.txt\n\n\nversion=\"0.1.0\"\nsed -i -e \"s/__version__ = .*/__version__ = '${version}'/g\"\npython main.py ${version}\ngit add .\ngit commit -m \"release v${version}\"\ngit tag v${version} -m \"release v${version}\"\ngit push origin v${version}\n\n\n```\n\n```powershell\n\n$version=\"0.1.5\"\n((Get-Content -Path ./pypi_utils/__init__.py) -replace \"__version__ = .*\",\"__version__ = '$version'\") | Set-Content -Path ./pypi_utils/__init__.py\npython main.py $version\ngit add .\ngit commit -m \"release v$version\"\ngit tag v$version -m \"release v$version\"\ngit push origin v$version\n\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "a template for build python package",
"version": "0.1.5",
"project_urls": {
"Homepage": "https://github.com/lgf4591/pypi_utils",
"Repository": "https://github.com/lgf4591/pypi_utils"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8737294d03dae74357e92e9b7585b46690f0877500c264a923bdacf385211a8c",
"md5": "e690fbe7ba842e1cf74f06d8e7ba11bd",
"sha256": "093e00c28582d3cd479ceea2fd96f952a8c31e91d328c6553f550086cbbdfed2"
},
"downloads": -1,
"filename": "pypi_utils-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e690fbe7ba842e1cf74f06d8e7ba11bd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 4419,
"upload_time": "2023-11-10T18:50:46",
"upload_time_iso_8601": "2023-11-10T18:50:46.483169Z",
"url": "https://files.pythonhosted.org/packages/87/37/294d03dae74357e92e9b7585b46690f0877500c264a923bdacf385211a8c/pypi_utils-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ef6f1182aefa9d2006b3ff984d416c59c70f2de221bdfa19dbe2eecd15245da8",
"md5": "d5ebcaa1005c8a811c69a995a06aba59",
"sha256": "8e775a22fbfa8315891ac37637c3d31b07d0efbd6592ddb6e707fc48aec5c861"
},
"downloads": -1,
"filename": "pypi_utils-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "d5ebcaa1005c8a811c69a995a06aba59",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 3446,
"upload_time": "2023-11-10T18:50:47",
"upload_time_iso_8601": "2023-11-10T18:50:47.675234Z",
"url": "https://files.pythonhosted.org/packages/ef/6f/1182aefa9d2006b3ff984d416c59c70f2de221bdfa19dbe2eecd15245da8/pypi_utils-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-10 18:50:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lgf4591",
"github_project": "pypi_utils",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pypi-utils"
}