Creating a package scaffolding

So, how do we start? First of all, we need to create a scaffolding—a default package structure with all the necessary folders, files with metadata and configs, and so on. Our code will be stored on GitHub, so let's start by creating a new repository:

  1. This step is easy. Go to https://github.com/, log in, hit the New button, and fill in all the information. In our case, we'll name the repository the same as the package—wikiwwii. We'll also add a standard Python .gitignore file and a README.MD file. You can also add a license of your choice for your repositories.
  2. Next, we create the repository and copy the path to the clipboard. With that, we can open a terminal, go to the proper location on the hard drive, and write this, replacing <repo> with the path you copied from GitHub:
git clone <repo>

With that, a copy of the repository will be downloaded, with a link to the remote version being stored. Try adding notes to README.MD. Now commit the change by typing git -am commit "adding to README", and then use git push. This will send our first commit to the master branch on GitHub.

Now let's see how we can build a package.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset