-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (40 loc) · 1.26 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
#!/usr/bin/python
import subprocess
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
# get all the git tags from the cmd line that follow our versioning pattern
# git_tags = subprocess.Popen(
# ["git", "tag", "--list", "v*[0-9]", "--sort=version:refname"],
# stdout=subprocess.PIPE,
# )
# tags = git_tags.stdout.read()
# git_tags.stdout.close()
# tags = tags.decode("utf-8").split("\n")
# tags.sort()
# print("-----")
# print(tags)
# PEP 440 won't accept the v in front, so here we remove it, strip the new line and decode the byte stream
# VERSION_FROM_GIT_TAG = tags[-1][1:] if len(tags) > 0 else "v0.0"
setup(
name="randalo",
# version=VERSION_FROM_GIT_TAG, # Required
version="0.1.0",
setup_requires=["setuptools>=18.0"],
packages=find_packages(exclude=["notebooks"]), # Required
install_requires=[
"numpy >= 1.17.5",
"scipy",
"torch",
"torch-linops",
],
description="",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/cvxgrp/randalo",
classifiers=[
"Programming Language :: Python :: 3",
],
author="Parth Nobel",
author_email="[email protected]",
)