Metadata-Version: 2.1
Name: pypi_utils
Version: 0.1.5
Summary: a template for build python package
Home-page: https://github.com/lgf4591/pypi_utils
License: MIT
Author: lgf4591
Author-email: lgf4591@outlook.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: typing-extensions (>=4.8.0,<5.0.0)
Requires-Dist: yapf (>=0.40.2,<0.41.0)
Project-URL: Repository, https://github.com/lgf4591/pypi_utils
Description-Content-Type: text/markdown

# 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

```
