generated from navdeep-G/samplemod
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·66 lines (59 loc) · 2.1 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
55
56
57
58
59
60
61
62
63
64
65
66
# -*- coding: utf-8 -*-
# Learn more: https://github.com/kennethreitz/setup.py
from setuptools import setup
import os
import re
VERSIONFILE="mlspeclib/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
with open("README.md") as f:
readme = f.read()
def package_files():
paths = []
for (path, _, filenames) in os.walk("mlspeclib/schemas"):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
extra_files = package_files()
setup(
name="mlspeclib",
version=verstr,
description="MLSpec helper library makes using metadata in ML workflows easier.",
long_description=readme,
long_description_content_type="text/markdown",
author="David Aronchick",
author_email="aronchick@gmail.com",
url="https://github.com/mlspec/mlspec-lib",
license="MIT License",
keywords=["MLSpec", "Machine Learning"], # Keywords that define your package best
install_requires=[
"wheel",
"pyyaml",
"marshmallow",
"uritools",
"semver",
"python-box",
"gremlinpython",
"pymysql",
"gitpython",
],
packages=["mlspeclib", "mlspeclib.experimental"],
include_package_data=True,
package_data={"": extra_files},
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta", # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
"Intended Audience :: Developers", # Define that your audience are developers
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License", # Again, pick a license
"Programming Language :: Python :: 3", # Specify which pyhton versions that you want to support
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
)