forked from parmentelat/nbautoeval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·53 lines (47 loc) · 1.72 KB
/
setup.py
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
#!/usr/bin/env python3
from pathlib import Path
import setuptools
def contents(localfile):
with (Path(__file__).parent / localfile).open() as f:
return f.read()
# https://packaging.python.org/guides/single-sourcing-package-version/
# set __version__ by read & exec of the python code
# this is better than an import that would otherwise try to
# import the whole package, and fail if a required module is not yet there
VERSION_FILE = Path(__file__).parent / "nbautoeval" / "version.py"
ENV = {}
with VERSION_FILE.open() as f:
exec(f.read(), ENV) # pylint: disable=w0122
__version__ = ENV['__version__']
setuptools.setup(
name = "nbautoeval",
version = __version__,
author = "Thierry Parmentelat",
author_email = "[email protected]",
description = "A mini framework to implement auto-evaluated exercises in Jupyter notebooks",
long_description = contents("README.md"),
long_description_content_type = "text/markdown",
license = "CC BY-SA 4.0",
keywords = "jupyter notebooks exercises",
url = "https://github.com/parmentelat/nbautoeval",
packages = ['nbautoeval', 'nbautoeval.grading'],
install_requires = [
'ipython',
'ipywidgets',
'numpy',
'PyYAML',
'myst_parser',
],
entry_points = {
'console_scripts': [
'nbae-quiz-scan = nbautoeval.grading.quiz_scan:main',
],
},
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Programming Language :: Python",
# pypi won't let then in
# "Framework :: Jupyter",
],
)