|
- #!/usr/bin/env python3
- # -*- coding: utf-8; mode: python; tab-width: 4; indent-tabs-mode: nil -*-
- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
- #
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
- # Version 2, December 2004
- #
- # Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
- #
- # Everyone is permitted to copy and distribute verbatim or modified
- # copies of this license document, and changing it is allowed as long
- # as the name is changed.
- #
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
- # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
- #
- # 0. You just DO WHAT THE FUCK YOU WANT TO.
- #
- # Copyright (c) 2020- donkey <anjingyu_ws@foxmail.com>
-
- import os
- from setuptools import setup
-
- __author__ = ['"donkey" <anjingyu_ws@foxmail.com.com>']
- SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-
-
- def readme():
- return open(os.path.join(SCRIPT_DIR, "README.md"), encoding='utf-8').read()
-
-
- def version() -> str:
- filename = os.path.join(SCRIPT_DIR, 'nexus_tools', '__init__.py')
-
- content = open(filename).read()
- version = re.search(r"""__version__\s*=\s*['"]([0-9a-z.-]+)['"]""", content).group(1)
-
- return version
-
-
- setup(name='nexus-tools',
- version=version(),
- description="Simple uploader/downloader for Nexus3 Service",
- long_description=readme(),
- classifiers=[
- "Development Status :: 5 - Production/Stable",
- "Environment :: Console", "Intended Audience :: Developers",
- "License :: OSI Approved :: MIT License",
- "Operating System :: OS Independent",
- "Programming Language :: Python :: 3 :: Only", "Topic :: Internet"
- ],
- keywords="nexus uploader downloader",
- author="donkey",
- author_email="anjingyu_ws@foxmail.com>",
- license="WTFPL 2",
- packages=['nexus_tools'],
- python_requires='~=3.0',
- entry_points={
- 'console_scripts':
- ['upload-to-nexus=nexus_tools.upload_to_nexus:main',
- 'download-from-nexus=nexus_tools.nexus_downloader:main']
- },
- install_requires=['requests'],
- zip_safe=False)
|