mixing semantic versioning with sphinx
This commit is contained in:
Родитель
dcb9ee736d
Коммит
3328ed767e
|
@ -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
|
||||
|
||||
|
|
9
setup.py
9
setup.py
|
@ -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__
|
Загрузка…
Ссылка в новой задаче