主体贴边缘不扩边
Project description
为了区分3.0与4.0版本,同时资源图与详情页也共用的一套裁剪逻辑代码。
为了降低裁剪部分维护与开发难度,封装为裁剪工具包
包制作流程
环境:win
python版本: 3.9
自定义包
https://packaging.python.org/tutorials/packaging-projects/#
项目目录结构
ecpro-util/
|-- src/
| |-- ecpro/
| | |-- init.py
| | |-- html_slot_config.py
| | |-- image.py
| | |-- img_crop.py
|--tests/
| |--test.py
|--setup.py
|--LICENSE
|--MANIFEST.IN
|--pyproject.toml
|--READNE.md
打包
python setup.py sdist bdist_wheel
发布到pypi
首先需要在pypi上注册并绑定邮箱才有权限上传
twine upload dist/*
安装
pip install crop-utils==4.3.27 -i https://pypi.python.org/simple/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crop_utils-4.3.27.tar.gz
(26.1 kB
view hashes)
Built Distribution
Close
Hashes for crop_utils-4.3.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e22b86e91da0f1099ea52d0e232f06fbc1575874946edb2abd98fc0bf73e5d1 |
|
MD5 | 95031bae5a5c5dcfe1e7624f4a4411da |
|
BLAKE2b-256 | c46c37212e5e3de7f6c3c4d93353166babd9a9e9af7d0a9c39888b2057b5fe6b |