Skip to content

Commit 637a346

Browse files
Danyaal MasoodDanyaal Masood
authored andcommitted
Refactor setup.cfg
1 parent 3fb0d9f commit 637a346

File tree

2 files changed

+37
-51
lines changed

2 files changed

+37
-51
lines changed

setup.cfg

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,43 @@ classifiers =
2020
Topic :: Internet :: WWW/HTTP :: WSGI :: Application
2121
Topic :: Software Development :: Libraries
2222

23+
[options]
24+
setup_requires =
25+
six
26+
numpy
27+
install_requires =
28+
requests
29+
importlib-metadata; python_version < "3.8"
30+
apscheduler
31+
babel
32+
cachelib
33+
click>7.1.0
34+
dataclasses; python_version < "3.8"
35+
flask
36+
gevent
37+
gitpython
38+
inflection
39+
ipykernel
40+
ipython
41+
ipython_genutils
42+
jupytext>=1.2.0
43+
matplotlib
44+
nbconvert
45+
nbformat
46+
pandas
47+
papermill
48+
pymongo
49+
python-dateutil
50+
requests
51+
retrying
52+
stashy
53+
Werkzeug<2.2
54+
55+
[options.extras_require]
56+
prometheus = prometheus_client
57+
docs = docutils<0.18; sphinx<3.0.0; numpydoc; sphinxcontrib-httpdomain; sphinxcontrib-httpdomain; sphinx-click
58+
test = openpyxl; pytest; mock; pytest-cov; pytest-timeout; pytest-xdist; pytest-server-fixtures; freezegun; hypothesis>=3.83.2
59+
2360
[flake8]
2461
ignore = F401,E203,W504,W503
2562
max-line-length = 160

setup.py

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -21,64 +21,13 @@ def get_long_description():
2121
return desc
2222

2323

24-
test_requirements = [
25-
"openpyxl",
26-
"pytest",
27-
"mock",
28-
"pytest-cov",
29-
"pytest-timeout",
30-
"pytest-xdist",
31-
"pytest-server-fixtures",
32-
"freezegun",
33-
"hypothesis>=3.83.2",
34-
]
35-
3624
setup(
3725
version=get_version(),
3826
packages=find_packages(exclude=["tests", "tests.*", "benchmarks"]),
3927
namespace_packages=["notebooker"],
40-
setup_requires=["six", "numpy"],
4128
python_requires=">=3.5",
4229
zip_safe=False,
4330
include_package_data=True,
44-
install_requires=[
45-
"apscheduler",
46-
"babel",
47-
"cachelib",
48-
"click>7.1.0",
49-
'dataclasses; python_version < "3.8"',
50-
"flask",
51-
"gevent",
52-
"gitpython",
53-
"inflection",
54-
"ipykernel",
55-
"ipython",
56-
"ipython_genutils",
57-
"jupytext>=1.2.0",
58-
"matplotlib",
59-
"nbconvert",
60-
"nbformat",
61-
"pandas",
62-
"papermill",
63-
"pymongo",
64-
"python-dateutil",
65-
"requests",
66-
"retrying",
67-
"stashy",
68-
"Werkzeug<2.2",
69-
],
70-
extras_require={
71-
"prometheus": ["prometheus_client"],
72-
"test": test_requirements,
73-
"docs": [
74-
"docutils<0.18",
75-
"sphinx<3.0.0",
76-
"numpydoc",
77-
"sphinxcontrib-httpdomain",
78-
"sphinx-click"
79-
], # Sphinx v3 doesn't play nicely with Flask, yet.
80-
},
81-
tests_require=test_requirements,
8231
entry_points={
8332
"console_scripts": [
8433
"notebooker-cli = notebooker._entrypoints:base_notebooker",

0 commit comments

Comments
 (0)