Skip to content
Snippets Groups Projects
Commit e4a256d6 authored by Marek Chrastina's avatar Marek Chrastina
Browse files

Add setup.py and __init__.py

parent ef9d4d04
No related branches found
No related tags found
No related merge requests found
Pipeline #7889 failed
......@@ -631,7 +631,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
pip-upgradedependencies
pipupgradedependencies
Copyright (C) 2019 IT4Innovations National Supercomputing Center,
VSB - Technical University of Ostrava, Czech Republic
......@@ -653,7 +653,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
pip-upgradedependencies Copyright (C) 2019
pipupgradedependencies Copyright (C) 2019
IT4Innovations National Supercomputing Center,
VSB - Technical University of Ostrava, Czech Republic
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
......
# pip-upgradedependencies
# pipupgradedependencies
Pip-upgradedependencies upgrades all outdated packages with respect to existing dependencies.
Pipupgradedependencies upgrades all outdated packages with respect to existing dependencies.
Python 2.7 is required.
## Usage
```console
pip-upgradedependencies
pipupgradedependencies
```
__import__('pkg_resources').declare_namespace(__name__)
......@@ -18,10 +18,11 @@ def find_dependencies(json_input, package):
for item_val in find_dependencies(item, package):
yield item_val
def arg_parse():
parser = argparse.ArgumentParser(description="Pip-upgradedependencies upgrades all outdated packages with respect to existing dependencies.")
parser = argparse.ArgumentParser(description="Pipupgradedependencies upgrades all outdated packages with respect to existing dependencies.")
parser_args = parser.parse_args()
def main():
arg_parse()
os.environ["PYTHONWARNINGS"] = "ignore:DEPRECATION"
try:
......@@ -70,5 +71,4 @@ def main():
print "Done."
if __name__ == "__main__":
arg_parse()
main()
setup.py 0 → 100644
from setuptools import setup, find_packages
setup(
name='pipupgradedependencies',
version='0.0.1',
description='Pipupgradedependencies upgrades all outdated packages with respect to existing dependencies.',
classifiers=[
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
],
author='IT4Innovations',
author_email='support@it4i.cz',
url='https://code.it4i.cz/sccs/pip-upgradedependencies',
license='GPLv3+',
packages=find_packages(),
namespace_packages=['pipupgradedependencies'],
zip_safe=False,
entry_points={
'console_scripts': [
'pipupgradedependencies = pipupgradedependencies.pipupgradedependencies:main',
]
},
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment