Commit 9f09c5e9 authored by SIMONIN Matthieu's avatar SIMONIN Matthieu

add version in user agent

parent 4fec9044
Pipeline #94913 passed with stage
in 2 minutes and 43 seconds
......@@ -3,5 +3,5 @@ current_version = 0.1.0
commit = true
tag = true
[bumpversion:file:setup.cfg]
[bumpversion:file:grid5000/__version___.py]
......@@ -10,12 +10,13 @@ import yaml
from .exceptions import * # noqa
from .objects import * # noqa
from .__version__ import __version__
logger = logging.getLogger(__name__)
DEFAULT_BASE_URL = "https://api.grid5000.fr/stable"
USER_AGENT = "python-grid5000"
USER_AGENT = f"python-grid5000 {__version__}"
def _create_session(
......
__version__ = "0.1.0"
\ No newline at end of file
[metadata]
name = python-grid5000
version = 0.1.0
keywords = REST, evaluation, reproducible research, Grid5000
license_file = LICENSE.txt
url = https://gitlab.inria.fr/msimonin/python-grid5000
......
# -*- coding: utf-8 -
from setuptools import setup
import os
setup()
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, 'grid5000', '__version__.py')) as f:
exec(f.read(), about)
setup(version=about["__version__"])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment