mixing semantic versioning with sphinx

This commit is contained in:
miguelgfierro 2019-09-02 12:51:41 +01:00
Родитель dcb9ee736d
Коммит 3328ed767e
3 изменённых файлов: 25 добавлений и 7 удалений

Просмотреть файл

@ -30,7 +30,7 @@ copyright = COPYRIGHT
author = AUTHOR
# The short X.Y version
version = VERSION
version = ".".join(VERSION.split(".")[:2])
# The full version, including alpha/beta/rc tags
release = VERSION

Просмотреть файл

@ -6,11 +6,8 @@ import io
import re
from os.path import dirname, join
from setuptools import setup
from setuptools_scm import get_version
from utils_nlp import VERSION, AUTHOR, TITLE, LICENSE
# Determine semantic versioning automatically
# from git commits
__version__ = get_version()
def read(*names, **kwargs):
with io.open(join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")) as fh:
@ -19,8 +16,8 @@ def read(*names, **kwargs):
setup(
name="utils_nlp",
version=__version__,
license="MIT License",
version=VERSION,
license=LICENSE,
description="NLP Utility functions that are used for best practices in building state-of-the-art NLP methods and scenarios. Developed by Microsoft AI CAT",
long_description="%s\n%s"
% (

Просмотреть файл

@ -0,0 +1,21 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from setuptools_scm import get_version
__title__ = "Microsoft NLP"
__author__ = "AI CAT at Microsoft"
__license__ = "MIT"
__copyright__ = "Copyright 2018-present Microsoft Corporation"
# Synonyms
TITLE = __title__
AUTHOR = __author__
LICENSE = __license__
COPYRIGHT = __copyright__
# Determine semantic versioning automatically
# from git commits
__version__ = get_version()
VERSION = __version__