-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from QCoDeS/versioningit_pyproject_toml
move versioningit config to pyprojec.toml
- Loading branch information
Showing
2 changed files
with
11 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,8 @@ | ||
import setuptools | ||
""" | ||
This file only exists as a fallback for older versions of pip/setuptools | ||
All configuration is done in pyproject.toml | ||
""" | ||
from setuptools import setup | ||
from versioningit import get_cmdclasses | ||
|
||
# this file does not contain configuration | ||
# all config should be in pyproject.toml | ||
|
||
|
||
if int(setuptools.__version__.split(".")[0]) < 61: | ||
raise RuntimeError( | ||
"At least setuptools 61 is required to install qcodes-contrib-drivers from source" | ||
) | ||
|
||
try: | ||
import pip | ||
|
||
if int(pip.__version__.split(".")[0]) < 19: | ||
raise RuntimeError("At least pip 19 is required to install qcodes-contrib-drivers from source") | ||
except ImportError: | ||
# we are not being executed from pip so pip version is not important | ||
pass | ||
|
||
if __name__ == "__main__": | ||
setup( | ||
cmdclass=get_cmdclasses(), | ||
) | ||
setup() |