File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Dynamic versioning doesn't work with release sources as it is missing a .git
2+ --- a/pyproject.toml
3+ +++ b/pyproject.toml
4+ @@ -1,6 +1,6 @@
5+ [project]
6+ name = "netexec"
7+ - dynamic = ["version"]
8+ + version = "0.0.0"
9+ description = "The Network Execution tool"
10+ readme = "README.md"
11+ requires-python = ">=3.10,<4.0"
12+ @@ -69,18 +69,8 @@
13+ packages = [{ include = "nxc" }]
14+ version = "0.0.0" # Poetry placeholder, do not remove
15+
16+ - [tool.poetry.requires-plugins]
17+ - poetry-dynamic-versioning = { version = ">=1.7.0,<2.0.0", extras = ["plugin"] }
18+ -
19+ - [tool.poetry-dynamic-versioning]
20+ - enable = true
21+ - style = "pep440"
22+ - pattern = "(?P<base>\\d+\\.\\d+\\.\\d+)"
23+ - format = "{base}+{distance}.{commit}"
24+ -
25+ [build-system]
26+ - requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
27+ - build-backend = "poetry_dynamic_versioning.backend"
28+ + requires = ["poetry-core>=1.0.0"]
29+
30+ [tool.poetry.group.dev.dependencies]
31+ flake8 = "*"
Original file line number Diff line number Diff line change 1+ # Template file for 'NetExec'
2+ pkgname=NetExec
3+ version=1.5.1
4+ revision=1
5+ build_style=python3-pep517
6+ hostmakedepends="python3-poetry-core python3-build python3-installer python3-wheel PyInstaller"
7+ depends="python3-termcolor python3-rich python3-libnmap python3-xmltodict python3-SQLAlchemy2 python3-pycryptodomex python3-argcomplete python3-BeautifulSoup4 python3-PyJWT python3-paramiko python3-pefile python3-requests python3-terminaltables python3-dnspython python3-pyasn1-modules impacket python3-openssl"
8+ short_desc="Network Execution Tool"
9+ maintainer="Soulful Sailer <soulful.sailer@entropic.pro>"
10+ license="BSD-2-Clause"
11+ homepage="https://netexec.wiki/"
12+ distfiles="https://github.com/Pennyw0rth/${pkgname}/archive/refs/tags/v${version}.tar.gz"
13+ checksum=75de40a2f93b39f502d80487c2cdad08b86167882daccb78c43cf4ebad817fa5
14+
15+ post_patch() {
16+ # Insert version as dynamic versioning is disabled (see dynamic-versioning.patch)
17+ sed -i "s|version = \"0.0.0\"|version = \"${version}\"|g" pyproject.toml
18+ }
19+
20+ post_install() {
21+ vlicense LICENSE
22+ }
You can’t perform that action at this time.
0 commit comments