Skip to content

Commit

Permalink
Update setup configs for pypi library upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Ngo committed Jan 8, 2024
1 parent f8b934b commit 32c80e0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
16 changes: 16 additions & 0 deletions semantic-conventions/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
OpenTelemetry Semantic Convention Utility Tools
===============================================

|pypi|

.. |pypi| image:: https://badge.fury.io/py/opentelemetry-semconvgen.svg
:target: https://pypi.org/project/opentelemetry-semconvgen/

This library is provided as a convenience to access the OpenTelemetry Semantic Convention Generator, and semantic convention syntax parsing.

Installation
------------

::

pip install opentelemetry-semconvgen
12 changes: 6 additions & 6 deletions semantic-conventions/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
# limitations under the License.
#
[metadata]
name = semconvgen
description = OpenTelemetry Semantic Conventions utility
name = opentelemetry-semconvgen
description = OpenTelemetry Semantic Conventions Utilities
author = The OpenTelemetry Authors
author_email = cncf-opentelemetry-contributors@lists.cncf.io
url = https://github.com/dynatrace-oss-contrib/build-tools/
url = https://github.com/open-telemetry/build-tools
platforms = any
license = Apache-2.0
classifiers =
Development Status :: 1 - Alpha
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: Python
Expand All @@ -36,10 +36,10 @@ package_dir=
=src
packages=find_namespace:
install_requires =
dataclasses~=0.6
dataclasses~=0.6;python_version<'3.7'
ruamel.yaml~=0.16
Jinja2~=3.0
mistune==2.0.0a6
mistune==2.0.0

[options.packages.find]
where = src
Expand Down
10 changes: 9 additions & 1 deletion semantic-conventions/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@
VERSION_SUFFIX = os.environ.get("SEMCONGEN_VERSION_SUFFIX")
PUBLIC_VERSION = PACKAGE_INFO["__version__"]

# long description
README_FILENAME = os.path.join(BASE_DIR, "README.rst")
LONG_DESCRIPTION = ""
with open(README_FILENAME, encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()

setuptools.setup(
version=PUBLIC_VERSION
if not VERSION_SUFFIX
else PUBLIC_VERSION + "+" + VERSION_SUFFIX
else PUBLIC_VERSION + "+" + VERSION_SUFFIX,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
)

0 comments on commit 32c80e0

Please sign in to comment.