Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appropriate folder structure of the Python package #20

Open
alphaville opened this issue Feb 22, 2023 · 0 comments
Open

Appropriate folder structure of the Python package #20

alphaville opened this issue Feb 22, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@alphaville
Copy link
Collaborator

Motivation

The end-user should be able to install and use this package easily, by doing just

pip install .

What needs to be done

The folder structure of the Python project should be:

- setup.py
- VERSION
- MANIFEST.in
- README.md
deadcopter/
  L flight_controller/
      L __init__.py (1)
  L jinja_templates/
  L test/
  L __init__.py (2)

We need

  • a setup.py file (in which we should exclude test) and the auxiliary files VERSION and MANIFEST.in; the setup.py should list the dependencies; we have pyquaternion, scipy and control I think
  • rename src to deadcopter (it should be the name of the Python package)
  • the file __init__.py in (1) should not use import but rather:
from .copter import *
from .jinja_create import *
from .simulator import *
  • the file __init__.py (2) should not be empty, but should load the submodules of the project

See also

OpEn

@alphaville alphaville added the enhancement New feature or request label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants