forked from sqlalchemy-redshift/sqlalchemy-redshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Publish to PyPI #3
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9adbe29
feat: Ensure tests pass on SQLAlchemy v1.4 and v2
m1so 689c564
chore: Remove psycopg2cffi
m1so 19563a7
feat: Use uv for packaging
m1so b7ffd89
chore: Copy over _get_column_info implementation from SQLAlchemy 1.4
m1so 812a149
fix: Ensure there are no warnings emitted
m1so e2b61b7
chore: Remove deprecated redshift_sqlalchemy package
m1so b7a11ca
feat: Use dynamic versioning
m1so b62a875
fix: Linting
m1so d47ba71
fix: Wrong import
m1so cb4933f
chore: Test SQLAlchemy v1.4 and v2 for Python 3.10 - 3.13
m1so fabc802
fix: Warnings when generating docs
m1so 70477a4
chore: Remove psycopg2cffi from docs
m1so 7af35d2
feat: Prepare release action
m1so ee51db5
chore: Incorporate PR review suggestions
m1so 3fc0e91
fix: Packaging dependency and version resolution after name change
m1so 797736e
chore: Incorporate PR review suggestions
m1so 92eb554
fix: Don't parse already parsed package version
m1so File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Publish to PyPI | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - '[0-9]+.[0-9]+.[0-9]+*' | ||
|
|
||
| jobs: | ||
| publish: | ||
| name: Build and publish to PyPI | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: Set up Python | ||
| run: uv python install 3.12 | ||
|
|
||
| - name: Build package | ||
| run: uv build | ||
|
|
||
| - name: Smoke test wheel | ||
| run: | | ||
| uv run --isolated --no-project --with dist/*.whl python -c "import sqlalchemy_redshift; print(sqlalchemy_redshift.__version__)" | ||
|
|
||
| - name: Publish to PyPI | ||
| run: uv publish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,3 +59,7 @@ target/ | |
|
|
||
| # IDE | ||
| .idea/ | ||
|
|
||
| # uv | ||
| .venv | ||
| .python-version | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| [build-system] | ||
| requires = ["hatchling", "uv-dynamic-versioning"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "deepnote-sqlalchemy-redshift" | ||
| dynamic = ["version"] | ||
| description = "Amazon Redshift Dialect for sqlalchemy" | ||
| readme = "README.rst" | ||
| requires-python = ">=3.9,<3.14" | ||
| license = "MIT" | ||
| authors = [ | ||
| {name = "Matt George", email = "mgeorge@gmail.com"}, | ||
| ] | ||
| maintainers = [ | ||
| {name = "Deepnote", email = "product-engineers@deepnote.com"}, | ||
| ] | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Environment :: Console", | ||
| "Intended Audience :: Developers", | ||
| "Operating System :: OS Independent", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| ] | ||
| dependencies = [ | ||
| "SQLAlchemy>=1.4.15,<3.0.0", | ||
| "packaging", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/deepnote/sqlalchemy-redshift" | ||
|
|
||
| [project.entry-points."sqlalchemy.dialects"] | ||
| redshift = "sqlalchemy_redshift.dialect:RedshiftDialect_psycopg2" | ||
| "redshift.psycopg2" = "sqlalchemy_redshift.dialect:RedshiftDialect_psycopg2" | ||
| "redshift.redshift_connector" = "sqlalchemy_redshift.dialect:RedshiftDialect_redshift_connector" | ||
|
|
||
| [tool.hatch.version] | ||
| source = "uv-dynamic-versioning" | ||
|
|
||
| [tool.uv-dynamic-versioning] | ||
| fallback-version = "0.0.1" | ||
| vcs = "git" | ||
| style = "pep440" | ||
|
|
||
| [tool.hatch.build.targets.wheel] | ||
| packages = ["sqlalchemy_redshift"] | ||
|
|
||
| [tool.hatch.build.targets.wheel.force-include] | ||
| "sqlalchemy_redshift/redshift-ca-bundle.crt" = "sqlalchemy_redshift/redshift-ca-bundle.crt" | ||
|
|
||
| [tool.hatch.build.targets.sdist] | ||
| include = [ | ||
| "sqlalchemy_redshift/", | ||
| "README.rst", | ||
| "CHANGES.rst", | ||
| "LICENSE", | ||
| ] | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| -e . | ||
| sphinx==1.6.3 | ||
| numpydoc==0.6.0 | ||
| psycopg2-binary==2.9.1 | ||
| jinja2<3.1.0 | ||
| sphinx>=7.0.0,<8.0.0 | ||
| numpydoc>=1.5.0,<2.0.0 | ||
| psycopg2-binary>=2.9.9,<3.0.0 | ||
| jinja2>=3.1.0,<4.0.0 | ||
| setuptools>=65.0.0,<76.0.0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.