Skip to content

Commit

Permalink
setup.py respects github release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
thesebas committed May 6, 2021
1 parent 7ecd806 commit 4ebfb6e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@
except Exception:
long_description = ''


version_from_github_ref = os.getenv('GITHUB_REF', None)
if version_from_github_ref is not None:
version = version_from_github_ref[10:]
else:
version = '0.0.1-dev'

setup(
name='airtable_fdw',
packages=find_packages('.'),
version='0.1.0',
version=version,
license='MIT',
description='Airtable Multicorn FDW for Postgres',
long_description=long_description,
Expand Down

0 comments on commit 4ebfb6e

Please sign in to comment.