-
Notifications
You must be signed in to change notification settings - Fork 762
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
versioning fixes and updates to appveyor config #310
Conversation
Merge pull request #307 from mwrlabs/develop
Fixes to versioning and appveyor
|
||
if platform == "linux2" or platform == "linux": | ||
return subprocess.check_output(' '.join(version_cmd),shell=True) | ||
elif platform == "win32": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command doesn't work on windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which bits don't work on windows?
setuptools.setup( | ||
name = meta.name, | ||
version = str(meta.version), | ||
version = get_version(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No benefit over hardcoded version unless linked with build process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_version() is called at build time when building binaries via setuptools
@@ -1,8 +1,6 @@ | |||
environment: | |||
|
|||
matrix: | |||
- PYTHON: "C:\\Python27" | |||
JAVA_HOME: "C:\\Program Files (x86)\\Java\\jdk1.7.0" | |||
- PYTHON: "C:\\Python27-x64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
32 bit support is required.
@@ -117,9 +117,17 @@ def get_package_data(): | |||
data[""].append(os.path.join(root, filename)[11:]) | |||
return data | |||
|
|||
def get_version(): | |||
version_cmd = ['git', 'describe', '--tags', '|' ,'cut', '-c', '1-5'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't work if downloaded using release zip/tar.gz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes unfortunately. I guess we're going to have to default to manual versioning for now.
No description provided.