-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
37 lines (31 loc) · 1014 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
from setuptools import setup
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
pip_session = PipSession()
with open('.version') as f:
VERSION = f.read()
def parse_reqs(path):
return [r.requirement for r in parse_requirements(path, session=pip_session)]
with open('README.md') as f:
DESCRIPTION = f.read()
setup(
name='numpy_ext',
version=VERSION,
author='3jane.com',
author_email='contact@3jane.com',
description='numpy extension',
long_description=DESCRIPTION,
long_description_content_type='text/markdown',
url='https://github.com/3jane/numpy_ext',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
py_modules=['numpy_ext'],
install_requires=parse_reqs('requirements.txt'),
extras_require={
'dev': parse_reqs('requirements.dev.txt'),
},
)