diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-12-30 23:58:22 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-12-30 23:58:22 -0500 |
commit | aea128e8529f2636c80975795b721bcf3f6bc7a5 (patch) | |
tree | c5785e3e5fac8f909dc4a8a5c7c3a5b81631f0da | |
parent | c4514f27759e05bcbcd21cbd52859e421a3938f2 (diff) | |
download | htc_utils-master.tar.gz |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | htc_utils/__init__.py | 3 | ||||
-rw-r--r-- | setup.py | 7 |
3 files changed, 9 insertions, 2 deletions
@@ -3,3 +3,4 @@ dist __pycache__ .*project *.egg-info +version.py diff --git a/htc_utils/__init__.py b/htc_utils/__init__.py index 55734c8..a61df77 100644 --- a/htc_utils/__init__.py +++ b/htc_utils/__init__.py @@ -1 +1,2 @@ -from .bindings import *
\ No newline at end of file +from .bindings import * +from .version import __version__ @@ -3,6 +3,7 @@ from os.path import splitext, basename, relpath, join from shutil import copy2 from setuptools import setup, find_packages +VERSION = "0.1.2" CLI = relpath('htc_utils/CLI') scripts_original = [ join(CLI, 'split.py'), join(CLI, 'wrap.py'), @@ -13,15 +14,19 @@ scripts_renamed = [ 'condor_' + basename(x) for x in scripts_renamed ] for script, script_renamed in zip(scripts_original, scripts_renamed): copy2(script, script_renamed) +with open(join('htc_utils', 'version.py'), 'w+') as fp: + fp.write("__version__ = '{}'\n".format(VERSION)) + setup( name="htc_utils", - version="0.1.1", + version=VERSION, packages=find_packages(), scripts=scripts_renamed, # metadata for upload to PyPI author="Joseph Hunkeler", author_email="jhunkeler@gmail.com", + url = "https://github.com/jhunkeler/htc_utils", description="Home-rolled Condor utilities", license="GPL", keywords="condor htcondor util", |