Skip to content

Commit

Permalink
Merge pull request #6 from netanelc305/feature/setuptool_scm
Browse files Browse the repository at this point in the history
pyproject: Add `setuptools_scm`
  • Loading branch information
netanelc305 committed Jan 29, 2024
2 parents c5a84d0 + 121239c commit f90aa2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.DS_Store
*.pyc
*.egg-info
/darwin_ssl_sniffer/_version.py
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[project]
name = "darwin-ssl-sniffer"
version = "0.0.3"
description = "Sniffer for encrypted traffic on darwin-based platforms"
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -26,7 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ["dependencies"]
dynamic = ["dependencies", "version"]

[project.optional-dependencies]
test = ["pytest"]
Expand All @@ -43,7 +42,11 @@ exclude = ["docs*", "tests*"]

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
version = {attr = "darwin_ssl_sniffer._version.__version__"}

[tool.setuptools_scm]
version_file = "darwin_ssl_sniffer/_version.py"

[build-system]
requires = ["setuptools>=43.0.0", "wheel"]
requires = ["setuptools>=43.0.0", "setuptools_scm>=8", "wheel"]
build-backend = "setuptools.build_meta"

0 comments on commit f90aa2f

Please sign in to comment.