Skip to content

Commit

Permalink
Merge pull request #550 from jpopelka/rebase
Browse files Browse the repository at this point in the history
Few insignificant updates
  • Loading branch information
jpopelka authored Nov 23, 2021
2 parents d9824d7 + 95069d7 commit 15b64f2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 55 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@

The simplest python CLI tool used to demonstrate packit service functionality. It will make your day.

```
$ hello world!
Hello world!
```

$ hello world!
Hello world!

## How to?

Just open a pull request on this repository and packit service will build your changes and provide an RPM repository using your pull request as a source.
Just open a pull request on this repository and packit service will build your changes
and provide an RPM repository using your pull request as a source.

Follow the steps provided by the packit service and then install this tool like this:
```bash
$ dnf install hello
```

$ dnf install hello
27 changes: 3 additions & 24 deletions hello_world/__init__.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
#!/usr/bin/python3

# MIT License
#
# Copyright (c) 2018-2019 Red Hat, Inc.

# 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.
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT

__version__ = "0.1.0"

Expand All @@ -36,9 +17,7 @@ def usage():

def main():
args_n = len(sys.argv)
if args_n <= 1:
usage()
elif args_n > 2:
if args_n <= 1 or args_n > 2:
usage()
print(f"Hello {sys.argv[1]}")

Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
name = hello
version = 0.1.0
url = https://github.com/packit-service/hello
url = https://github.com/packit/hello
description = Nice and a polite tool
long_description = file: README.md
long_description_content_type = text/markdown
Expand All @@ -17,6 +17,8 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
keywords =
hello

Expand Down
23 changes: 2 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
#!/usr/bin/python3

# MIT License
#
# Copyright (c) 2018-2019 Red Hat, Inc.

# 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.
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT

from setuptools import setup

Expand Down

0 comments on commit 15b64f2

Please sign in to comment.