Skip to content

Commit

Permalink
detect version automatically (#2)
Browse files Browse the repository at this point in the history
* detect version automatically

* fix gh action
  • Loading branch information
njzjz authored May 8, 2022
1 parent cdb0e1b commit 2bb4ee3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ name: Release to pypi
jobs:
release-to-pypi:
uses: deepmodeling/workflows/.github/workflows/release-to-pypi.yml@main
secrets: inherit
secrets:
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
[tool.setuptools_scm]
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

setup(
name="deepmodeling_sphinx",
version="0.0.4",
use_scm_version=True,
setup_requires=['setuptools_scm'],
packages=['deepmodeling_sphinx'],
install_require=['sphinx'],
package_data={
Expand Down

0 comments on commit 2bb4ee3

Please sign in to comment.