Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghang1989 committed Apr 23, 2020
1 parent 546b248 commit 6079520
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: Hang Zhang
## Email: [email protected]
## Copyright (c) 2020
##
## LICENSE file in the root directory of this source tree
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

import io
import os
import subprocess

from setuptools import setup, find_packages

cwd = os.path.dirname(os.path.abspath(__file__))

version = '0.0.3'
try:
if not os.getenv('RELEASE'):
from datetime import date
today = date.today()
day = today.strftime("b%d%m%Y")
version += day
except Exception:
pass

def create_version_file():
global version, cwd
print('-- Building version ' + version)
version_path = os.path.join(cwd, 'resnest', 'version.py')
with open(version_path, 'w') as f:
f.write('"""This is resnest version file."""\n')
f.write("__version__ = '{}'\n".format(version))

requirements = [
'numpy',
'tqdm',
'nose',
'torch>=1.0.0',
'Pillow',
'scipy',
'requests',
]

if __name__ == '__main__':
create_version_file()
setup(
name="resnest",
version=version,
author="Hang Zhang",
author_email="[email protected]",
url="https://github.com/zhanghang1989/ResNeSt",
description="ResNeSt",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license='Apache-2.0',
install_requires=requirements,
packages=find_packages(exclude=["scripts", "examples", "tests"]),
package_data={'resnest': [
'LICENSE',
]},
)

0 comments on commit 6079520

Please sign in to comment.