setup   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 180
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 35
dl 0
loc 180
rs 10
c 0
b 0
f 0
1
"""A setuptools based setup module.
2
See:
3
https://packaging.python.org/en/latest/distributing.html
4
https://github.com/pypa/sampleproject
5
"""
6
7
# Always prefer setuptools over distutils
8
from setuptools import setup, find_packages
9
# To use a consistent encoding
10
from codecs import open
11
from os import path
12
13
here = path.abspath(path.dirname(__file__))
14
15
# Get the long description from the README file
16
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
17
    long_description = f.read()
18
19
# Arguments marked as "Required" below must be included for upload to PyPI.
20
# Fields marked as "Optional" may be commented out.
21
22
setup(
23
    # This is the name of your project. The first time you publish this
24
    # package, this name will be registered for you. It will determine how
25
    # users can install this project, e.g.:
26
    #
27
    # $ pip install sampleproject
28
    #
29
    # And where it will live on PyPI: https://pypi.org/project/sampleproject/
30
    #
31
    # There are some restrictions on what makes a valid project name
32
    # specification here:
33
    # https://packaging.python.org/specifications/core-metadata/#name
34
    name='knowyourdata',  # Required
35
36
    # Versions should comply with PEP 440:
37
    # https://www.python.org/dev/peps/pep-0440/
38
    #
39
    # For a discussion on single-sourcing the version across setup.py and the
40
    # project code, see
41
    # https://packaging.python.org/en/latest/single_source_version.html
42
    version='0.1.0a3',  # Required
43
44
    # This is a one-line description or tagline of what your project does. This
45
    # corresponds to the "Summary" metadata field:
46
    # https://packaging.python.org/specifications/core-metadata/#summary
47
    description='A package to display basic info about your data',  # Required
48
49
    # This is an optional longer description of your project that represents
50
    # the body of text which users will see when they visit PyPI.
51
    #
52
    # Often, this is the same as your README, so you can just read it in from
53
    # that file directly (as we have already done above)
54
    #
55
    # This field corresponds to the "Description" metadata field:
56
    # https://packaging.python.org/specifications/core-metadata/#description-optional
57
    long_description=long_description,  # Optional
58
59
    # This should be a valid link to your project's main homepage.
60
    #
61
    # This field corresponds to the "Home-Page" metadata field:
62
    # https://packaging.python.org/specifications/core-metadata/#home-page-optional
63
    url='https://github.com/mubdi/knowyourdata',  # Optional
64
65
    # This should be your name or the name of the organization which owns the
66
    # project.
67
    author='Mubdi Rahman',  # Optional
68
69
    # This should be a valid email address corresponding to the author listed
70
    # above.
71
    author_email='[email protected]',  # Optional
72
73
    # Classifiers help users find your project by categorizing it.
74
    #
75
    # For a list of valid classifiers, see
76
    # https://pypi.python.org/pypi?%3Aaction=list_classifiers
77
    classifiers=[  # Optional
78
        # How mature is this project? Common values are
79
        #   3 - Alpha
80
        #   4 - Beta
81
        #   5 - Production/Stable
82
        'Development Status :: 3 - Alpha',
83
84
        # Indicate who your project is intended for
85
        'Intended Audience :: Science/Research',
86
        'Topic :: Scientific/Engineering :: Information Analysis',
87
88
        # Pick your license as you wish
89
        'License :: OSI Approved :: Apache Software License',
90
91
        # Specify the Python versions you support here. In particular, ensure
92
        # that you indicate whether you support Python 2, Python 3 or both.
93
        'Programming Language :: Python :: 2',
94
        'Programming Language :: Python :: 2.7',
95
        'Programming Language :: Python :: 3',
96
        'Programming Language :: Python :: 3.4',
97
        'Programming Language :: Python :: 3.5',
98
        'Programming Language :: Python :: 3.6',
99
        'Programming Language :: Python :: 3.7'
100
    ],
101
102
    # This field adds keywords for your project which will appear on the
103
    # project page. What does your project relate to?
104
    #
105
    # Note that this is a string of words separated by whitespace, not a list.
106
    keywords='know your data description ',  # Optional
107
108
    # You can just specify package directories manually here if your project is
109
    # simple. Or you can use find_packages().
110
    #
111
    # Alternatively, if you just want to distribute a single Python file, use
112
    # the `py_modules` argument instead as follows, which will expect a file
113
    # called `my_module.py` to exist:
114
    #
115
    #   py_modules=["my_module"],
116
    #
117
    packages=find_packages(exclude=['contrib', 'docs', 'tests']),  # Required
118
119
    # This field lists other packages that your project depends on to run.
120
    # Any package you put here will be installed by pip when your project is
121
    # installed, so they must be valid existing projects.
122
    #
123
    # For an analysis of "install_requires" vs pip's requirements files see:
124
    # https://packaging.python.org/en/latest/requirements.html
125
    install_requires=['numpy', 'ipython'],  # Optional
126
127
    # List additional groups of dependencies here (e.g. development
128
    # dependencies). Users will be able to install these using the "extras"
129
    # syntax, for example:
130
    #
131
    #   $ pip install sampleproject[dev]
132
    #
133
    # Similar to `install_requires` above, these must be valid existing
134
    # projects.
135
    extras_require={  # Optional
136
        'dev': ['check-manifest'],
137
        'test': ['coverage'],
138
    },
139
140
    # If there are data files included in your packages that need to be
141
    # installed, specify them here.
142
    #
143
    # If using Python 2.6 or earlier, then these have to be included in
144
    # MANIFEST.in as well.
145
    # package_data={  # Optional
146
    #     'sample': ['package_data.dat'],
147
    # },
148
149
    # Although 'package_data' is the preferred approach, in some case you may
150
    # need to place data files outside of your packages. See:
151
    # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
152
    #
153
    # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
154
    # data_files=[('my_data', ['data/data_file'])],  # Optional
155
156
    # To provide executable scripts, use entry points in preference to the
157
    # "scripts" keyword. Entry points provide cross-platform support and allow
158
    # `pip` to create the appropriate form of executable for the target
159
    # platform.
160
    #
161
    # For example, the following would provide a command called `sample` which
162
    # executes the function `main` from this package when invoked:
163
    # entry_points={  # Optional
164
    #     'console_scripts': [
165
    #         'sample=sample:main',
166
    #     ],
167
    # },
168
169
    # List additional URLs that are relevant to your project as a dict.
170
    #
171
    # This field corresponds to the "Project-URL" metadata fields:
172
    # https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
173
    #
174
    # Examples listed include a pattern for specifying where the package tracks
175
    # issues, where the source is hosted, where to say thanks to the package
176
    # maintainers, and where to support the project financially. The key is
177
    # what's used to render the link text on PyPI.
178
    project_urls={  # Optional
179
        'Documentation': 'http://knowyourdata.readthedocs.io/'
180
        #     'Bug Reports': 'https://github.com/pypa/sampleproject/issues',
181
        #     'Funding': 'https://donate.pypi.org',
182
        #     'Say Thanks!': 'http://saythanks.io/to/example',
183
        #     'Source': 'https://github.com/pypa/sampleproject/',
184
    },
185
)
186