This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
setup.py
54 lines (44 loc) · 1.5 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
54
import os
import platform
import sys
from setuptools import find_packages, setup
about_path = os.path.join(os.path.dirname(__file__), "revscoring/about.py")
exec(compile(open(about_path).read(), about_path, "exec"))
if sys.version_info <= (3, 0):
print("Revscoring needs Python 3 to run properly. Your version is " +
platform.python_version())
sys.exit(1)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def requirements(fname):
return [line.strip()
for line in open(os.path.join(os.path.dirname(__file__), fname))]
setup(
python_requires=">=3",
name=__name__, # noqa
version=__version__, # noqa
author=__author__, # noqa
author_email=__author_email__, # noqa
description=__description__, # noqa
url=__url__, # noqa
license=__license__, # noqa
entry_points={
'console_scripts': [
'revscoring = revscoring.revscoring:main',
],
},
packages=find_packages(),
long_description=read('README.md'),
long_description_content_type="text/markdown",
install_requires=requirements("requirements.txt"),
include_package_data=True,
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
],
)