Skip to content
Snippets Groups Projects
Commit 029d0185 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add version management

parent be20f9b4
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@
import sys
import os
import jppy
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
......@@ -61,9 +63,9 @@ author = u'Tamas Gal'
# built documents.
#
# The short X.Y version.
version = u'3.0.0'
version = jppy.version
# The full version, including alpha/beta/rc tags.
release = u'3.0.0'
release = ujppy.version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
......
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
[tool.setuptools_scm]
write_to = "jppy/version.py"
......@@ -5,8 +5,6 @@ import sys
import setuptools
import subprocess as sp
__version__ = '3.0.0'
class get_pybind_include(object):
"""Helper class to determine the pybind11 include path
......@@ -50,6 +48,7 @@ ext_modules = [
# Populating the __init__.py with submodule imports, so that one can import
# the package and use the submodules directly with the dot-sytax.
with open("jppy/__init__.py", "w") as fobj:
fobj.write("from .version import version\n")
for module in ext_modules:
fobj.write("from . import {}\n".format(module.name.split('.')[1]))
......@@ -128,7 +127,6 @@ class BuildExt(build_ext):
setup(
name='jppy',
version=__version__,
author='Tamas Gal',
author_email='tgal@km3net.de',
url='https://git.km3net.de/km3py/jppy',
......
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