Skip to content

Commit

Permalink
Merge pull request #160 from hugovk/replace-imp
Browse files Browse the repository at this point in the history
Remove deprecated `imp`
  • Loading branch information
lostanlen authored Jan 23, 2024
2 parents 5e93526 + c0052cd commit e99079a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,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
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[metadata]
description-file = README.md
version = attr: sox.version.version
python_requires = >=3.8
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
""" Setup script for sox. """
from setuptools import setup

import imp

version = imp.load_source('sox.version', 'sox/version.py')

with open("README.md") as fh:
long_description = fh.read()

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,
Expand Down

0 comments on commit e99079a

Please sign in to comment.