Skip to content

Commit

Permalink
Merge pull request #52 from dknowles2/auto-version
Browse files Browse the repository at this point in the history
Use setuptools_scm for auto versioning
  • Loading branch information
dknowles2 committed Apr 8, 2023
2 parents 7ec2078 + c005926 commit f5d88cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name-template: $RESOLVED_VERSION **UPDATE setup.py BEFORE PUBLISHING**
name-template: $RESOLVED_VERSION
tag-template: $RESOLVED_VERSION
template: |
## What’s Changed
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/

# Version file generated by packaging
pyschlage/_version.py
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
[build-system]
requires = ["setuptools~=62.3", "wheel~=0.37.1"]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "pyschlage"
version = "2023.3.2"
description = "Python API for interacting with Schlage WiFi locks."
authors = [
{name = "David Knowles", email = "dknowles2@gmail.com"},
]
dependencies = ["pycognito", "requests"]
requires-python = ">=3.8"
dynamic = ["readme"]
dynamic = ["readme", "version"]
license = {text = "Apache License 2.0"}
keywords = ["schlage", "api", "iot"]
classifiers = [
Expand All @@ -29,12 +28,15 @@ classifiers = [

[tool.setuptools]
platforms = ["any"]
zip-safe = false
zip-safe = true
include-package-data = true

[tool.setuptools.dynamic]
readme = { file = ["README.md"], content-type = "text/markdown" }

[tool.setuptools_scm]
write_to = "pyschlage/_version.py"

[tool.isort]
profile = "black"
combine_as_imports = true
Expand Down

0 comments on commit f5d88cd

Please sign in to comment.