Skip to content

Commit

Permalink
Replace imp package with importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Dec 1, 2023
1 parent 03d4182 commit 0eb8361
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/usr/bin/env python

import imp
try:
import imp
version = imp.load_source('pyluos.version', 'pyluos/version.py')
except ImportError:
from importlib.machinery import SourceFileLoader
version = SourceFileLoader('pyluos.version', 'pyluos/version.py').load_module()

from setuptools import setup, find_packages

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

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

Expand Down

0 comments on commit 0eb8361

Please sign in to comment.