From 8a335cf8957bffe6b16093ad676652ca6867a9b9 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 5 Jan 2024 14:46:15 +0200 Subject: [PATCH 1/2] Remove imp from version lookup --- setup.cfg | 1 + setup.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index 88a39f0..8f2090a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,5 @@ [metadata] description-file = README.md +version = attr: sox.version.version [bdist_wheel] universal = 1 diff --git a/setup.py b/setup.py index 5126a6a..d1e8c72 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,7 @@ """ Setup script for sox. """ from setuptools import setup -import imp -version = imp.load_source('sox.version', 'sox/version.py') with open("README.md", "r") as fh: long_description = fh.read() @@ -11,12 +9,11 @@ if __name__ == "__main__": setup( name='sox', - version=version.version, description='Python wrapper around SoX.', author='Rachel Bittner', author_email='rachel.bittner@nyu.edu', url='https://github.com/rabitt/pysox', - download_url='http://github.com/rabitt/pysox/releases', + download_url='https://github.com/rabitt/pysox/releases', packages=['sox'], package_data={'sox': []}, long_description=long_description, From 165053b3767caf83a974be8f89a24b7804b42e6b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 5 Jan 2024 14:47:43 +0200 Subject: [PATCH 2/2] Remove unused imp import --- docs/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index acb1487..06036b8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,7 +15,6 @@ import sys import os -import imp # 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