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

package versioning for clmctests

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