Skip to content

Commit cb03727

Browse files
committed
bump tag to 0.2.7 / check migrations
1 parent d1ff329 commit cb03727

File tree

7 files changed

+19
-14
lines changed

7 files changed

+19
-14
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ version:
77

88
.PHONY: build-version-migration
99
build-version-migration: version
10-
cat sql/*.sql <(echo "INSERT INTO migrations (version) VALUES ('${VERSION}');") >pypgstac/pypgstac/migrations/pgstac.${VERSION}.sql
10+
echo "INSERT INTO migrations (version) VALUES ('${VERSION}');" >sql/999_version.sql
11+
cat sql/*.sql >pypgstac/pypgstac/migrations/pgstac.${VERSION}.sql
1112

1213
.PHONY: build-pypgstac
1314
build-pypgstac: version build-version-migration

pypgstac/pypgstac/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.2.6'
1+
__version__ = '0.2.7'

pypgstac/pypgstac/migrations/pgstac.0.2.4-0.2.5.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
SET SEARCH_PATH TO pgstac, public;
22
BEGIN;
3+
DROP FUNCTION IF EXISTS bbox_geom;
34
CREATE OR REPLACE FUNCTION bbox_geom(_bbox jsonb) RETURNS geometry AS $$
45
SELECT CASE jsonb_array_length(_bbox)
56
WHEN 4 THEN

pypgstac/pypgstac/migrations/pgstac.0.2.4-0.2.7.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ return ret;
5959
END;
6060
$$ LANGUAGE PLPGSQL;
6161

62+
63+
DROP FUNCTION IF EXISTS bbox_geom;
6264
CREATE OR REPLACE FUNCTION bbox_geom(_bbox jsonb) RETURNS geometry AS $$
6365
SELECT CASE jsonb_array_length(_bbox)
6466
WHEN 4 THEN

pypgstac/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[tool.poetry]
22
name = "pypgstac"
3-
version = "0.2.6"
3+
version = "0.2.7"
44
description = ""
55
authors = ["David Bitner <[email protected]>"]
66
keywords = ["stac", "asyncpg"]
77
readme = "README"
88
homepage = "https://github.com/stac-utils/pgstac"
99
repository = "https://github.com/stac-utils/pgstac"
1010
exclude = ["pypgstac/migrations/*.sql"]
11-
include = ["pypgstac/migrations/pgstac*0.2.6.sql"]
11+
include = ["pypgstac/migrations/pgstac*0.2.7.sql"]
1212

1313
[tool.poetry.dependencies]
1414
python = "^3.8"

pypgstac/setup.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
package_data = \
88
{'': ['*'],
9-
'pypgstac': ['migrations/pgstac.0.2.4-0.2.6.sql',
10-
'migrations/pgstac.0.2.4-0.2.6.sql',
11-
'migrations/pgstac.0.2.4-0.2.6.sql',
12-
'migrations/pgstac.0.2.5-0.2.6.sql',
13-
'migrations/pgstac.0.2.5-0.2.6.sql',
14-
'migrations/pgstac.0.2.5-0.2.6.sql',
15-
'migrations/pgstac.0.2.6.sql',
16-
'migrations/pgstac.0.2.6.sql',
17-
'migrations/pgstac.0.2.6.sql']}
9+
'pypgstac': ['migrations/pgstac.0.2.4-0.2.7.sql',
10+
'migrations/pgstac.0.2.4-0.2.7.sql',
11+
'migrations/pgstac.0.2.4-0.2.7.sql',
12+
'migrations/pgstac.0.2.5-0.2.7.sql',
13+
'migrations/pgstac.0.2.5-0.2.7.sql',
14+
'migrations/pgstac.0.2.5-0.2.7.sql',
15+
'migrations/pgstac.0.2.7.sql',
16+
'migrations/pgstac.0.2.7.sql',
17+
'migrations/pgstac.0.2.7.sql']}
1818

1919
install_requires = \
2020
['asyncio>=3.4.3,<4.0.0',
@@ -28,7 +28,7 @@
2828

2929
setup_kwargs = {
3030
'name': 'pypgstac',
31-
'version': '0.2.6',
31+
'version': '0.2.7',
3232
'description': '',
3333
'long_description': 'Python tools for working with PGStac\n',
3434
'author': 'David Bitner',

sql/999_version.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INSERT INTO migrations (version) VALUES ('0.2.7');

0 commit comments

Comments
 (0)