-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
24 lines (23 loc) · 898 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This setup.py file is just needed to support editable installs via
# `pip install -e .` and `python setup.py develop`
#
# NOTE:
# If you want an editable install `python setup.py develop` should
# not be used and you should always use `pip install -e .`
# But, it's almost guaranteed that some user will install via
# the former, and so let's make setuptools_scm work correctly
# in that case.
#
from setuptools import setup
setup(
# providing the settings is required for `python setup.py develop`
# to work correctly with setuptools_scm
# > set to `True` if we only allow `pip install -e .`
# ^^^ `True` requires a pyproject.toml with the below config!
use_scm_version={
# duplicated config from pyproject.toml; keep in sync
"write_to": "pado/_version.py",
"version_scheme": "post-release",
},
setup_requires=["setuptools_scm"],
)