Skip to content
Snippets Groups Projects
Commit cb8bb1cf authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Update distribution scripts.

parent 9c0be1b0
No related branches found
No related tags found
No related merge requests found
PROJECT = yangson
VERSION = 1.2.0rc1
.PHONY = tags deps install-deps test
tags:
......@@ -12,3 +13,12 @@ install-deps:
test:
@py.test tests
release:
git tag -a -m "Yangson release $(VERSION)"
rm dist/*
python setup.py sdist
python setup.py bdist_wheel
upload:
twine upload dist/*
......@@ -15,6 +15,7 @@
import sys
import os
from pkg_resources import get_distribution
# 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
......@@ -59,10 +60,10 @@ author = 'Ladislav Lhotka'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '1.1'
# The full version, including alpha/beta/rc tags.
release = '1.1.0'
release = get_distribution('yangson').version
# The short X.Y version.
version = '.'.join(release.split('.')[:2])
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
......
......@@ -3,12 +3,16 @@ from setuptools import setup
setup(
name = "yangson",
packages = ["yangson"],
version = "1.1.0",
use_scm_version = True,
setup_requires=["setuptools_scm"],
description = "Library for working with data modelled in YANG",
author = "Ladislav Lhotka",
author_email = "lhotka@nic.cz",
url = "https://github.com/CZ-NIC/yangson",
install_requires = ['PyXB'],
entry_points = {
"console_scripts": ["yangson=yangson.__main__:main"]
}
install_requires = ["PyXB"],
tests_require = ["pytest"],
keywords = ["yang", "data model", "configuration", "json"],
classifiers = [
......
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