Skip to content

Commit

Permalink
dynamic versioning with setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Aug 25, 2023
1 parent f5c4db0 commit 014e0bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
_version.py

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]

[project]
name = "pangeo-forge-runner"
dynamic = ["version"]

[tool.setuptools_scm]
write_to = "pangeo_forge_runner/_version.py"
write_to_template = "__version__ = '{version}'"

[tool.isort]
# Prevent isort & black from fighting each otherd
profile = "black"
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
readme = f.read()

setup(
name="pangeo-forge-runner",
description="Commandline tool to manage pangeo-forge feedstocks",
long_description=readme,
long_description_content_type="text/markdown",
author="Yuvi Panda",
author_email="[email protected]",
version="0.7.2",
packages=find_packages(),
python_requires=">=3.9",
install_requires=[
Expand Down

0 comments on commit 014e0bd

Please sign in to comment.