Skip to content
Snippets Groups Projects
Commit 6b3e2882 authored by MJB's avatar MJB
Browse files

package versioning for clmctests

parent d77380f6
No related branches found
No related tags found
No related merge requests found
...@@ -4,4 +4,5 @@ ...@@ -4,4 +4,5 @@
*__init__.pyc *__init__.pyc
*egg-info* *egg-info*
*git-commit-ref* *git-commit-ref*
*_version.py*
ubuntu-xenial-16.04-cloudimg-console.log ubuntu-xenial-16.04-cloudimg-console.log
include MANIFEST.in include MANIFEST.in
recursive-include clmctest *.yml *.sh *.json *.conf recursive-include clmctest _version.py *.yml *.sh *.json *.conf
\ No newline at end of file \ No newline at end of file
...@@ -22,23 +22,34 @@ ...@@ -22,23 +22,34 @@
""" """
import os import os
import os.path
import subprocess
from setuptools import setup, find_packages from setuptools import setup, find_packages
def read(fname): def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version(fname):
if os.path.isfile(fname):
git_revision = read(fname)
else:
git_revision = "SNAPSHOT"
return git_revision
setup( setup(
name = "clmctest", name = "clmctest",
version = "SNAPSHOT", version = get_version("clmctest/_version.py"),
author = "Michael Boniface", author = "Michael Boniface",
author_email = "mjb@it-innovation.soton.ac.uk", author_email = "mjb@it-innovation.soton.ac.uk",
description = "FLAME CLMC Testing Module", description = "FLAME CLMC Test Module",
license = "license", license = "https://gitlab.it-innovation.soton.ac.uk/FLAME/flame-clmc/blob/integration/LICENSE",
keywords = "FLAME CLMC test", keywords = "FLAME CLMC tests",
url='https://gitlab.it-innovation.soton.ac.uk/FLAME/flame-clmc',
packages=find_packages(exclude=["services"]), packages=find_packages(exclude=["services"]),
include_package_data=True, include_package_data=True,
package_data={'': ['git-commit-ref', '*.yml', '*.sh', '*.json', '*.conf']}, package_data={'': ['_version.py', '*.yml', '*.sh', '*.json', '*.conf']},
long_description="long description", long_description="FLAME CLMC tests",
classifiers=[ classifiers=[
"Development Status :: Alpha", "Development Status :: Alpha",
"Topic :: FLAME Tests", "Topic :: FLAME Tests",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment