Skip to content

Commit

Permalink
Move to src layout for better tests isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanChristopheMorinPerso authored and markreidvfx committed Jul 3, 2022
1 parent da87779 commit b127b12
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include README.rst LICENSE
include avb/*.pyx
include avb/*.cpp
include src/avb/*.pyx
include src/avb/*.cpp
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""

sourcefiles = [
"avb/_ext.pyx",
"src/avb/_ext.pyx",
]

extensions =[]
Expand All @@ -43,7 +43,7 @@ def run(self):
return

target_file = os.path.join(self.build_lib, 'avb', "__init__.py")
source_file = os.path.join(os.path.dirname(__file__), 'avb', "__init__.py")
source_file = os.path.join(os.path.dirname(__file__), 'src', 'avb', "__init__.py")

# get the base data from the original file
with open(source_file, 'r') as fi:
Expand Down Expand Up @@ -91,9 +91,8 @@ def run(self):

platforms='any',

packages=[
'avb',
],
packages=['avb'],
package_dir={'': 'src'},

cmdclass={'build_py': AddMetadata},
ext_modules = extensions,
Expand Down
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.

0 comments on commit b127b12

Please sign in to comment.