Jelajahi Sumber

Add the first code to create a Rover instance

Currently, does nothing but create an instance of Rover.
Oz N Tiram 4 tahun lalu
induk
melakukan
08ca49e4be
4 mengubah file dengan 10 tambahan dan 0 penghapusan
  1. 1 0
      .gitignore
  2. 5 0
      setup.cfg
  3. 1 0
      src/rover/__init__.py
  4. 3 0
      src/rover/rover.py

+ 1 - 0
.gitignore

@@ -1,2 +1,3 @@
 *.sw[o,p]
 **/__pycache__**
+**src/marsrover.egg-info/**

+ 5 - 0
setup.cfg

@@ -21,6 +21,11 @@ classifier =
 console_scripts =
     rover = rover:main
 
+[files]
+packages_root = src
+packages =
+    rover
+
 [aliases]
 test = pytest
 

+ 1 - 0
src/rover/__init__.py

@@ -0,0 +1 @@
+from .rover import Rover

+ 3 - 0
src/rover/rover.py

@@ -0,0 +1,3 @@
+
+class Rover:
+    pass