overthesun / simoc-sam

Live backend for SAM at Biosphere 2
2 stars 1 forks source link

Convert the project into a package. #30

Closed ezio-melotti closed 2 years ago

ezio-melotti commented 2 years ago

This PR fixes #15, by implementing a series of changes:

This is the new structure of the project:

.
├── Dockerfile
├── index.html
├── pyproject.toml
├── README.md
├── src
│   └── simoc_sam
│       ├── basesensor.py
│       ├── __init__.py
│       ├── mocksensor.py
│       ├── scd30.py
│       ├── sioclient.py
│       ├── sioserver.py
│       └── utils.py
├── tests
│   ├── test_basesensor.py
│   └── test_sioserver.py
└── tmux.sh
kstaats commented 2 years ago

Great!

On 7/21/22 10:39, Ezio Melotti wrote:

This PR fixes #15, by implementing a series of changes:

  • the files have been reorganized in directories
  • the actual package is simoc_sam in src
  • the tests are now outside of the package
  • a new pyproject.toml file has been added
  • the imports have been adjusted based on the new layout
  • the tmux.sh script has been updated

This is the new structure of the project:

.
├── Dockerfile
├── index.html
├── pyproject.toml
├── README.md
├── src
│   └── simoc_sam
│       ├── basesensor.py
│       ├── __init__.py
│       ├── mocksensor.py
│       ├── scd30.py
│       ├── sioclient.py
│       ├── sioserver.py
│       └── utils.py
├── tests
│   ├── test_basesensor.py
│   └── test_sioserver.py
└── tmux.sh

You can view, comment on, or merge this pull request online at:

https://github.com/overthesun/simoc-sam/pull/30

-- Commit Summary --

  • Reorganize the files in dirs.
  • Turn the project into a package.
  • Update the tmux.sh script.

-- File Changes --

 A pyproject.toml (24)
 A src/simoc_sam/__init__.py (0)
 R src/simoc_sam/basesensor.py (0)
 R src/simoc_sam/mocksensor.py (4)
 R src/simoc_sam/scd30.py (4)
 R src/simoc_sam/sioclient.py (2)
 R src/simoc_sam/sioserver.py (2)
 R src/simoc_sam/utils.py (2)
 R tests/test_basesensor.py (2)
 R tests/test_sioserver.py (8)
 M tmux.sh (21)

-- Patch Links --

https://github.com/overthesun/simoc-sam/pull/30.patch https://github.com/overthesun/simoc-sam/pull/30.diff

ezio-melotti commented 2 years ago

The latest commit: