Skip to content
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

store associated production schema when creating non-production schema #124

Merged
merged 14 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
python -m pip install .
python -m pip install pytest

# GitPython is needed when creating a new database
- name: Install GitPython
run: |
python -m pip install GitPython

# Make a dummy config file.
- name: Create dummy config file
run: |
Expand Down Expand Up @@ -126,6 +131,11 @@ jobs:
python -m pip install .
python -m pip install pytest

# GitPython is needed when creating a new database
- name: Install GitPython
run: |
python -m pip install GitPython

# Make a dummy config file.
- name: Create dummy config file
run: |
Expand Down Expand Up @@ -183,6 +193,11 @@ jobs:
python -m pip install .
python -m pip install pytest

# GitPython is needed when creating a new database
- name: Install GitPython
run: |
python -m pip install GitPython

# Make a dummy config file.
- name: Create dummy config file
run: |
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## Version 0.5.0
Separate out creation of production schema and non-production schema
since, under normal circumstances, there will be a single "real" production
schema (owner type == production only) but possibly multiple non-production
schemas to keep track of entries for the other owner types.
Add a field to the provenance table so a schema can discover the name of
its associated production schema and form foreign key constraints correctly.

Bumped database version to 2.3.0. This code requires
database version >= 2.3.0

## Version 0.4.2

- Add check during dataset registration to raise an exception if the `root_dir`
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ classifiers = [
"Programming Language :: Python :: 3",
]
keywords = ["desc", "python", "registry"]
# NOTE: Those needing to create a database will also need to install the
# GitPython package. It is not needed for accessing an existing db.
dependencies = [
'psycopg2',
'sqlalchemy',
'pyaml',
'GitPython',
'pandas'
]
requires-python = ">=3.7" # For setuptools >= 61.0 support
Expand Down
324 changes: 0 additions & 324 deletions scripts/create_registry_db.py

This file was deleted.

Loading
Loading