Skip to content

Commit 887b5bb

Browse files
authored
fix bugs with staging version, update for v0.8.0 release (#213)
1 parent e3b0635 commit 887b5bb

File tree

11 files changed

+13
-18
lines changed

11 files changed

+13
-18
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ repos:
3535
verbose: true
3636
fail_fast: true
3737
files: Dockerfile$|\.rs$
38-
- id: stageversion
39-
name: stageversion
40-
entry: scripts/stageversion
41-
language: script
42-
pass_filenames: false
43-
verbose: true
44-
fail_fast: true
4538
- id: sql
4639
name: sql
4740
entry: scripts/test

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7-
## [unreleased]
7+
## [v0.8.0]
88

99
### Fixed
1010

@@ -384,7 +384,7 @@ _TODO_
384384

385385
- Fixed issue with pypgstac loads which caused some writes to fail ([#18](https://github.com/stac-utils/pgstac/pull/18))
386386

387-
[unreleased]: https://github.com/stac-utils/pgstac/compare/v0.7.10...HEAD
387+
[v0.8.0]: https://github.com/stac-utils/pgstac/compare/v0.7.10...v0.8.0
388388
[v0.7.10]: https://github.com/stac-utils/pgstac/compare/v0.7.9...v0.7.10
389389
[v0.7.9]: https://github.com/stac-utils/pgstac/compare/v0.7.8...v0.7.9
390390
[v0.7.8]: https://github.com/stac-utils/pgstac/compare/v0.7.7...v0.7.8

docker/pypgstac/bin/stageversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ cat <<EOD > $PYPGSTACDIR/python/pypgstac/version.py
4949
"""Version."""
5050
__version__ = "${PYVERSION}"
5151
EOD
52-
sed -i "s/^version[ ]*=[ ]*.*/version = \"${PYVERSION}\"/" $PYPGSTACDIR/pyproject.toml
52+
sed -i "s/^version[ ]*=[ ]*.*$/version = \"${PYVERSION}\"/" $PYPGSTACDIR/pyproject.toml
5353

5454
makemigration -f $OLDVERSION -t $VERSION

src/pgstac/migrations/pgstac.0.7.10-unreleased.sql renamed to src/pgstac/migrations/pgstac.0.7.10-0.8.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,4 +487,4 @@ GRANT ALL ON ALL TABLES IN SCHEMA pgstac to pgstac_ingest;
487487
GRANT USAGE ON ALL SEQUENCES IN SCHEMA pgstac to pgstac_ingest;
488488

489489
SELECT update_partition_stats_q(partition) FROM partitions_view;
490-
SELECT set_version('unreleased');
490+
SELECT set_version('0.8.0');

src/pgstac/migrations/pgstac.unreleased.sql renamed to src/pgstac/migrations/pgstac.0.8.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4100,4 +4100,4 @@ GRANT ALL ON ALL TABLES IN SCHEMA pgstac to pgstac_ingest;
41004100
GRANT USAGE ON ALL SEQUENCES IN SCHEMA pgstac to pgstac_ingest;
41014101

41024102
SELECT update_partition_stats_q(partition) FROM partitions_view;
4103-
SELECT set_version('unreleased');
4103+
SELECT set_version('0.8.0');

src/pgstac/pgstac.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
migrations/pgstac.unreleased.sql
1+
migrations/pgstac.0.8.0.sql

src/pgstac/sql/999_version.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SELECT set_version('unreleased');
1+
SELECT set_version('0.8.0');

src/pypgstac/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pypgstac"
3-
version = "0.7.10-dev"
3+
version = "0.8.0"
44
description = "Schema, functions and a python library for storing and accessing STAC collections and items in PostgreSQL"
55
readme = "README.md"
66
requires-python = ">=3.8"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Version."""
2-
__version__ = "0.7.10-dev"
2+
__version__ = "0.8.0"

src/pypgstac/tests/hydration/test_dehydrate_pg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def db(self) -> Generator:
2626
os.environ["PGDATABASE"] = "pgstactestdb"
2727

2828
pgdb = PgstacDB()
29-
pgdb.query("DROP SCHEMA IF EXISTS pgstac CASCADE;")
29+
with psycopg.connect(autocommit=True) as conn:
30+
conn.execute("DROP SCHEMA IF EXISTS pgstac CASCADE;")
3031
Migrate(pgdb).run_migration()
3132

3233
yield pgdb

0 commit comments

Comments
 (0)