Skip to content

Commit

Permalink
Get version using setuptools-scm
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicWink committed Apr 9, 2021
1 parent 83b81d0 commit b9e03ac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
run: pip install -U pip
- name: Build package
run: |
apt-get update && apt-get install -y git
pip install build
python -m build --sdist --wheel .
- name: Publish package
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
- name: Update pip
run: pip install -U pip
- name: Install package
run: pip install .
run: |
apt-get update && apt-get install -y git
pip --no-cache-dir install .
- name: Lint with black
run: |
pip install black
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 42",
"wheel",
"setuptools-scm[toml] >= 3.4",
]

[tool.setuptools_scm]
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[metadata]
name = seddy
version = 0.3.0a0.dev0
url = https://github.com/EpicWink/seddy
project_urls =
Documentation = https://seddy.readthedocs.io/en/latest/
Expand Down Expand Up @@ -28,6 +27,8 @@ packages = find:
package_dir =
=src
python_requires = ~=3.6
setup_requires =
setuptools-scm[toml] >= 3.4

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit b9e03ac

Please sign in to comment.