Debian Codegraph @

setup.py

raw symbols SCIP
1 # python
2 # -*- coding: utf-8 -*-
3
4 """Setup module for helpdev.
5
6 Since:
7 2019/04/20
8
9 Authors:
10 - Daniel Cosmo Pizetta <[email protected]>
11 """
12
13 import codecs
14 import os
15 import re
16
17 from setuptools import find_packages, setup
18
19
20 def find_version(*file_paths):
21 """Find version in a Python file, searching for the __version__."""
22 version_file = read(*file_paths)
23 version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
24 version_file, re.M)
25 if version_match:
26 return version_match.group(1)
27 raise RuntimeError("Unable to find version string.")
28
29
30 def read(*parts):
31 """Read files."""
32 # intentionally *not* adding an encoding option to open, See:
33 # https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
34 here = os.path.abspath(os.path.dirname(__file__))
35 return codecs.open(os.path.join(here, *parts), 'r').read()
36
37
38 _long_description = read('README.rst')
39 _version = find_version("helpdev", "__init__.py")
40
41 _classifiers = [
42 'Development Status :: 4 - Beta',
43 'Environment :: Console',
44 'Intended Audience :: Customer Service',
45 'Intended Audience :: End Users/Desktop',
46 'Intended Audience :: Developers',
47 'License :: OSI Approved :: MIT License',
48 'Natural Language :: English',
49 'Operating System :: MacOS',
50 'Operating System :: Microsoft :: Windows',
51 'Operating System :: POSIX',
52 'Programming Language :: Python :: 3.6',
53 'Programming Language :: Python :: 3.7',
54 'Programming Language :: Python :: 3.8',
55 'Topic :: Documentation',
56 'Topic :: Software Development :: Bug Tracking',
57 'Topic :: Software Development :: Documentation',
58 'Topic :: Software Development :: Debuggers',
59 'Topic :: Software Development :: Libraries',
60 'Topic :: Software Development :: Testing',
61 'Topic :: Terminals']
62
63 _requires = ['importlib_metadata;python_version<"3.8"']
64
65 setup(name='helpdev',
66 version=_version,
67 description='HelpDev - Extracts information about the Python environment easily.',
68 long_description=_long_description,
69 license='MIT',
70 license_file='LICENSE.rst',
71 author='Daniel Cosmo Pizetta',
72 author_email='[email protected]',
73 maintainer='Daniel Cosmo Pizetta',
74 maintainer_email='[email protected]',
75 packages=find_packages(),
76 classifiers=_classifiers,
77 install_requires=_requires,
78 extras_require={
79 'memory_info': ['psutil>=5.6'],
80 },
81 include_package_data=True,
82 entry_points={"console_scripts": ["helpdev=helpdev.__main__:main"]},
83 url='https://gitlab.com/dpizetta/helpdev',
84 project_urls={
85 "Issues": "https://gitlab.com/dpizetta/helpdev/issues",
86 "Docs": "https://helpdev.readthedocs.io/en/stable/index.html",
87 }
88 )