Rebrand psycopg to gaussdb #11
Closed
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.
Description
This pull request rebrands the
psycopgproject togaussdbto align with the new project identity. It includes renaming directories, files, and content references, updating dependencies, configurations, and documentation, and ensuring compatibility with the new branding. The changes also involve updating the version from3.3.0.dev1to1.0.0.dev1and replacing references toPostgreSQLwithGaussDBoropenGausswhere appropriate.Changes Made
Cleanup of Compiled Files and Dependencies:
__pycache__,*egg*,.pytest_cache, and*.backfiles.psycopg,psycopg-pool, andisort-psycopgpackages.psycopg_cand.mypy_cachedirectories.Directory Renaming:
psycopgtogaussdb,psycopg_pooltogaussdb_pool, and related subdirectories.tools/isort-psycopgtotools/isort-gaussdb.File Renaming:
findandrenameto replacepsycopgwithgaussdbin filenames.Content Replacement:
psycopgand related terms (e.g.,psycopg_c,psycopg_pool,Psycopg 3,psycopg.org) withgaussdbequivalents in.py,.rst,.toml,.txt,.yml,.pyi,.flake8, and.shfiles.PostgreSQLwithGaussDBor_GaussDBin relevant files.gaussdb2.3.3.0.dev1to1.0.0.dev1in.tomlfiles.PYTHONPATHenvironment variable to reference/opt/gaussdb_driver/gaussdb-python/gaussdb:/opt/gaussdb_driver/gaussdb-python/gaussdb_pool.Configuration and Documentation Updates:
pyproject.toml,requirements.txt,.github/workflows/ci.yml,.gitignore,.flake8, and.pre-commit-config.yamlto reflectgaussdbbranding.README.rstanddocs/content to usegaussdbinstead ofpsycopg.psycopgreferences usinggrep.Reinstallation and Testing:
gaussdb,gaussdb_pool, andisort-gaussdbpackages.pre-commitchecks andpytestwith the test DSN.Why
The rebranding from
psycopgtogaussdbis necessary to align the project with its new identity, ensuring consistency across code, documentation, and configurations. This change also involves updating version numbers and references toPostgreSQLto reflect the adoption ofGaussDBoropenGauss. The cleanup and reinstallation steps ensure a clean slate for the rebranded project, removing outdated dependencies and compiled files.Testing
Verification Steps:
findandgrepto confirm allpsycopgreferences were replaced withgaussdb.psycopg/,docs/,tests/,tools/) for correct replacements.1.0.0.dev1usinggrep -rn "1.0.0.dev1".PYTHONPATHupdate and package installations viapip list | grep gaussdb.import gaussdb; print(gaussdb.__file__)).pre-commit run --all-filesto ensure code quality.pytest -s -v --durations=0with the specified test DSN to validate functionality.Environment:
../myenv/bin/activate).GAUSSDB_TEST_DSNfor database connectivity during tests.Additional Notes
psycopgreferences remain by runninggrep -ir "psycopg" ..github.comURLs for updates, but specific changes depend on the repository context.PYTHONPATHin their environments and ensure the test DSN is correctly configured for their setup.