AndreaCensi / contracts

PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, or inside a docstring. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts and an extension API.
http://andreacensi.github.io/contracts/
Other
398 stars 62 forks source link

File README.rst not included from sdist distribution #1

Closed bbiskup closed 13 years ago

bbiskup commented 13 years ago

The file README.rst (referenced in setup.py) is not included when the sdist distribution is built. The following patch will add a MANIFEST.in file so README.rst will be included:

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..bb37a27
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1 @@
+include *.rst
AndreaCensi commented 13 years ago

Thanks, fixed in devel branch.

bbiskup commented 13 years ago

Thanks for fixing it so quickly. I have found another issue: the subdirectory "library" under "contracts" does not get included in the distribution package. I think the line packages=['contracts'] in setup.py should be replaced by packages=find_packages(".") or (to avoid inclusion of the "testing" directory) packages = ["contracts", "contracts.library"]

AndreaCensi commented 13 years ago

Thanks, fixed this as well.

I'll push 0.9.3 out in a couple of days, once I finish writing some documentation.