-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
204 lines (182 loc) · 10.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<title>Petr was here</title>
<link rel="stylesheet" href="/theme/css/main.css" />
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="/">Petr was here</a></h1>
<nav><ul>
<li><a href="/pages/about-petrs.html">About PetrS</a></li>
<li><a href="/category/diy.html">diy</a></li>
<li><a href="/category/opensource.html">OpenSource</a></li>
<li><a href="/category/other.html">Other</a></li>
<li><a href="/category/python.html">Python</a></li>
</ul></nav>
</header><!-- /#banner -->
<aside id="featured" class="body">
<article>
<h1 class="entry-title"><a href="/magic-of-python-packages.html">Magic of Python packages</a></h1>
<footer class="post-info">
<abbr class="published" title="2022-06-16T11:23:00+03:00">
Published: Thu 16 June 2022
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/petrs.html">PetrS</a>
</address>
<p>In <a href="/category/python.html">Python</a>.</p>
<p>tags: <a href="/tag/python.html">python</a> <a href="/tag/opensource.html">opensource</a> <a href="/tag/packaging.html">packaging</a> </p>
</footer><!-- /.post-info --><h2>Magic of Python packages</h2>
<p>There is always some magic when you learn python and install packages with <code>pip install</code> command. But have
you ever wondered how python packages are born?</p>
<p>At first, there is almost any package for your need in the PYPI repository. PYPI is a PYthon Package Index.
That is a default repository for python modules. When you install a module with <code>pip install</code> command,
it downloads the required package and its dependencies from <a href="pypi.org">pypi.org</a>. Of course that could be overwritten
with your private repository instance, if you have one. 🙂 While you accumulate more and more experience
with writing python code you may face some extra needs for python packages. You check pypi and voila! Wait...
No. There is no package for your specific purpose. It has not been developed yet. Okay, you have an idea of how to
make the package. And then you did it. Nice. It's time to share your awesome code and make other developers happy
because there is no need to develop the package again. How to start?</p>
<p>Well, there is a great <a href="https://packaging.python.org/en/latest/tutorials/packaging-projects/">python packaging guide</a>.
I would recommend to go through it. It will help you to through the basics of packaging process.
The guide includes the following steps:</p>
<ol>
<li>Preparing your package repository folder structure for packaging;</li>
<li>Creating configuration files for packaging and distribution (license and readme);</li>
<li>Generating distribution archives;</li>
<li>Downloading the archives to a python index repo;</li>
<li>And finally, installing the newly added package.</li>
</ol>
<p>Yes, your friends will be able to install your package with <code>pip install <your_cool_package_name></code> now. You may worry about
making mistakes while uploading distribution archives to PYPI. Stop it 🙂 There is a test PYPI
instance to master interaction with pypi repository. It is <a href="https://test.pypi.org/">here</a>.
Don't place any valuable info there because the testing PYPI instance is periodically cleaned.</p>
<p>Huh. It seems that now some magic smoke disappeared and you understand more clearly of how things are done in python. Enjoy!</p> </article>
</aside><!-- /#featured -->
<section id="content" class="body">
<h1>Other articles</h1>
<hr />
<ol id="posts-list" class="hfeed">
<li><article class="hentry">
<header>
<h1><a href="/hacktoberfest2021.html" rel="bookmark"
title="Permalink to Hacktoberfest2021">Hacktoberfest2021</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-10-14T15:25:00+03:00">
Published: Thu 14 October 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/petrs.html">PetrS</a>
</address>
<p>In <a href="/category/opensource.html">OpenSource</a>.</p>
<p>tags: <a href="/tag/github.html">github</a> <a href="/tag/opensource.html">opensource</a> <a href="/tag/hacktoberfest.html">hacktoberfest</a> </p>
</footer><!-- /.post-info --> <p>Hacktoberfest 2021</p>
<a class="readmore" href="/hacktoberfest2021.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/github-actions.html" rel="bookmark"
title="Permalink to Github actions">Github actions</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-09-26T23:29:00+03:00">
Published: Sun 26 September 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/petrs.html">PetrS</a>
</address>
<p>In <a href="/category/other.html">Other</a>.</p>
<p>tags: <a href="/tag/github.html">github</a> <a href="/tag/publishing.html">publishing</a> </p>
</footer><!-- /.post-info --> <p>Github actions - initial</p>
<a class="readmore" href="/github-actions.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/posting-to-github-pages.html" rel="bookmark"
title="Permalink to Posting to GitHub pages">Posting to GitHub pages</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-09-12T01:25:00+03:00">
Published: Sun 12 September 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/petrs.html">PetrS</a>
</address>
<p>In <a href="/category/other.html">Other</a>.</p>
<p>tags: <a href="/tag/github.html">github</a> <a href="/tag/publishing.html">publishing</a> </p>
</footer><!-- /.post-info --> <p>Post to Github Pages</p>
<a class="readmore" href="/posting-to-github-pages.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/my-blog-on-github-pages.html" rel="bookmark"
title="Permalink to My blog on GitHub pages">My blog on GitHub pages</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-09-05T10:20:00+03:00">
Published: Sun 05 September 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/petrs.html">PetrS</a>
</address>
<p>In <a href="/category/other.html">Other</a>.</p>
<p>tags: <a href="/tag/pelican.html">pelican</a> <a href="/tag/publishing.html">publishing</a> </p>
</footer><!-- /.post-info --> <p>Initial post</p>
<a class="readmore" href="/my-blog-on-github-pages.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/my-first-steps-in-3d-printing.html" rel="bookmark"
title="Permalink to My first steps in 3d printing">My first steps in 3d printing</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-02-13T22:20:00+03:00">
Published: Sat 13 February 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/petrs.html">PetrS</a>
</address>
<p>In <a href="/category/diy.html">diy</a>.</p>
<p>tags: <a href="/tag/3d_printing.html">3d_printing</a> <a href="/tag/diy.html">diy</a> </p>
</footer><!-- /.post-info --> <p>My first steps in 3d printing</p>
<a class="readmore" href="/my-first-steps-in-3d-printing.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
<div class="blogroll">
<h2>links</h2>
<ul>
<li><a href="https://getpelican.com/">Pelican</a></li>
<li><a href="https://pages.github.com/">GitHub Pages</a></li>
</ul>
</div><!-- /.blogroll -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="https://www.linkedin.com/in/nassauwinter/">LinkedIn</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about -->
<p>The theme is by <a href="https://www.smashingmagazine.com/2009/08/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
</footer><!-- /#contentinfo -->
</body>
</html>