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

versioning fixes and updates to appveyor config #310

Merged
merged 4 commits into from
Nov 9, 2017
Merged

Conversation

amarekano
Copy link
Contributor

No description provided.

@amarekano amarekano merged commit 5879d52 into master Nov 9, 2017

if platform == "linux2" or platform == "linux":
return subprocess.check_output(' '.join(version_cmd),shell=True)
elif platform == "win32":
Copy link
Contributor

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.

Copy link
Contributor Author

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(),
Copy link
Contributor

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.

Copy link
Contributor Author

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"
Copy link
Contributor

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']
Copy link
Contributor

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

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants