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

Bump version to 0.99.0 and fix version variable to match PEP/rest of octoDNS #41

Merged
merged 3 commits into from
Feb 1, 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
5 changes: 5 additions & 0 deletions octodns_selectel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from .v1.provider import SelectelProvider as SelectelProviderLegacy
from .v2.provider import SelectelProvider as SelectelProvider
from .version import __VERSION__, __version__

__all__ = [SelectelProviderLegacy, SelectelProvider]

# quell warnings
__VERSION__
__version__
4 changes: 2 additions & 2 deletions octodns_selectel/v1/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from requests import Session
from requests.exceptions import HTTPError

from octodns import __VERSION__ as octodns_version
from octodns import __version__ as octodns_version
from octodns.provider import ProviderException
from octodns.provider.base import BaseProvider
from octodns.record import Record, Update

from octodns_selectel.version import version as provider_version
from octodns_selectel.version import __version__ as provider_version


def require_root_domain(fqdn):
Expand Down
2 changes: 1 addition & 1 deletion octodns_selectel/v2/dns_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from requests import Session

from octodns import __VERSION__ as octodns_version
from octodns import __version__ as octodns_version

from .exceptions import ApiException

Expand Down
2 changes: 1 addition & 1 deletion octodns_selectel/v2/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from octodns.provider.base import BaseProvider
from octodns.record import Record, SshfpRecord, Update

from octodns_selectel.version import version as provider_version
from octodns_selectel.version import __version__ as provider_version

from .dns_client import DNSClient
from .exceptions import ApiException
Expand Down
3 changes: 2 additions & 1 deletion octodns_selectel/version.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
version = '0.0.4'
# TODO: remove __VERSION__ w/2.x
__version__ = __VERSION__ = '0.99.0'
2 changes: 1 addition & 1 deletion script/release
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fi
# Set so that setup.py will create a public release style version number
export OCTODNS_RELEASE=1

VERSION="$(grep "^version" "$ROOT/octodns_selectel/version.py" | sed -e "s/.* = '//" -e "s/'$//")"
VERSION="$(grep "^__version__" "$ROOT/octodns_selectel/version.py" | sed -e "s/.* = '//" -e "s/'$//")"

git tag -s "v$VERSION" -m "Release $VERSION"
git push origin "v$VERSION"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def descriptions():
def version():
with open('octodns_selectel/version.py') as fh:
for line in fh:
if line.startswith('version'):
if line.startswith('__version__'):
return line.split("'")[1]
return 'unknown'

Expand Down
Loading