Skip to content

Commit

Permalink
Merge pull request #13 from doronz88/refactor/versioning
Browse files Browse the repository at this point in the history
Refactor/versioning
  • Loading branch information
DennyDai authored Oct 11, 2024
2 parents 11ff06f + 77acd79 commit 45f6fbe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
on:
push:
tags:
- '*'
release:
types: [ created ]

jobs:
Publish:
Expand All @@ -22,11 +21,6 @@ jobs:
pip install
build
--user
- name: Update version in pyproject.toml
run: >-
sed -i
"s/^version = \".*\"/version = \"${{ github.ref_name }}\"/"
pyproject.toml
- name: Build a binary wheel and a source tarball
run: >-
python -m
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,8 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.

# auto-generated by setuptools-scm
src/headless_ida/_version.py

.idea/
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[build-system]
requires = ["setuptools"]
requires = ["setuptools>=43.0.0", "setuptools_scm>=8", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "headless-ida"
version = "0.0.0"
dependencies = [
"rpyc",
]
Expand All @@ -16,6 +15,7 @@ authors = [
license = {file = "LICENSE"}
keywords = ["ida", "headless", "idapro", "hexrays"]
requires-python = ">=3"
dynamic = ["version"]

[project.scripts]
headless-ida = "headless_ida:headlessida_cli"
Expand All @@ -28,3 +28,6 @@ repository = "https://github.com/DennyDai/headless-ida"

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools_scm]
version_file = "src/headless_ida/_version.py"

0 comments on commit 45f6fbe

Please sign in to comment.