You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Deadline for submitting this exercise is **Wednesday 19th November 09:00**.
7
7
- The code in this exercise produces plots and in order to view them you need to use a GUI-based operating system or environment.
8
+
- The exercise follows the steps in the [Python packaging tutorial](https://packaging.python.org/en/latest/tutorials/packaging-projects/).
8
9
9
10
## Brief idea of the exercise
10
11
11
-
In this exercise you will convert a raw Python code into a packaged code which is uploaded to the testing index of PyPI called [TestPyPI](https://test.pypi.org/). You may find such exercises online, for example, [the tutorial on python.org](https://packaging.python.org/tutorials/packaging-projects/), but in this exercise we will attempt to package a simulation code. After preparing the code we will create build artifacts and upload them to the package index.
12
+
In this exercise you will convert a Python code into a package that is on [TestPyPI](https://test.pypi.org/). The code is a simple simulation code. After preparing the code for packaging, you will create build artifacts and upload them to the package index.
12
13
13
14
## Prerequisites
14
15
@@ -25,7 +26,7 @@ In this exercise you will convert a raw Python code into a packaged code which i
25
26
## Step 1 - Acquiring the code and getting familiar with it
26
27
27
28
- Fork the [exercise repository](https://github.com/Simulation-Software-Engineering/diffusion2D).
28
-
- Open the file `diffusion2d.py` and go through the file and try to understand the code components.
29
+
- Open the file `diffusion2d.py` and go through the file and try to understand it.
29
30
- Check if your system has Python version >= 3.6 and update it if it is older than 3.6.
30
31
- Install pip, build, and twine.
31
32
- Install NumPy and Matplotlib with `pip`. The installation instructions can be found on the webpages (links in the Prerequisites section of this document).
@@ -92,8 +93,8 @@ diffusion2d.solve()
92
93
93
94
## Step 7 - Testing the deployed package
94
95
95
-
-Using the commands from the lecture notes try to install the package using `pip` and also run the code by importing the `solve()` functionality in a Python script or an interactive Python shell.
96
-
- Even though your package is on TestPyPI, the dependencies of the package need to be installed from PyPI. To make sure that the dependencies are installed from PyPI and not TestPyPI, use the `--extra-index-url`flag in the `pip` command appropriately.
96
+
-Try to install the package using `pip` and also run the code by importing the `solve()` functionality in a Python script or an interactive Python shell.
97
+
- Even though your package is on TestPyPI, the dependencies of the package need to be installed from PyPI. To make sure that the dependencies are installed from PyPI and not TestPyPI, use the `--extra-index-url`option of `pip`.
0 commit comments