https://github.com/bhaveshan/carport
https://github.com/bhaveshan/carport
linux pyinstaller python3 tdd-workflow
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bhaveshan/carport
- Owner: bhaveshAn
- Created: 2019-08-08T17:24:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-08T17:26:54.000Z (over 6 years ago)
- Last Synced: 2025-01-28T10:23:46.336Z (10 months ago)
- Topics: linux, pyinstaller, python3, tdd-workflow
- Language: Python
- Size: 5.08 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parking Lot Problem
## Set up the project (Build on Python 3.5.2 and Linux Ubuntu 16.04 LTS)
Following command **installs dependencies**, **builds the binary** and **runs unittests**
* **PyInstaller** has been used for build purpose.
```
bin/setup
```
After running above command a executable binary file is created which can be found as `dist/main`
```
dist/main
```
Building your own binary
```
pyinstaller src/main.py --onefile
```
## Running automated tests
```
bin/run_functional_tests
```
## Running the application
Following commands runs the application in 2 modes
1. File Mode
```
bin/parking_lot file_input.txt
```
2. Interactive Mode
```
bin/parking_lot
```
## Running the application as python scripts (Python 3.5.2)
Following commands runs the application in 2 modes
1. File Mode
```
python3 src/main.py file_input.txt
```
2. Interactive Mode
```
python3 src/main.py
```
## Running unittests as python scripts (Python 3.5.2)
```
python3 tests_parking_lot.py
```
**Submitted By : [Bhavesh Anand](https://bhaveshan.github.io)**