-
PyPI registrationData 2022. 8. 17. 17:35
You can follow the following webpage: https://bit.ly/3QP48AN. The PDF version of the webpage is attached in case the webpage is closed.
PyPI 등록, 나만의 패키지 만들기
나만의 명령어를 만들어보자. hey insutance!
velog.io
PyPI 등록, 나만의 패키지 만들기.pdf1.39MBFew Notes
- You can skip
entry_points
. - You can list
install_requires
by 1) creatingrequirements.txt
, 2) adding the following code block insetup.py
.
- NB! you should change the version requirement for libraries inrequirements.txt
to be>=
instead of==
unless strictly necessary. It's because we don't want users to unnecessarily reinstall existing libraries in their environments.
from pipreqs.pipreqs import parse_requirements install_reqs = parse_requirements('requirements.txt') install_reqs = [f'{item["name"]}=={item["version"]}' for item in install_reqs]
- If you need to upload some files as well (e.g., *.csv), you can do it with
package_data
insetup.py
. Refer to this webpage.
'Data' 카테고리의 다른 글
Automatically create requirements.txt (0) 2022.03.02 YAML Tutorial Quick Start (0) 2021.08.04 Signal Resampling (downsampling / upsampling) (0) 2021.04.27 - You can skip