-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·58 lines (55 loc) · 1.49 KB
/
setup.py
File metadata and controls
executable file
·58 lines (55 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for leetcode.py """
import runpy
from setuptools import find_packages, setup
_INFO = runpy.run_path('src/leetcode/_meta.py')
_SETUP_REQUIRES = [
'pytest-runner',
'setuptools-scm',
]
_TESTS_REQUIRE = [
'pytest',
'pytest-cov',
'pytest-isort',
'pytest-yapf3',
'pytest-timeout',
]
setup(
# Metadata
name='leetcode.py',
description='Python solutions of LeetCode',
url=_INFO['__url__'],
author=_INFO['__author__'],
author_email=_INFO['__email__'],
license=_INFO['__license__'],
use_scm_version={
'root': '..',
'relative_to': __file__,
},
# Package modules and data
packages=find_packages('src'),
package_dir={'': 'src'},
# Requires
python_requires='>=3.6',
install_requires=[],
setup_requires=_SETUP_REQUIRES,
tests_require=_TESTS_REQUIRE,
extras_require={
'dev': _SETUP_REQUIRES + _TESTS_REQUIRE,
},
# PyPI Metadata
keywords=['leetcode'],
platforms=['any'],
classifiers=[
# see: https://pypi.python.org/pypi?:action=list_classifiers
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)