forked from jkowa/pcars2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
40 lines (37 loc) · 1.13 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
from setuptools import setup, find_packages
import re
import sys
VERSIONFILE = "src/pcars2/_version.py"
verstr = "unknown"
try:
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
except EnvironmentError:
print("unable to find version in %s" % (VERSIONFILE,))
raise RuntimeError("if %s exists, it is required to be well-formed" % (VERSIONFILE,))
install_requires = ["binio"]
if sys.version_info < (3, 4):
install_requires.append("enum34")
setup(
name="pcars2",
version=verstr,
description="Project CARS V2 UDP feed client",
author="James Muscat, Jacek Kowalski",
author_email="[email protected]",
url="https://github.com/jkowa/pcars2",
packages=find_packages("src", exclude=["*.tests"]),
package_dir={"": "src"},
long_description="""
pcars2 is a Python client for Project CARS's V2 UDP data feed.
""",
setup_requires=["nose>=1.0"],
tests_require=[],
install_requires=install_requires,
entry_points={
"console_scripts": [
],
}
)