Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Fix packaging setup
Browse files Browse the repository at this point in the history
* Don't include tests in the binary (wheel) distribution.
* Include tests in the source distribution.
* Remove (seemingly?) unneeded package_dir.
* Use io.open over open for proper encoding.
  • Loading branch information
Jon Wayne Parrott committed Mar 21, 2017
1 parent 895fefd commit aad40ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 4 additions & 6 deletions MANIFEST.in
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,4 @@
include LICENSE include LICENSE README.rst
include README.rst recursive-include google *.json
global-include *.json recursive-include tests *
graft google global-exclude __pycache__ *.pyc
exclude tests
global-exclude *.pyc __pycache__
7 changes: 4 additions & 3 deletions setup.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


import io

from setuptools import find_packages from setuptools import find_packages
from setuptools import setup from setuptools import setup


Expand All @@ -43,7 +45,7 @@
'protobuf>=3.0.0, <4.0dev', 'protobuf>=3.0.0, <4.0dev',
] ]


with open('README.rst', 'r') as readme: with io.open('README.rst', 'r') as readme:
long_description = readme.read() long_description = readme.read()


setup( setup(
Expand All @@ -54,9 +56,8 @@
author='Google API Authors', author='Google API Authors',
author_email='googleapis-packages@google.com', author_email='googleapis-packages@google.com',
url='https://github.com/googleapis/gax-python', url='https://github.com/googleapis/gax-python',
packages=find_packages(exclude=('tests*',)),
namespace_packages=('google',), namespace_packages=('google',),
packages=find_packages(exclude=('tests',)),
package_dir={'google-gax': 'google'},
license='BSD-3-Clause', license='BSD-3-Clause',
classifiers=[ classifiers=[
'Development Status :: 3 - Alpha', 'Development Status :: 3 - Alpha',
Expand Down

0 comments on commit aad40ed

Please sign in to comment.