Skip to content

Commit

Permalink
Merge pull request #447 from sony/feature/20221213-fix-twine-namespace
Browse files Browse the repository at this point in the history
fix namespace packages for wheel to pass twine check
  • Loading branch information
YukioOobuchi authored and github-merge committed Jan 9, 2023
1 parent c222148 commit 8f3417c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
7 changes: 6 additions & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import shutil
import subprocess
import sys
import pathlib

root_dir = realpath(dirname(__file__))
a = dict()
Expand Down Expand Up @@ -428,13 +429,17 @@ def get_setup_config(root_dir):
"c_string_type": 'str',
"c_string_encoding": "ascii"})

long_description = pathlib.Path(os.path.join(
os.path.dirname(__file__), 'README.md')).read_text()

# Setup
setup(
setup_requires=setup_requires,
install_requires=install_requires,
ext_modules=ext_modules,
long_description=long_description,
long_description_content_type='text/markdown',
package_dir=cfg.package_dir,
packages=cfg.packages,
package_data=cfg.package_data,
namespace_packages=['nnabla_ext'],
**pkg_info)
15 changes: 0 additions & 15 deletions python/src/nnabla_ext/__init__.py

This file was deleted.

0 comments on commit 8f3417c

Please sign in to comment.