Skip to content

Commit c8fd6f2

Browse files
committed
minor tidy up
1 parent 11c3255 commit c8fd6f2

6 files changed

Lines changed: 31 additions & 27 deletions

File tree

File renamed without changes.
File renamed without changes.

pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
11
[build-system]
22
requires = ["setuptools>=61.0"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "python-nameof"
7+
version = "1.2.2"
8+
description = "A Python implementation of the C# nameof operator."
9+
authors = [
10+
{ name="Alessio Lombardi", email="work@alelom.com" }
11+
]
12+
readme = "README.md"
13+
license = { file = "LICENSE" }
14+
requires-python = ">=3.7"
15+
classifiers = [
16+
"Programming Language :: Python :: 3",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
]
20+
dependencies = []
21+
22+
[project.urls]
23+
Homepage = "https://github.com/alelom/python-nameof"
24+
25+
[tool.setuptools]
26+
packages = ["nameof"]
27+
include-package-data = true
28+
29+
[tool.pytest.ini_options]
30+
testpaths = ["tests"]

release_process.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release Process
22

3-
Update the version in `setup.py`.
3+
Update the version in `pyproject.toml`.
44

55
Then build as below.
66

@@ -25,6 +25,7 @@ to delete any previous releases from the `dist` folder and then build.
2525

2626
## Release on PyPI
2727

28+
First, if needed: `pip install twine`
2829

2930
Upload to PyPi:
3031

setup.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

nameof_test.py renamed to tests/nameof_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def run_all_tests():
108108
]
109109
for test_func in test_functions:
110110
test_func()
111+
112+
print("All tests passed.")
111113

112114

113115
if __name__ == "__main__":

0 commit comments

Comments
 (0)