Skip to content

Commit

Permalink
rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeurerkellner committed Oct 12, 2023
1 parent e024443 commit dc41b58
Show file tree
Hide file tree
Showing 26 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lve-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
VERSION: ${{ github.ref }}
run: cd lve-tools && bash scripts/pypi-release.sh lve-tools-$(echo $VERSION | sed 's/^refs\/tags\/v//')
run: cd lve-tools && bash scripts/pypi-release.sh lve_tools-$(echo $VERSION | sed 's/^refs\/tags\/v//')
3 changes: 0 additions & 3 deletions lve-tools/lve-tools/lve/version.py

This file was deleted.

File renamed without changes.
2 changes: 2 additions & 0 deletions lve-tools/lve_tools/lve/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .version import version
__version__ = version
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions lve-tools/lve_tools/lve/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version = "0.99999999"
commit = "dev"
build_on = "dev"
12 changes: 6 additions & 6 deletions lve-tools/scripts/wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ if [ $HAS_UNSTAGED -eq 1 ]; then
fi

VERSION=$1
VERSION_BEFORE=$(cat lve-tools/lve/version.py)
echo "version = \"$VERSION\"" > lve-tools/lve/version.py
echo "commit = \"$COMMIT\"" >> lve-tools/lve/version.py
echo "build_on = \"$(date)\"" >> lve-tools/lve/version.py
VERSION_BEFORE=$(cat lve_tools/lve/version.py)
echo "version = \"$VERSION\"" > lve_tools/lve/version.py
echo "commit = \"$COMMIT\"" >> lve_tools/lve/version.py
echo "build_on = \"$(date)\"" >> lve_tools/lve/version.py

echo "Building with version information: $(cat lve-tools/lve/version.py)"
echo "Building with version information: $(cat lve_tools/lve/version.py)"

# replace line starting 'version = ' in setup.cfg
UPDATED_SETUP=$(sed "s/version = .*/version = $VERSION/" setup.cfg)
Expand All @@ -26,4 +26,4 @@ echo "$UPDATED_SETUP" > setup.cfg
python -m build

echo "Reverting version.py to dev"
git checkout HEAD lve-tools/lve/version.py
git checkout HEAD lve_tools/lve/version.py
8 changes: 4 additions & 4 deletions lve-tools/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = lve-tools
version = 0.1
name = lve_tools
version = 0.0.1
author = LVE Team
description = Tools for documenting and recording language model vulnerabilities and exposures.
long_description = file: README.md
Expand All @@ -9,7 +9,7 @@ long_description_content_type = text/markdown
[options]
packages = find:
package_dir =
= lve-tools
= lve_tools
include_package_data = True
python_requires = >=3.10

Expand All @@ -23,7 +23,7 @@ install_requires =
lmql @ git+https://github.com/eth-sri/lmql.git@lve#egg=lmql

[options.packages.find]
where = lve-tools
where = lve_tools

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit dc41b58

Please sign in to comment.