From 8193c9dfce5548dbc2a5b967e2e29ed03e1fd38c Mon Sep 17 00:00:00 2001 From: kirbylife Date: Sun, 19 Jan 2020 12:42:13 -0600 Subject: [PATCH] Initial commit --- README.rst | 0 dist/example-0.1.0-py3-none-any.whl | Bin 0 -> 1761 bytes dist/example-0.1.0.tar.gz | Bin 0 -> 1243 bytes example/__init__.py | 1 + example/__pycache__/__init__.cpython-36.pyc | Bin 0 -> 152 bytes example/__pycache__/main.cpython-36.pyc | Bin 0 -> 869 bytes example/main.py | 21 ++ poetry.lock | 347 ++++++++++++++++++ pyproject.toml | 22 ++ tests/__init__.py | 4 + tests/__pycache__/__init__.cpython-36.pyc | Bin 0 -> 289 bytes .../test_example.cpython-36-PYTEST.pyc | Bin 0 -> 2852 bytes tests/test_example.py | 22 ++ 13 files changed, 417 insertions(+) create mode 100644 README.rst create mode 100644 dist/example-0.1.0-py3-none-any.whl create mode 100644 dist/example-0.1.0.tar.gz create mode 100644 example/__init__.py create mode 100644 example/__pycache__/__init__.cpython-36.pyc create mode 100644 example/__pycache__/main.cpython-36.pyc create mode 100644 example/main.py create mode 100644 poetry.lock create mode 100644 pyproject.toml create mode 100644 tests/__init__.py create mode 100644 tests/__pycache__/__init__.cpython-36.pyc create mode 100644 tests/__pycache__/test_example.cpython-36-PYTEST.pyc create mode 100644 tests/test_example.py diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..e69de29 diff --git a/dist/example-0.1.0-py3-none-any.whl b/dist/example-0.1.0-py3-none-any.whl new file mode 100644 index 0000000000000000000000000000000000000000..82e809a5ea908a838bfa9a5bbf30d9c23d602889 GIT binary patch literal 1761 zcmWIWW@Zs#U|`??Vnv1~uELiRK$aK~3j=X#MPhD2PO5%?6|b0RmnMEDsmbo*%0^VT)AN=5I$Hu1whSBeNs+avMwb9Mf_(&pzJ zJ+2owmS33FanXv!+WyY7MHw5JrN11goV4T>)2GCqPRUAi>E=zq!IBC}_@E1kE^%NEFDoBjXbgf`I~NBCCu zOUCDK;kw$He*c+F?Y?@agYHfivxF5~-7IEv&v|esMxkQW(Wn%i{NL|BA3Dclig-P($UcDd#a`9siU>gcdf@6 z-4mWyPy3!ZvzbXSMs?*;)uY=IF0EQ&qHkxYt}b`x@guZ&^hmq4_G~E7ZV;Bm3IePb_AdXxq#V_KfZJtv$BL~7m$S_5JSlc>-@RXN#RD>$?IJC1J=i08 z@Ir{|;=Qb)v%l(<=<%cpt~9YV+21v(KV$VigKVq+H>;8o10JQ>p@vDstZSRj1Km*o zOjinc+~eyS;^^WS;yAU>*ZZ)8K->G@+Rtt{8LP|=NX_h8>$ItDbr`9)>a}7%sId(7m8vbp{gVS%WD%YoQ%B(&dbR+5RcilYm-RoB5 z%N*5MTrg4YP!4mY{^VBcSvhK_6TJS#TKm4;X_I$8FXqqRYHdSFi5W$c40l^RPi9}e z@BIg%ufOcYPn|M!jd)w#83^6SXi}Y(A{XU8LVtS3ApK^0DuX`tgsJ?SC%aQqaxmRPvuG zSh9H0m)z>mw{I&y>GZ$la^h6x<2_XKrek_g|MQ z*!o+_&$ja=T2o(Cn|<)(m+-B!n!)ZqZ)PP=>gTJe!U7_Rxf*S0nQiAjxM|@Tn4iUF%ipcx;~;21PmX8nTCuF`-Itm6 z`RzF))gArgf^p2r{GU($IfPqyh~;m&Yr5u4#|8`5Jxgk8YBS#a)n$m^AK=Z%B*Kil zOaulr7%XW7QCLbybOX@KLWp(-h9!-jNCrSlMl{VBg#cVLV=pk)p|%q&63|UW&(;W2 z1(|T03eM!{Mxp0Ogi#Ce7zN9p=%%43X@qI(m~lG{lE4GJS=m79*?@2-FmQxeK|BCm CY=1%k literal 0 HcmV?d00001 diff --git a/dist/example-0.1.0.tar.gz b/dist/example-0.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c56171f8d19a7a16a102f2db1587d5308c00b692 GIT binary patch literal 1243 zcmV<11SI<(iwFpU8zf!=|7Cb#ZE$R5Eif)IE-)^1VR8WNSZ#0HHW1Ed{t7}XAUm@Z zz1dEMI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0,0 +1 @@ +__version__ = '0.1.0' diff --git a/example/__pycache__/__init__.cpython-36.pyc b/example/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b9fc044431ce9b7a400c77806bf2e029fc694ac5 GIT binary patch literal 152 zcmXr!<>g|CSB?{7U|@I*#Bjg}WH|tFF$a)HVTfW#VGL%_WU68{&@W8G}7U-u|B<2?6q{8X=_{_Y_ alK6PNg34PQHo5sJr8%i~AVZ3Qm;nIK7bKwo literal 0 HcmV?d00001 diff --git a/example/__pycache__/main.cpython-36.pyc b/example/__pycache__/main.cpython-36.pyc new file mode 100644 index 0000000000000000000000000000000000000000..781a900201e19c59b2b018d4da9149a662f9a14a GIT binary patch literal 869 zcmZ8f&2AGh5cYU~vI%LCPyvaP4>@#2Lxi|Rs72}(jpAOFd03pB0y+zS}hoX)VIN^|! zsns-x0;T|jd))s@rj!RfMD6hok5Ky};N43q$HLzbjDim&?)}9aWDVN4B`!URRCXA4XX z=B)+6Yor|3=(yV+{uS}Gwq?Sl2ung?A3CJ$u z%-LvI9iljj2WV)bK~wFuq=gN|Z7&Iv*f)NjDQ&`emTMth78A&{{49_yqy{b=!#jvD zlL=jEW$kV4$7s(`-0~22wLjvA#+Gid{gwg8${V=8vpr|Smen=INWUfD2oG9748I5N z9O0d%uLB*nj=A-5+vI4{yukdYX+CT6igCfpn_q>Hm134-r5Zb(_cuR_ObeEkb0M=z zj@f^1)zn+}Ax5879FONH4|1`qMzBS?VxrViu(iilY#lIFmE$!%VsXa=ShUo}vk+uu z-DqhWWBg^6mBuU5+IULK*pqwcmizW!D1~Zr{jkTr9rYs&P<;df5%i%?d+-e8b9*dG z5*v{uaVYImly=~5c&_9ws7woyB=@r0*CyQ"] + +[tool.poetry.dependencies] +python = "^3.6" +requests = "^2.22" +beautifulsoup4 = "4.8.2" + +[tool.poetry.dev-dependencies] +pytest = "^3.0" +ipython = "^7.11" + +[tool.poetry.scripts] +start = "example.main:main" +tests = "tests:run_all_tests" + +[build-system] +requires = ["poetry>=0.12"] +build-backend = "poetry.masonry.api" diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..24585ae --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,4 @@ +from pytest import main as pytest_main + +def run_all_tests(): + pytest_main() diff --git a/tests/__pycache__/__init__.cpython-36.pyc b/tests/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ee946a17c1cb8d77adce44d7129116e0d2b89403 GIT binary patch literal 289 zcmYLDyAHxI40QTHsL;J1z|y4|SP?>EF9S>+hzbcJA}Li`Bs#;-@H>oMnfL`JoFc%| zot&J{=W!SY_h__U0KfzBD+jw7qKc3>aH2qy%pt%X?p`5txwnMaf1(O8X+53GVrw7Y zBG}9kRe)5(1<(p;At{az%BB`o&8+JN#>0`0UJ2bFwV(%SHjR=yL03YTRGf2NDnYHM zqKwHx){G@((}w0$uv{tDNv_Samjf|9n=2w~c#W{h@2x?^@x{ zfd3SaG!REz^JDXT^v z(n9*P@Rad9!y{uDuFteci?tJDrpLORM*6YAtFb=Pd5y+L#@ymogagdAld^n-`BJ3K zb@3ctnY@XCdH6AWUi!t@)Mf^+b2~Q1I(###VAhV!xjxr_03en&!#BBx12pzul{)Qi zyK`>r?VaCvcYAu)apczC-WIuiM+yQJ2Qo21rk`l%O;<`!L~6;dBWZZo(M5??>Vgg@ zYUEedkCWQd=~?8-h`AzJV~4KqGvQ6eVHiwZ;Ux`BvxC#IAB`t6Df=N-$mBMYFTzuw ztEKG74-Z_QO48L&i!9CaT`ZC@9n$@18?VKEDp~6@yOfx!V9K5-b*)_`rZzmN-B#ls-gDu zENQ62F4#cfmQ5H(#Du7fkxFb7qL28i=vVer3a_ZboPSt|>cEk;?}-6$wlXe& z7TYw^bEH$73EHw_iV7Nve~-*SyiTLGniO=ddu(~R=TvL0>aA<>&%^2RVJ8{3Cs# z1`B<#7WB1>`al^1k1;cs6h^LH0NlMqVPt?zE8rBg;-jm@B15@OZ*yR-fpY0;4iAci zzMpk6MSpNP4tG@?STLTPO4hx=Z&D{ohLofXq0Slp0md!_g|5OgJo0Cl2w~yI+(0@t zse+*Dfhq^88hGQV2Kh#?klIOQej*9yH)8{-eS^kTYHv}vl(2t^c_rcE0G>+c5cZbx zNzhkSYB%{NUyn_d+O0)uF9r`~gbLcN{gk$vl3t_)cuK5GNs&|1;glpeB>_%J1yWMj z^ffX{W{7)N6$D9TavB_<)Nu@@{=&w>?CM>r3j}@iue#s?t^1gUszM2(N(;27LaMkb zOO(VzT6B{PZC7lPxk|Yl6=2~`jyyIJVZgc_7KNOm>*%r zSxf9?MWQyB++kS_)6U3`x}q(-@5DGlJ(3S4mBpCKcu8eZ6R0X^*jQEwfjgdL8B(D@ wg@8&~g0xhS1_Ab?LU&S9HnmYxH1t)&Hkbc@0>g80&j0`b literal 0 HcmV?d00001 diff --git a/tests/test_example.py b/tests/test_example.py new file mode 100644 index 0000000..8f1bf54 --- /dev/null +++ b/tests/test_example.py @@ -0,0 +1,22 @@ +from example import __version__ +from example.main import is_prime, primes + +def test_version(): + assert __version__ == '0.1.0' + +def test_2_is_prime(): + assert is_prime(2) + +def test_4_is_not_prime(): + assert not is_prime(4) + +def test_113_is_prime(): + assert is_prime(113) + +def test__minus_1_is_not_prime(): + assert not is_prime(-1) + +def test_range_from_10_to_30_of_prime_numbers(): + numbers = primes(10, 30) + assert numbers == [11, 13, 15, 17, 19, 21, 23, 25, 27, 29] +