forked from confluentinc/confluent-kafka-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move confluent_kafka/ to src/ to avoid pytest/tox picking up the loca…
…l dir .. rather than the installed module. Should once and for all eliminate the "ImportError: .. confluent_kafka.cimpl" problems.
- Loading branch information
Showing
37 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include README.md | ||
include LICENSE.txt | ||
include test-requirements.txt | ||
include confluent_kafka/src/*.[ch] | ||
include src/confluent_kafka/src/*.[ch] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
import platform | ||
|
||
work_dir = os.path.dirname(os.path.realpath(__file__)) | ||
mod_dir = os.path.join(work_dir, 'confluent_kafka') | ||
mod_dir = os.path.join(work_dir, 'src', 'confluent_kafka') | ||
ext_dir = os.path.join(mod_dir, 'src') | ||
|
||
INSTALL_REQUIRES = [ | ||
|
@@ -70,7 +70,8 @@ def get_install_requirements(path): | |
author_email='[email protected]', | ||
url='https://github.com/confluentinc/confluent-kafka-python', | ||
ext_modules=[module], | ||
packages=find_packages(exclude=("tests", "tests.*")), | ||
packages=find_packages('src'), | ||
package_dir={'': 'src'}, | ||
data_files=[('', [os.path.join(work_dir, 'LICENSE.txt')])], | ||
install_requires=INSTALL_REQUIRES, | ||
extras_require={ | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.