Skip to content

Commit

Permalink
move setuptools_scm config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Nov 11, 2020
1 parent 1287176 commit d97c61c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions pyproject.toml
@@ -1,2 +1,9 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"

[tool.black]
target_version = ["py36"]

[tool.setuptools_scm]
local_scheme = "no-local-version"
8 changes: 1 addition & 7 deletions setup.py
@@ -1,9 +1,3 @@
from setuptools import setup

def local_scheme(version):
"""Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2)
to be able to upload to Test PyPI"""
return ""


setup(use_scm_version={"local_scheme": local_scheme})
setup()

0 comments on commit d97c61c

Please sign in to comment.