-
-
Notifications
You must be signed in to change notification settings - Fork 260
Description
Describe the bug
Unable to import client even after successful generation with setup
To Reproduce
Having a dir
-openapi-gen (ROOT)
--schemas
----dimensions.json
Steps to reproduce the behavior:
Created new env with conda conda create --name Generators python==3.9.6
conda activate Generators
pip install openapi-python-client
openapi-python-client generate --meta setup --path schemas/dimensionsService.json
Generates dimensions-service-client
openapi-gen directory has now 2 directories - schemas + dimensions-service-client
cd dimensions-service-client
pip install .
Client is successfully installed.
But now I have a problem. In Pycharm I see that lib is installed, but in site-packages is only ....dist-info directory and not any other dir with api, models etc. THEN I noticed that api and models directories are directly inside the site-packages and not inside its own directory.
Expected behavior
Expected to have it's own directory so I can just use import dimensions_service_client and not import api (not mentioning that I'm not able to initiate the Client)
The issue is probably connected with package name inside setup.py?
OpenAPI Spec File
Any
Desktop (please complete the following information):
- OS: Win10
- Python Version: 3.9.6
- openapi-python-client version 0.1.0