#!/usr/bin/env python
import os
import sys

import setuptools_scm

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.doctest',
    'sphinx.ext.viewcode',
]

master_doc = 'index'

project = u'python-ioctl'

release = setuptools_scm.get_version()
# Calculate the version based on the first two parts of the release. I.e. "1.2.3" => "1.2"
version = '.'.join(release.split('.', 3)[:2])

html_show_copyright = False

#!/usr/bin/env python
import os
import sys

import setuptools_scm

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.doctest',
    'sphinx.ext.viewcode',
]

master_doc = 'index'

project = u'python-ioctl'

release = setuptools_scm.get_version(root='..')
# Calculate the version based on the first two parts of the release. I.e. "1.2.3" => "1.2"
version = '.'.join(release.split('.', 3)[:2])

html_show_copyright = False

Fix call go setuptools_scm.get_version().