diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..529b8e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,59 @@ + +# generic +*.tmp +*.swp +*.pyc +*.pyo +*.bak +*.egg-info +*.EGG-INFO +.coverage +.settings + +# eclipse +.project +.pydevproject + +# setuptools +bin/ +build/ +dist/ +setup.py + +# buildout +buildout.in.cfg +.installed*.cfg +.cache +.cache/ +eggs +eggs/ +develop-eggs/ +parts +parts/ +build/ +dist/ +src/infi/hello/__version__.py +.achievements + +# scm +.bzr/ +.svn/ +.hg/ + +# msi-related +parts/wix +parts/product* +parts/*.wixpdb +parts/*.msi + + +src/infi/projector/__version__.py +.codeintel +*sublime* + +tmp* +!tmp*py +buildout.in + +src/infi/clickhouse_utils/__version__.py +bootstrap.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..9e79596 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +Overview +======== +This is an Infinidat project. + +Usage +----- +Nothing to use here. + +Checking out the code +===================== +Run the following commands: + + easy_install -U infi.projector + projector devenv build + diff --git a/buildout.cfg b/buildout.cfg new file mode 100644 index 0000000..404dbdb --- /dev/null +++ b/buildout.cfg @@ -0,0 +1,54 @@ +[buildout] +prefer-final = false +newest = false +download-cache = .cache +develop = . +parts = + +[project] +name = infi.clickhouse_utils +company = Infinidat +namespace_packages = ['infi'] +install_requires = ['setuptools'] +version_file = src/infi/clickhouse_utils/__version__.py +description = A Python library for working with the ClickHouse database +long_description = A Python library for working with the ClickHouse database +console_scripts = [] +gui_scripts = [] +package_data = [] +upgrade_code = {58530fba-3932-11e6-a20e-7071bc32067f} +product_name = infi.clickhouse_utils +post_install_script_name = None +pre_uninstall_script_name = None + +[isolated-python] +recipe = infi.recipe.python +version = v2.7.8.4 + +[setup.py] +recipe = infi.recipe.template.version +input = setup.in +output = setup.py + +[__version__.py] +recipe = infi.recipe.template.version +output = ${project:version_file} + +[development-scripts] +dependent-scripts = true +recipe = infi.recipe.console_scripts +eggs = ${project:name} + ipython + nose + infi.unittest + infi.traceback + zc.buildout +interpreter = python + +[pack] +recipe = infi.recipe.application_packager + +[sublime] +recipe = corneti.recipes.codeintel +eggs = ${development-scripts:eggs} + diff --git a/setup.in b/setup.in new file mode 100644 index 0000000..2f3cef0 --- /dev/null +++ b/setup.in @@ -0,0 +1,48 @@ + +SETUP_INFO = dict( + name = '${project:name}', + version = '${infi.recipe.template.version:version}', + author = '${infi.recipe.template.version:author}', + author_email = '${infi.recipe.template.version:author_email}', + + url = ${infi.recipe.template.version:homepage}, + license = 'PSF', + description = """${project:description}""", + long_description = """${project:long_description}""", + + # http://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers = [ + "Intended Audience :: Developers", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: Python Software Foundation License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Topic :: Software Development :: Libraries :: Python Modules", + ], + + install_requires = ${project:install_requires}, + namespace_packages = ${project:namespace_packages}, + + package_dir = {'': 'src'}, + package_data = {'': ${project:package_data}}, + include_package_data = True, + zip_safe = False, + + entry_points = dict( + console_scripts = ${project:console_scripts}, + gui_scripts = ${project:gui_scripts}, + ), +) + +if SETUP_INFO['url'] is None: + _ = SETUP_INFO.pop('url') + +def setup(): + from setuptools import setup as _setup + from setuptools import find_packages + SETUP_INFO['packages'] = find_packages('src') + _setup(**SETUP_INFO) + +if __name__ == '__main__': + setup() + diff --git a/src/infi/__init__.py b/src/infi/__init__.py new file mode 100644 index 0000000..5284146 --- /dev/null +++ b/src/infi/__init__.py @@ -0,0 +1 @@ +__import__("pkg_resources").declare_namespace(__name__) diff --git a/src/infi/clickhouse_utils/__init__.py b/src/infi/clickhouse_utils/__init__.py new file mode 100644 index 0000000..5284146 --- /dev/null +++ b/src/infi/clickhouse_utils/__init__.py @@ -0,0 +1 @@ +__import__("pkg_resources").declare_namespace(__name__)