From fb0803be3f4bd6faff074bfb6893dce0639fe9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Fri, 20 May 2022 21:27:24 +0545 Subject: [PATCH] use setuptools_scm --- .github/workflows/release.yaml | 2 ++ .github/workflows/tests.yaml | 2 ++ pyproject.toml | 4 +++- setup.cfg | 1 - 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7f941996..ebf73f5a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,6 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Python 3.7 uses: actions/setup-python@v2 with: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 45071b2f..8fee2d9e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -11,6 +11,8 @@ jobs: python-version: ['3.7', '3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} diff --git a/pyproject.toml b/pyproject.toml index ab7aac99..733d3d1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,9 @@ [build-system] -requires = ["setuptools>=48", "wheel"] +requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"] build-backend = "setuptools.build_meta" +[tool.setuptools_scm] + [tool.black] line-length = 79 include = '\.pyi?$' diff --git a/setup.cfg b/setup.cfg index e6d566fd..61dda336 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,6 @@ [metadata] description = SCM wrapper and fsspec filesystem for Git for use in DVC name = scmrepo -version = 0.0.22 long_description = file: README.md long_description_content_type = text/markdown license = Apache License 2.0