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

Repo structure #2

Closed
fredrikaverpil opened this issue May 27, 2016 · 2 comments
Closed

Repo structure #2

fredrikaverpil opened this issue May 27, 2016 · 2 comments

Comments

@fredrikaverpil
Copy link
Collaborator

fredrikaverpil commented May 27, 2016

Right now, the repo acts as a Python module:

~/code/github
❯ git clone https://github.com/mottosso/Qt.git
Cloning into 'Qt'...
remote: Counting objects: 39, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 39 (delta 14), reused 28 (delta 3), pack-reused 0
Unpacking objects: 100% (39/39), done.
Checking connectivity... done.

~/code/github
❯ python
Python 2.7.11 (default, Jan 22 2016, 08:29:18)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from Qt import QtGui
Loaded PyQt5
>>>

Perhaps there should be a "Qt" folder in the github repo, which will be the Python module. Not sure how this is usually done and how it'll work with PyPi.

@mottosso
Copy link
Owner

Ah, yes. There's no need for the __init__.py, just put it in Qt.py.

You'll need to format things a bit differently to make it work with from Qt import QtWidgets, but it shouldn't be too tricky.

@fredrikaverpil
Copy link
Collaborator Author

Allright!

mottosso referenced this issue in abstractfactory/Qt.py Jun 1, 2016
mottosso added a commit that referenced this issue Jun 17, 2016
* Simplify previous commit, add test

* Repair broken Qt.py
mottosso added a commit that referenced this issue Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants