-
-
Notifications
You must be signed in to change notification settings - Fork 160
Update project dirs and files: introduce the pyproject.toml file with uv project manager.
#379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 14 commits
82f8db0
8fc4799
f87e15a
7cf8d43
1002795
ecfcdaa
fd5c5c0
eedcca2
d2ab5e7
e396f61
f46065d
6984863
8494190
d8132cb
2377f91
c85e132
546eb19
08eb05f
e7df1e6
122d43e
48109bb
a036a45
3328d15
103dd32
b4f8421
6583a83
3774381
daf79af
27439a7
8e12fb9
0f1b7eb
1e679e5
3706f36
e6c2bbb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,19 @@ | ||
| <!-- | ||
| Link to relevant issues or previous PRs, one per line. Use "fixes" to | ||
| automatically close an issue. | ||
| Link to relevant issue(s) or previous PR(s), one per line. Use "fixes" to automatically close the related issue. | ||
| --> | ||
|
|
||
| - fixes #<issue number> | ||
|
|
||
| <!-- | ||
| Ensure each step in CONTRIBUTING.rst is complete by adding an "x" to | ||
| each box below. | ||
| Ensure each step in the "CONTRIBUTING.rst" file is completed by adding an "x" inside each box below. | ||
|
|
||
| If only docs were changed, these aren't relevant and can be removed. | ||
| If only docs are changed, the checklist below may be removed. | ||
| --> | ||
|
|
||
| Checklist: | ||
|
|
||
| - [ ] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change. | ||
| - [ ] Add or update relevant docs, in the docs folder and in code. | ||
| - [ ] Ensure PR doesn't contain untouched code reformatting: spaces, etc. | ||
| - [ ] Run `flake8` and fix issues. | ||
| - [ ] Run `pytest` no tests failed. See https://clickhouse-sqlalchemy.readthedocs.io/en/latest/development.html. | ||
| - [ ] Add tests demonstrating the correct behavior of the change. All tests should pass. | ||
| - [ ] Add/Update relevant docs in the code and in the `docs` directory. | ||
| - [ ] Ensure the PR doesn't contain the code non-conformant with project formatting and linting rules. | ||
| - [ ] Run `flake8`/`ruff` and fix issues. | ||
| - [ ] Run `pytest` no tests failed. See the [development](https://clickhouse-sqlalchemy.readthedocs.io/en/latest/development.html) section. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.7.9 | ||
|
stankudrow marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,13 +3,10 @@ | |
| from .orm.session import make_session | ||
| from .sql import Table, MaterializedView, select | ||
|
|
||
|
|
||
| VERSION = (0, 3, 2) | ||
| __version__ = '.'.join(str(x) for x in VERSION) | ||
|
Comment on lines
-7
to
-8
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Honestly, I have not found an easier and cheaper way for uv to use dynamic versioning. This solution - uv-dynamic-versioning - aims to retrieve data from a VCS. I tried this solution - setuptools-scm - yet it didn't work (an unexpected So, if you can find a better solution which allows the uv manager to support dynamic versioning in a cheap and an easy way, feel free to coautor and propose changes and even commits. |
||
|
|
||
|
|
||
| __all__ = ( | ||
| 'get_declarative_base', | ||
| 'make_session', | ||
| 'Table', 'MaterializedView', 'select' | ||
| "MaterializedView", | ||
| "Table", | ||
| "get_declarative_base", | ||
| "make_session", | ||
| "select" | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,136 @@ | ||
| [build-system] | ||
| requires = ["setuptools", "setuptools-scm"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "clickhouse-sqlalchemy" | ||
| version = "0.3.2" | ||
| description = "SQLAlchemy dialect for ClickHouse" | ||
| authors = [ | ||
| {name = "Konstantin Lebedev", email = "kostyan.lebedev@gmail.com"}, | ||
| ] | ||
| readme = "README.md" | ||
| license = {text = "MIT"} | ||
| requires-python = ">=3.7" | ||
| keywords = ["clickhouse", "sqlalchemy", "orm", "dialect"] | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Environment :: Console", | ||
| "Intended Audience :: Developers", | ||
| "Intended Audience :: Information Technology", | ||
| "Intended Audience :: System Administrators", | ||
| "License :: OSI Approved :: MIT License", | ||
| "Operating System :: OS Independent", | ||
| "Programming Language :: SQL", | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
|
stankudrow marked this conversation as resolved.
|
||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Topic :: Database", | ||
| "Topic :: Scientific/Engineering :: Information Analysis", | ||
| "Topic :: Software Development", | ||
| "Topic :: Software Development :: Libraries", | ||
| "Topic :: Software Development :: Libraries :: Application Frameworks", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| ] | ||
| dependencies = [ | ||
| "asynch>=0.2.2,!=0.2.4,!=0.2.5,<0.4.0", | ||
| "clickhouse-driver>=0.2.9", | ||
| "requests>=2.31.0", | ||
| "sqlalchemy>=1.4", | ||
|
stankudrow marked this conversation as resolved.
Outdated
|
||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/xzkostyan/clickhouse-sqlalchemy" | ||
| Documentation = "https://clickhouse-sqlalchemy.readthedocs.io/en/latest/" | ||
| Repository = "https://github.com/xzkostyan/clickhouse-sqlalchemy" | ||
| Issues = "https://github.com/fastapi/fastapi/issues" | ||
|
stankudrow marked this conversation as resolved.
Outdated
|
||
| Changelog = "https://github.com/xzkostyan/clickhouse-sqlalchemy/blob/master/CHANGELOG.md" | ||
| PyPI = "https://pypi.org/project/clickhouse-sqlalchemy/" | ||
|
|
||
| [project.entry-points."sqlalchemy.dialects"] | ||
| "clickhouse" = "clickhouse_sqlalchemy.drivers.http.base:ClickHouseDialect_http" | ||
| "clickhouse.asynch" = "clickhouse_sqlalchemy.drivers.asynch.base:ClickHouseDialect_asynch" | ||
| "clickhouse.http" = "clickhouse_sqlalchemy.drivers.http.base:ClickHouseDialect_http" | ||
| "clickhouse.native" = "clickhouse_sqlalchemy.drivers.native.base:ClickHouseDialect_native" | ||
|
stankudrow marked this conversation as resolved.
|
||
|
|
||
| [dependency-groups] | ||
| docs = [ | ||
| "sphinx>=5.3.0", | ||
| # https://github.com/sphinx-toolbox/sphinx-pyproject | ||
| "sphinx-pyproject>=0.3.0", | ||
| ] | ||
| lint = [ | ||
| "mypy>=1.4.1", | ||
| "ruff>=0.11.12", | ||
| ] | ||
| test = [ | ||
| "alembic>=1.12.1", | ||
| "parameterized>=0.9.0", | ||
| "pytest>=7.4.4", | ||
| "pytest-asyncio>=0.21.2", | ||
| "responses>=0.23.3", | ||
| ] | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = false | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["clickhouse_sqlalchemy"] | ||
|
|
||
| [tool.pytest.ini_options] | ||
| minversion = "7.4" | ||
| addopts = [ | ||
| "--maxfail=1", | ||
| "--strict-config", | ||
| "--strict-markers", | ||
| "--ignore=docs", | ||
| ] | ||
| xfail_strict = true | ||
| testpaths = ["tests"] | ||
| asyncio_mode = "strict" | ||
|
|
||
| [tool.ruff] | ||
| line-length = 79 | ||
|
stankudrow marked this conversation as resolved.
|
||
| respect-gitignore = true | ||
| target-version = "py37" | ||
|
|
||
| [tool.ruff.lint] | ||
| select = [ | ||
| # "A", # flake8-builtins | ||
| # "ANN", # flake8-annotations | ||
| # "ARG", # flake8-unused-arguments | ||
| "ASYNC", # flake8-async | ||
| # "B", # flake8-bugbear | ||
| # "C4", # flake8-comprehensions | ||
| # # "D", # pydocstyle | ||
| # "DTZ", # flake8-datetimez | ||
| "E", # pycodestyle errors | ||
| "F", # pyflakes | ||
| # "FBT", # flake8-boolean-trap | ||
| # "I", # isort | ||
| "ICN", # flake8-import-conventions | ||
| # "ISC", # flake8-implicit-str-concat | ||
| "PERF", # perflint | ||
| # "PIE", # flake8-pie | ||
| # "PLE", # pylint errors | ||
| # "PLR", # pylint refactor | ||
| # "PLW", # pylint warning | ||
| # "PT", # flake8-pytest-style | ||
| "PYI", # flake8-pyi | ||
| # "Q", # flake8-quotes | ||
| # "RET", # flake8-return | ||
| # "RSE", # flake8-raise | ||
| # # "SIM", # flake8-simplify | ||
| "T10", # flake8-debugger | ||
| "T20", # flake8-print | ||
| # "TC", # flake8-type-checking | ||
| # "TID", # flake8-tidy-imports | ||
| # "TRY", # tryceratops | ||
| # "UP", # pyupgrade | ||
| "W", # pycodestyle warnings | ||
| ] | ||
| fixable = ["I"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,3 @@ level=ERROR | |
|
|
||
| [metadata] | ||
| license_file = LICENSE | ||
|
|
||
| [tool:pytest] | ||
| asyncio_mode=strict | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.