From 31298581f8b6b8debfa5e0bf879b4ff5dbcb71d0 Mon Sep 17 00:00:00 2001 From: Ladislav Lhotka <lhotka@nic.cz> Date: Fri, 7 Oct 2016 15:34:02 +0200 Subject: [PATCH] Add MANIFEST.in, simplify setup.py. --- MANIFEST.in | 9 +++++++++ setup.py | 33 +++++++++++++++++++++------------ 2 files changed, 30 insertions(+), 12 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..fba65c8 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,9 @@ +# include license files +include COPYING +include COPYING.LESSER + +# include YANG modules and YANG library data +recursive-include yang-modules *.yang *.json + +# include XSLT stylesheets and RELAX NG schemas +recursive-include tools *.xsl *.rng Makefile \ No newline at end of file diff --git a/setup.py b/setup.py index afaab50..83b9147 100644 --- a/setup.py +++ b/setup.py @@ -1,28 +1,37 @@ from distutils.core import setup -def contents(*filenames): - buf = [] - for filename in filenames: - with open(filename, encoding="utf-8") as fp: - buf.append(fp.read()) - return "\n\n".join(buf) - setup( name = "yangson", packages = ["yangson"], - version = "0.1.53", - description = "Library for working with YANG schemas and data", + version = "1.0.0", + description = "Library for working with data modelled in YANG", author = "Ladislav Lhotka", author_email = "lhotka@nic.cz", url = "https://gitlab.labs.nic.cz/llhotka/yangson", + install_requires = ['PyXB'], tests_require = ["pytest"], keywords = ["yang", "data model", "configuration", "json"], classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", - "Development Status :: 2 - Pre-Alpha", + "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", - "Topic :: Software Development :: Libraries" ], - long_description = contents("README.rst") + "Operating System :: OS Independent", + "Topic :: Software Development :: Libraries", + "Topic :: System :: Systems Administration], + long_description = """\ +.. |date| date:: + +======= +Yangson +======= +:Author: Ladislav Lhotka <lhotka@nic.cz> +:Date: |date| + +Python library for working with YANG_ data models and JSON-encoded +data. + +.. _YANG: https://tools.ietf.org/html/draft-ietf-netmod-rfc6020bis +""" ) -- GitLab