Let's share a program made with Python with mankind. It's nothing. It's easy.
Project description
nothing-pip
- 함께 배우고 가르치기 위해 만들어졌습니다.
- 누구나 python으로 제작한 프로그램을 누구에게나 사용하도록 배포할 수 있습니다.
- 아무것도 아닙니다.
Start
- 차차 파이썬 프로그램을 배포에 대한 공식 문서를 참고해 주세요.
- 여기서는 PDM 을 사용합니다. 0.1.0 릴리즈 노트 에 정리되어 있습니다.
$ curl -sSL https://pdm.fming.dev/install-pdm.py | python3 -
$ mkdir nothing-pip & cd nothing-pip
$ pdm init
$ source .venv/bin/activate
Nothing
- 한줄의 명령어로 누구나 사용 가능한 python 프로그램이 배포 되었습니다.
$ pdm publish
Building sdist...
Built sdist at .../nothing-pip/dist/nothing_pip-0.2.0.tar.gz
Building wheel...
Built wheel at .../nothing-pip/dist/nothing_pip-0.2.0-py3-none-any.whl
Username: dmario24
Password:
Uploading nothing_pip-0.2.0-py3-none-any.whl
Uploading nothing_pip-0.2.0.tar.gz
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 kB
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 kB
View at:
https://pypi.org/project/nothing_pip/0.2.0/
https://pypi.org/project/nothing-pip/0.2.0/
Showing off and promoting
- 이제 자랑의 시간입니다.
- 알리고 싶은 사람에게 아래의 링크나 명령어를 전달하세요.
- https://pypi.org/project/nothing_pip/
$ pip install nothing-pip
END
Challenge - 1
one tiny feature
- 0.2.0 릴리즈 를 내려받아 해보세요.
- 0.3.0 릴리즈 에 왼성 코드가 있습니다.
- ping <-> pong 기능을 만들어 봅시다.
- src/nothing_pip/ping.py 추가
test
- 만든 기능 확인을 위해 테스트를 만들어 봅니다.
- tests/test_ping.py 추가
- test 하는법 여러 종류 한번씩 해보세요. 뭐가 다른지 ~
$ pytest
$ pytest -q
$ pytest -q tests/test_class.py
$ ---------- coverage: platform darwin, python 3.9.17-final-0 ----------
Name Stmts Miss Cover
-------------------------------------------------
src/nothing_pip/__init__.py 0 0 100%
src/nothing_pip/ping.py 4 0 100%
-------------------------------------------------
TOTAL 4 0 100%
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nothing_pip-0.3.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for nothing_pip-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a09ed94495ec4c2b59fabf9180fa7c329bf5aa0a8548b81d5b15d709aadc102 |
|
MD5 | ad69de784ca7250274bb5d52a6b773d4 |
|
BLAKE2b-256 | e6b4ff1081030c85c7369e3a8623d796d1ed484d72b91aab1d10cc38163cc370 |