-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (34 loc) · 912 Bytes
/
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
import os
import sys, os.path, platform, warnings
from distutils import log
from distutils.core import setup, Command
VERSION = "0.0.1"
if "GITHUB_RUN_ID" in os.environ:
VERSION += "." + os.environ["GITHUB_RUN_ID"]
try:
from wheel.bdist_wheel import bdist_wheel
except ImportError:
bdist_wheel = None
cmdclass = {
}
if bdist_wheel:
cmdclass['bdist_wheel'] = bdist_wheel
setup(
name = "pyyaml-srcinfo-loader",
version=VERSION,
packages=['yaml_srcinfo_loader'],
package_dir = {'' : 'src'},
author = "Matthew Ballance",
author_email = "[email protected]",
description = ("Provides a loader for PyYAML that annotates source info on returned elements"),
license = "Apache 2.0",
keywords = ["PyYAML"],
url = "https://github.com/mballance/pyyaml-srcinfo-loader",
setup_requires=[
'setuptools_scm',
],
cmdclass=cmdclass,
install_requires=[
'pyyaml',
],
)