Skip to content

Commit 5c8f340

Browse files
committed
Changes to allow pip install
__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.
1 parent 3e57f81 commit 5c8f340

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

MANIFEST.in

-1
This file was deleted.

filterpy/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""Copyright 2014 Roger R Labbe Jr.
2+
3+
filterpy library.
4+
http://github.com/rlabbe/filterpy
5+
6+
This is licensed under an MIT license. See the readme.MD file
7+
for more information.
8+
"""
9+

pypi-test-install.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python setup.py sdist --formats=gztar,zip
2+
python setup.py register -r test
3+
#python setup.py sdist upload -r test
4+
twine upload dist/* -r test

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[metadata]
2-
description-file = README.md
2+
description-file = README.rst

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
here = path.abspath(path.dirname(__file__))
66

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

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

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

0 commit comments

Comments
 (0)