Skip to content

Conversation

@Matvey-Kuk
Copy link
Contributor

@Matvey-Kuk Matvey-Kuk commented Dec 21, 2016

This library needed to be installable by PIP.

"requirements.txt" may look like:

https://github.com/OpenBMP/openbmp-python-api-message/tarball/master#egg=openbmp

Other package's setup.py may look like:

...
dependency_links=[
        'https://github.com/OpenBMP/openbmp-python-api-message/tarball/master#egg=openbmp'
    ],
...

After installation package's main directory becomes directory "where python looks for packages". So after installation now I can import package "api":

from api.parsed.message import Message

because such a folder exists in repository.

I moved library to "openbmp" folder so now one can use it like

from openbmp.api.parsed.message import Message

Reference: https://github.com/pypa/sampleproject (folder "sample" = package name and exists in repo)

@TimEvens TimEvens added the bug label Jan 3, 2017
@TimEvens TimEvens closed this Jan 3, 2017
@Matvey-Kuk
Copy link
Contributor Author

@TimEvens is there smth to be fixed in this MR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants