Skip to content

aaingyunii/hello-aaingyunii_pr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-aaingyunii_pr 1.1.0

  • The Python program I'm distributing for the first time

View at:

INSTALL

$ pip install hello-aaingyunii_pr

USE

$ hello-aaingyunii-pic



            ░░░░░░░░░░░░░░░░░░░░░░░░░░
            ░░░█▀▀▀░█▀▀█░░█▀▀░▀▀█░░█░░
            ░░░▀▀▀█░█░░█░░█▀▀░▄▀░░░▀░░
            ░░░▀▀▀▀░▀▀▀▀░░▀▀▀░▀▀▀░░▀░░
            ░░░░░░░░░░░░░░░░░░░░░░░░░░
            ⎛⎝(•‿•)⎠⎞⎛⎝(•‿•)⎠⎞⎛⎝(•‿•)⎠⎞⎛⎝(•‿•)⎠⎞
$ hello-aaingyunii-who

My name is aik
$ ha-weather

현재 위치 : 동작구 신대방2동 
현재 날씨: 맑음
현재 온도: 17.1°

DEV

$ git clone ...
$ cd hello-aaingyunii_pr
$ pdm venv create
$ source .venv/bin/activate
(hello-aaingyunii_pr-3.8) $ pdm install

TEST

$ pdm add -dG test pytest pytest-cov
$ pytest
$ pytest -s
$ pytest --cov

pytest

  • who.py
def my_name():
    print("My name is aik")
  • test_who.py
from hello_aaingyunii_pr.who import my_name

def test_my_name():
    my_name()
  • test_weather.py
from hello_aaingyunii_pr.weather_show import weather_show

def test_weather():
    weather_show()
    assert True

DEPLOY

$ pdm publish

REF