Skip to content

Setup is not working - package name?  #492

Closed
@Leem0sh

Description

@Leem0sh

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.

pycharm-dims

pycharm-dims-ext

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions