Skip to content

Commit b7e6aa6

Browse files
committed
convert to package so that the stub file can be installed properly
1 parent 6ff3ac8 commit b7e6aa6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

NEWS.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
News in asserts 0.7.1
22
=====================
33

4+
* Distribute as wheel.
5+
* asserts is now a package, instead of a module.
6+
7+
48
News in asserts 0.7.0
59
=====================
610

File renamed without changes.
File renamed without changes.

setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import os
44
from setuptools import setup
5-
import sys
65

76

87
def read(fname):
@@ -17,11 +16,8 @@ def read(fname):
1716
author="Sebastian Rittau",
1817
author_email="srittau@rittau.biz",
1918
url="https://github.com/srittau/python-asserts",
20-
py_modules=["asserts", "test_asserts"],
21-
data_files=[(
22-
"lib/python{}.{}/site-packages".format(*sys.version_info[:2]),
23-
["asserts.pyi"],
24-
)],
19+
packages=["asserts"],
20+
package_data={"asserts": ["*.pyi"]},
2521
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
2622
license="MIT",
2723
classifiers=[

0 commit comments

Comments
 (0)