From c84f62074dc96e018e77dc69a0319c2c15a42717 Mon Sep 17 00:00:00 2001 From: Vipul Kumar Date: Thu, 9 Sep 2021 19:41:21 +0530 Subject: [PATCH 1/2] [projectstructure] Use 'python3 -m pip' instead of simply 'pip' --- docs/projectstructure.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/projectstructure.rst b/docs/projectstructure.rst index 53c511b..409cda2 100644 --- a/docs/projectstructure.rst +++ b/docs/projectstructure.rst @@ -117,7 +117,7 @@ package. :: - $ pip install setuptools wheel + $ python3 -m pip install setuptools wheel setup.py @@ -267,7 +267,7 @@ First, we will have to install **twine** using **pip** (we are using a virtualen :: - $ pip install twine + $ python3 -m pip install twine $ twine upload --repository-url https://test.pypi.org/legacy/ dist/* Uploading distributions to https://test.pypi.org/legacy/ Enter your username: kushaldas @@ -287,7 +287,7 @@ You can use the following command to install from the test PyPI. :: - $ pip install --index-url https://test.pypi.org/simple/ pymfactorial + $ python3 -m pip install --index-url https://test.pypi.org/simple/ pymfactorial More readings ============== From 993fbe0acb066c402da6ab648ca048ca41467336 Mon Sep 17 00:00:00 2001 From: Vipul Kumar Date: Thu, 9 Sep 2021 19:46:19 +0530 Subject: [PATCH 2/2] [projectstructure] Fix punctuations This commit contains following changes: - End a complete sentence with a period punctuation. - End a sentence with colon punctuation, if next sentence contains explanation of it. --- docs/projectstructure.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/projectstructure.rst b/docs/projectstructure.rst index 409cda2..1bc962b 100644 --- a/docs/projectstructure.rst +++ b/docs/projectstructure.rst @@ -22,7 +22,7 @@ next. $ mkdir myfact -The primary code will be in a file called *fact.py* +The primary code will be in a file called *fact.py*. :: "myfact module" @@ -49,7 +49,7 @@ We also have a *__init__.py* file for the module. from fact import factorial __all__ = [factorial, ] -We also added a *README.rst* file. So, the directory structure looks like +We also added a *README.rst* file. So, the directory structure looks like: :: @@ -232,7 +232,7 @@ One can see the output files under *dist* directory. $ ls dist/ pymfactorial-0.1-py3-none-any.whl pymfactorial-0.1.tar.gz -.. warning:: Remember to use a virtualenv while trying to install the code :) +.. warning:: Remember to use a virtualenv while trying to install the code. :) Python Package Index (PyPI) @@ -242,7 +242,7 @@ Do you remember the **pip** command we are using still now? Ever thought from where those packages are coming from? The answer is `PyPI `_. It is a repository of software for the Python programming language. -For our example, we will use the test server of PyPI which is `https://test.pypi.org/ `_ +For our example, we will use the test server of PyPI which is `https://test.pypi.org/ `_. Creating account -----------------