-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (41 loc) · 1.53 KB
/
Copy pathsetup.py
File metadata and controls
46 lines (41 loc) · 1.53 KB
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
import os
import setuptools
from packaging.version import Version
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt") as f:
required = f.read().splitlines()
version_string = os.environ.get("MVG_RELEASE_VERSION", "")
if version_string:
# Parse release version from env variable.
# This will only happen if we are running as part of the pypi workflow
# Will throw an error if version string is not valid
version = Version(version_string)
else:
# Allow for dev environment installation through pip install -e .
version = Version("0.0.0.dev0")
setuptools.setup(
name="va-mvg",
version=str(version),
author="Viking Analytics",
author_email="info@vikinganalytics.se",
description="MultiViz Analytics Engine library",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/vikinganalytics/mvg",
package_dir={"": "."},
packages=setuptools.find_packages(where=".", include=["mvg", "mvg.*"]),
license="LICENSE",
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
python_requires=">=3.6",
install_requires=required,
)