Skip to content

Commit 103757d

Browse files
committed
Merge pull request #10 from jrconlin/bug/9
bug: Add missing MANIFEST file for pypi dist
2 parents d870a00 + 23ca82d commit 103757d

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

python/MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include *.md
2+
include *.txt
3+
include setup.*
4+
include LICENSE
5+
recursive-include py_vapid

python/setup.py

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,26 @@
33

44
from setuptools import setup, find_packages
55

6-
__version__ = "0.2"
6+
__version__ = "0.4.1"
7+
8+
9+
def read_from(file):
10+
reply = []
11+
with io.open(os.path.join(here, file), encoding='utf8') as f:
12+
for l in f:
13+
l = l.strip()
14+
if not l:
15+
break
16+
if l[0] != '#' or l[:2] != '//':
17+
reply.append(l)
18+
return reply
19+
720

821
here = os.path.abspath(os.path.dirname(__file__))
922
with io.open(os.path.join(here, 'README.md'), encoding='utf8') as f:
1023
README = f.read()
1124
with io.open(os.path.join(here, 'CHANGELOG.md'), encoding='utf8') as f:
1225
CHANGES = f.read()
13-
with io.open(os.path.join(here, 'requirements.txt'), encoding='utf8') as f:
14-
REQS = []
15-
for l in f:
16-
l = l.strip()
17-
if not l:
18-
break
19-
if l[0] == '#' or l[:2] == '//':
20-
continue
21-
REQS.append(l)
2226

2327
setup(name="py-vapid",
2428
version=__version__,
@@ -29,17 +33,19 @@
2933
"Programming Language :: Python :: 2",
3034
"Programming Language :: Python :: 2.7"
3135
],
32-
keywords='vapid',
36+
keywords='vapid push webpush',
3337
author="JR Conlin",
3438
author_email="[email protected]",
3539
url='https://github.com/mozilla-services/vapid',
3640
license="MPL2",
3741
test_suite="nose.collector",
3842
include_package_data=True,
3943
zip_safe=False,
40-
tests_require=['nose', 'coverage', 'mock>=1.0.1'],
4144
packages=find_packages(),
42-
install_requires=REQS,
45+
package_data={'': ['README.md', 'CHANGELOG.md',
46+
'requirements.txt', 'test-requirements.txt']},
47+
install_requires=read_from('requirements.txt'),
48+
tests_require=read_from('test-requirements.txt'),
4349
entry_points="""
4450
[console_scripts]
4551
vapid = py_vapid.main:main

0 commit comments

Comments
 (0)