# pyporter **Repository Path**: openeuler/pyporter ## Basic Information - **Project Name**: pyporter - **Description**: A rpm packager bot for python modules from pypi.org - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 20 - **Forks**: 41 - **Created**: 2020-05-13 - **Last Updated**: 2025-05-30 ## Categories & Tags **Categories**: lamp **Tags**: dev-utils ## README # pyporter #### Description A rpm packager bot for python modules from pypi.org #### Preparation Install below software before using this tool 1. gcc 2. gdb 3. libstdc++-devel 4. python3-cffi 5. rpmbuild 6. python3-hatchling 7. python3-hatch-vcs 8. openEuler-rpm-config (>= Release 30-39) #### Installation Install from source ``` pip install . ``` Install with develop mode ``` pip install -e . ``` #### Instructions pyporter is a tool to create spec file and create rpm for python modules For more details, please use `pyporter -h` Create spec file, and output spec file named `python-.spec` ``` pyporter -s -o python-.spec ``` #### Contribution You could install pre commit hook before commit your code, it will check your code format and style. ```python pip install pre-commit ``` Refer https://pre-commit.com/ 1. Fork the repository 2. Create Feat_xxx branch 3. Commit your code 4. Create Pull Request #### How to create a rpm file 1. Create spec file, `pyporter -s filename` 2. Get required python modules, `pyporter -R filename` 3. Build and Install rpm package, `pyporter -B filename` 4. For more detail, `pyporter -h`