We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08af68b commit af37353Copy full SHA for af37353
setup.py
@@ -3,7 +3,8 @@
3
from setuptools import setup
4
from setuptools.config import read_configuration
5
6
-config = read_configuration(Path(__file__).parent.joinpath('setup.cfg'))
+PROJECT_PATH = Path(__file__).parent
7
+config = read_configuration(PROJECT_PATH.joinpath('setup.cfg'))
8
9
extras_require = {
10
'setup': config['options']['setup_requires'],
@@ -14,7 +15,7 @@
14
15
extras_require['all'] = [*extras_require.values()]
16
kwargs = {'extras_require': extras_require}
17
-if (Path(__file__) / '.git').exists():
18
+if (PROJECT_PATH / '.git').exists():
19
use_scm_version = {'write_to': Path(config['metadata']['name'].replace('-', '_'), 'version.py')}
20
kwargs['use_scm_version'] = use_scm_version
21
0 commit comments