Skip to content

Commit

Permalink
Merge pull request #129 from CiscoTestAutomation/remvoe_the_init_for_…
Browse files Browse the repository at this point in the history
…namespaces

remove the namespace
  • Loading branch information
omehrabi authored Jul 26, 2024
2 parents 0978da2 + 2ccc52e commit 8f13fdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import shlex
import unittest
import subprocess
from setuptools import setup, find_packages, Command
from setuptools import setup, find_packages, Command, find_namespace_packages
from setuptools.command.test import test

pkg_name = 'rest.connector'
Expand Down Expand Up @@ -130,7 +130,7 @@ def find_version(*paths):
],

# uses namespace package
namespace_packages=['rest'],
namespace_packages=find_namespace_packages(include=['rest']),

# project keywords
keywords='pyats cisco-shared',
Expand Down
2 changes: 1 addition & 1 deletion src/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
__contact__ = 'pyats-support@cisco.com'
__copyright__ = 'Cisco System, Inc. Cisco Confedential'

__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

0 comments on commit 8f13fdc

Please sign in to comment.