From 3e6c485eb96d6fcb6c30feb6af64a6c9af5c0bc8 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Wed, 23 Nov 2022 18:14:34 -0800 Subject: [PATCH] Re-factored package metadata --- docs/source/conf.py | 4 ++-- metadata.py | 3 --- setup.py | 2 +- wavinfo/__init__.py | 3 +++ 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 5e26b6c..e55d073 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -27,9 +27,9 @@ copyright = u'2022, Jamie Hardt' author = u'Jamie Hardt' # The short X.Y version -version = u'' +version = wavinfo.__version__ # The full version, including alpha/beta/rc tags -release = u'v2.0.0' +release = wavinfo.__version__ # -- General configuration --------------------------------------------------- diff --git a/metadata.py b/metadata.py index eb554e7..7fced99 100644 --- a/metadata.py +++ b/metadata.py @@ -1,6 +1,3 @@ """ Wavinfo """ -__version__ = '2.0.1' -__author__ = 'Jamie Hardt ' -__license__ = "MIT" diff --git a/setup.py b/setup.py index 368d38e..fc3e71f 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ from setuptools import setup -from metadata import __author__, __license__, __version__ +from .wavinfo import __author__, __license__, __version__ with open("README.md", "r") as fh: long_description = fh.read() diff --git a/wavinfo/__init__.py b/wavinfo/__init__.py index c030227..0608567 100644 --- a/wavinfo/__init__.py +++ b/wavinfo/__init__.py @@ -7,3 +7,6 @@ Go to the documentation for wavinfo.WavInfoReader for more information. from .wave_reader import WavInfoReader from .riff_parser import WavInfoEOFError +__version__ = '2.0.1' +__author__ = 'Jamie Hardt ' +__license__ = "MIT"