mirror of
https://github.com/hanzoai/datastore-orm.git
synced 2026-08-06 17:41:39 +00:00
This is our fork, so it should read like it. `import datastore_orm` instead of `from infi.clickhouse_orm import ...`: `infi` was the original vendor's org namespace, and carrying someone else's org name through every import in the consuming codebase is not a fork, it is a vendored copy that never got renamed. The `infi` namespace package is gone entirely (src/infi/__init__.py with it), the distribution is `datastore-orm`, and the metadata points at Hanzo rather than at the upstream repo and author. NOT renamed, deliberately: the migration history tables are still `infi_clickhouse_orm_migrations`. That name is persisted state — 448 rows in production key off it — so changing it is a data migration, not a rename. Doing it carelessly reproduces the exact failure this fork just hit, where a package rename orphaned the history and silently blocked every migration.
54 lines
1.3 KiB
Python
54 lines
1.3 KiB
Python
|
|
SETUP_INFO = dict(
|
|
name = 'datastore-orm',
|
|
version = '2.1.0.post20',
|
|
author = 'Hanzo AI, Inc.',
|
|
author_email = 'dev@hanzo.ai',
|
|
|
|
url = 'https://github.com/hanzoai/datastore-orm',
|
|
license = 'BSD',
|
|
description = """Python ORM for Hanzo Datastore""",
|
|
|
|
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
|
|
classifiers = [
|
|
"Intended Audience :: Developers",
|
|
"Intended Audience :: System Administrators",
|
|
"License :: OSI Approved :: BSD License",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 2.7",
|
|
"Programming Language :: Python :: 3.4",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: Database"
|
|
],
|
|
|
|
install_requires = [
|
|
'iso8601 >= 0.1.12',
|
|
'pytz',
|
|
'requests',
|
|
'setuptools'
|
|
],
|
|
|
|
package_dir = {'': 'src'},
|
|
package_data = {'': []},
|
|
include_package_data = True,
|
|
zip_safe = False,
|
|
|
|
entry_points = dict(
|
|
console_scripts = [],
|
|
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()
|