Skip to content

Commit 375cfcc

Browse files
authored
Rename the package from LNT to llvm-lnt (#93)
There already exists a package called 'lnt', which would conflict with this package if we tried uploading to PyPi. This renaming should not have any impact because all clients have been installing this package from the source repository so far, where the package name doesn't matter.
1 parent 524880c commit 375cfcc

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*.pyc
22
/junit-mypy.xml
33
.tox/
4-
/LNT.egg-info
4+
/llvm_lnt.egg-info
55
build
66
dist
77
docs/_build

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
project = "LNT"
3636
project_module = lnt
37-
metadata = importlib.metadata.metadata('LNT')
37+
metadata = importlib.metadata.metadata('llvm-lnt')
3838
author = email.utils.parseaddr(metadata['Author-email'])[0]
3939

4040
# -- General configuration -----------------------------------------------------
@@ -66,9 +66,9 @@
6666
# built documents.
6767
#
6868
# The short X.Y version.
69-
version = importlib.metadata.version(project)
69+
version = importlib.metadata.version('llvm-lnt')
7070
# The full version, including alpha/beta/rc tags.
71-
release = importlib.metadata.version(project)
71+
release = importlib.metadata.version('llvm-lnt')
7272

7373
# The language for content autogenerated by Sphinx. Refer to documentation
7474
# for a list of supported languages.

lnt/lnttool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def show_version(ctx, param, value):
462462
if not value or ctx.resilient_parsing:
463463
return
464464
import importlib.metadata
465-
version = importlib.metadata.version('LNT')
465+
version = importlib.metadata.version('llvm-lnt')
466466
print(f"LNT {version}")
467467
ctx.exit()
468468

lnt/server/db/testsuite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class TestSuite(Base):
118118
db_key_name = Column("DBKeyName", String(256))
119119

120120
# The version of the schema used for the per-testsuite databases (encoded
121-
# as the LNT version).
121+
# as the llvm-lnt package version).
122122
version = Column("Version", String(16))
123123

124124
machine_fields = relation('MachineField', backref='test_suite',
@@ -133,7 +133,7 @@ class TestSuite(Base):
133133
def __init__(self, name, db_key_name):
134134
self.name = name
135135
self.db_key_name = db_key_name
136-
(major, minor, *_) = importlib.metadata.version('LNT').split('.')
136+
(major, minor, *_) = importlib.metadata.version('llvm-lnt').split('.')
137137
self.version = f"{major}.{minor}"
138138

139139
def __repr__(self):

lnt/server/ui/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __init__(self, name):
217217
self.request_class = Request
218218

219219
# Store a few global things we want available to templates.
220-
self.version = importlib.metadata.version('LNT')
220+
self.version = importlib.metadata.version('llvm-lnt')
221221

222222
# Inject a fix for missing slashes on the root URL (see Flask issue
223223
# #169).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools >= 74.1"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "LNT"
6+
name = "llvm-lnt"
77
version = "0.4.2.dev0"
88
description = "LLVM Nightly Test Infrastructure"
99
readme = "README.md"

0 commit comments

Comments
 (0)