From 1bf3d0e08951b7c73d9d0f70eb82e3482cb9ca0e Mon Sep 17 00:00:00 2001 From: kompl3xpr Date: Sat, 11 Oct 2025 14:39:15 +0800 Subject: [PATCH] initialize python project --- .gitignore | 2 ++ .python-version | 1 + LICENSE | 21 +++++++++++++++++++++ README.md | 26 ++++++++++++++++++++++++++ main.py | 6 ++++++ pyproject.toml | 7 +++++++ uv.lock | 8 ++++++++ 7 files changed, 71 insertions(+) create mode 100644 .gitignore create mode 100644 .python-version create mode 100644 LICENSE create mode 100644 README.md create mode 100644 main.py create mode 100644 pyproject.toml create mode 100644 uv.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8d19362 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.venv +.env diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..6324d40 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.14 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fb5f6af --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 [fullname] + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8c4c044 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# Hello World Greeting Demo + +This repository demonstrates a simple "Hello, World!" greeting application. + +## Features + +- Prints a greeting message +- Easy to run and modify + +## Getting Started + +1. Clone the repository: + +2. Run the application: + ```bash + # Example for Python + python main.py + ``` + +## Contributing + +Feel free to open issues or submit pull requests for improvements. + +## License + +This project is licensed under the MIT License. \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..7d32a56 --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello, world!") + + +if __name__ == "__main__": + main() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0185ceb --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[project] +name = "hello-world" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.14" +dependencies = [] diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..28f63ed --- /dev/null +++ b/uv.lock @@ -0,0 +1,8 @@ +version = 1 +revision = 3 +requires-python = ">=3.14" + +[[package]] +name = "hello-world" +version = "0.1.0" +source = { virtual = "." }