| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
import sys, os.path |
| 10 |
import setuptools |
| 11 |
|
| 12 |
if ("build" in sys.argv) or ("install" in sys.argv) or ("bdist_wheel" in sys.argv) or ("bdist_egg" in sys.argv): |
| 13 |
HERE = os.path.dirname(sys.argv[0]) or "." |
| 14 |
|
| 15 |
for filename in os.listdir(HERE): |
| 16 |
filename = os.path.join(HERE, filename) |
| 17 |
if filename.endswith(".py%s" % sys.version[0]): |
| 18 |
open(filename[:-1], "w").write(open(filename).read()) |
| 19 |
|
| 20 |
include_package_data = False |
| 21 |
|
| 22 |
else: |
| 23 |
include_package_data = True |
| 24 |
|
| 25 |
|
| 26 |
setuptools.setup (name = "Cerealizer", |
| 27 |
version = "0.8.4", |
| 28 |
license = "Python licence", |
| 29 |
description = "A secure pickle-like module", |
| 30 |
long_description = """A secure pickle-like module. |
| 31 |
It support basic types (int, string, unicode, tuple, list, dict, set,...), |
| 32 |
old and new-style classes (you need to register the class for security), object cycles, |
| 33 |
and it can be extended to support C-defined type.""", |
| 34 |
author = "Lamy Jean-Baptiste (Jiba)", |
| 35 |
author_email = "[email protected]", |
| 36 |
url = "http://www.lesfleursdunormal.fr/static/informatique/cerealizer/index_en.html", |
| 37 |
classifiers = [ |
| 38 |
"Development Status :: 5 - Production/Stable", |
| 39 |
"Intended Audience :: Developers", |
| 40 |
"License :: OSI Approved :: Python Software Foundation License", |
| 41 |
"Programming Language :: Python :: 2", |
| 42 |
"Programming Language :: Python :: 3", |
| 43 |
"Topic :: Security", |
| 44 |
"Topic :: Software Development :: Libraries :: Python Modules", |
| 45 |
], |
| 46 |
|
| 47 |
package_dir = {"cerealizer" : ""}, |
| 48 |
packages = ["cerealizer"], |
| 49 |
|
| 50 |
|
| 51 |
) |