2021-02-21 22:50:15 +03:00
|
|
|
import setuptools
|
2022-01-06 22:35:01 +03:00
|
|
|
import sys
|
2021-02-21 22:50:15 +03:00
|
|
|
|
|
|
|
with open("README.md", "r") as fh:
|
|
|
|
long_description = fh.read()
|
|
|
|
|
|
|
|
with open("requirements.txt") as f:
|
|
|
|
install_requires = f.readlines()
|
|
|
|
|
2022-01-06 22:35:01 +03:00
|
|
|
# add dataclasses backport for python 3.6
|
|
|
|
if sys.version_info.minor < 7:
|
|
|
|
install_requires.append("dataclasses")
|
|
|
|
|
2021-02-21 22:50:15 +03:00
|
|
|
# get version
|
|
|
|
env = {}
|
|
|
|
with open("pybryt/version.py") as f:
|
|
|
|
exec(f.read(), env)
|
|
|
|
version = env["__version__"]
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name = "pybryt",
|
|
|
|
version = version,
|
|
|
|
author = "Chris Pyles",
|
2021-03-10 19:57:23 +03:00
|
|
|
author_email = "pybryt-support@microsoft.com",
|
2021-02-21 22:50:15 +03:00
|
|
|
description = "Python auto-assessment library",
|
|
|
|
long_description = long_description,
|
|
|
|
long_description_content_type = "text/markdown",
|
2021-03-18 08:49:03 +03:00
|
|
|
url = "https://github.com/microsoft/pybryt",
|
2021-02-21 22:50:15 +03:00
|
|
|
license = "MIT",
|
|
|
|
packages = setuptools.find_packages(exclude=["test"]),
|
|
|
|
classifiers = [
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
],
|
|
|
|
install_requires=install_requires,
|
2021-05-26 07:00:46 +03:00
|
|
|
entry_points={
|
|
|
|
"console_scripts": ["pybryt=pybryt.cli:cli"]
|
|
|
|
},
|
2021-02-21 22:50:15 +03:00
|
|
|
)
|