Skip to content

Commit

Permalink
Changes to allow pip install
Browse files Browse the repository at this point in the history
__init__.py was not copied to the new filterpy library, which meant none of the source was installed when
installing on a remote machine.

Added a script to upload the project to the pypi test site.
  • Loading branch information
rlabbe committed Sep 1, 2014
1 parent 3e57f81 commit 5c8f340
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

9 changes: 9 additions & 0 deletions filterpy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Copyright 2014 Roger R Labbe Jr.
filterpy library.
http://github.com/rlabbe/filterpy
This is licensed under an MIT license. See the readme.MD file
for more information.
"""

4 changes: 4 additions & 0 deletions pypi-test-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python setup.py sdist --formats=gztar,zip
python setup.py register -r test
#python setup.py sdist upload -r test
twine upload dist/* -r test
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
description-file = README.md
description-file = README.rst
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
here = path.abspath(path.dirname(__file__))

# Get the long description from the relevant file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

setup(
Expand Down Expand Up @@ -77,9 +77,9 @@
# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
# have to be included in MANIFEST.in as well.
package_data={
'filterpy': ['README.md'],
},
#package_data={
# 'filterpy': ['README.rst'],
#},

# Although 'package_data' is the preferred approach, in some case you may
# need to place data files outside of your packages.
Expand Down

0 comments on commit 5c8f340

Please sign in to comment.