use setuptools_scm and build_requires (#6775)

* use setuptools_scm and build_requires

* remove kwargs from setup.py

* fix tests; fetch in depth in github actions

* use build to build sdist/wheel

* try updating pip and setuptools

* update pip

* remove or unpin wheel

* bring back the version in pyinstaller

* Update scripts/build.py

Co-authored-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Saugat Pachhai
2021-10-12 17:58:14 +03:00
committed by GitHub
co-authored by Ruslan Kuprieiev
parent 53255c22b3
commit 8abda93e3e
15 changed files with 63 additions and 289 deletions
+14
View File
@@ -1,3 +1,17 @@
[build-system]
requires = [
"setuptools>=58.2",
"wheel",
"setuptools_scm[toml]>=6.3.1",
# Prevents pkg_resources import in entry point script,
# see https://github.com/ninjaaron/fast-entry_points.
# This saves about 200 ms on startup time for non-wheel installs.
"fastentrypoints>=0.12"
]
[tool.setuptools_scm]
write_to = "dvc/_version.py"
[tool.black]
line-length = 79
include = '\.pyi?$'