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

Version number updates #166

Merged
merged 2 commits into from
Dec 4, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion pocs/tests/test_observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from pocs.scheduler.dispatch import Scheduler
from pocs.scheduler.observation import Observation
from pocs.utils import error
from pocs.version import version

has_camera = pytest.mark.skipif(
not pytest.config.getoption("--camera"),
Expand Down Expand Up @@ -168,7 +169,7 @@ def test_standard_headers(observatory):

test_headers = {
'airmass': 1.091778,
'creator': 'POCSv0.5.1',
'creator': 'POCSv{}'.format(version),
'elevation': 3400.0,
'ha_mnt': 1.6844671878927793,
'latitude': 19.54,
Expand Down
4 changes: 2 additions & 2 deletions pocs/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# this file was automatically generated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this claim true? If so, how is it generated?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having now read Creating a New Release, I can see that this file manually updated, so the comment should be removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing how I can miss that in a file that has 5 lines total. Thanks.

major = 0
minor = 5
release = 1
patch = 1

version = '{}.{}.{}'.format(major, minor, release)
version = '{}.{}.{}'.format(major, minor, patch)