Skip to content

Commit 97ca228

Browse files
Create setup.py
1 parent 42111a5 commit 97ca228

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/setup.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import io
2+
import re
3+
from setuptools import setup, find_packages
4+
5+
from irt import __version__
6+
7+
def read(file_path):
8+
with io.open(file_path, 'r', encoding='utf-8') as f:
9+
return f.read()
10+
11+
12+
readme = read('README.rst')
13+
# вычищаем локальные версии из файла requirements (согласно PEP440)
14+
requirements = '\n'.join(
15+
re.findall(r'^([^\s^+]+).*$',
16+
read('requirements.txt'),
17+
flags=re.MULTILINE))
18+
19+
20+
setup(
21+
# metadata
22+
name='irt',
23+
version=__version__,
24+
license='MIT',
25+
author='Matvei Kreinin, Maria Nikitina, Petr Babkin, Iryna Zabarianska',
26+
author_email="kreinin.mv@phystech.edu, nikitina.mariia@phystech.edu, babkin.pk@phystech.edu, akshiira@yandex.ru",
27+
description='Implicit Reparametrization Trick',
28+
long_description=readme,
29+
url='https://github.com/intsystems/implicit-reparameterization-trick',
30+
31+
# options
32+
packages=find_packages(),
33+
install_requires=requirements,
34+
)

0 commit comments

Comments
 (0)