-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
49 lines (42 loc) · 1.45 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
import os
import re
import setuptools
def read_version():
__PATH__ = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(__PATH__, 'upscaler/__init__.py')) as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
f.read(), re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find __version__ string")
# get project version
__version__ = read_version()
# get project long description
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# get project requirements list
with open("requirements.txt", "r", encoding="utf-8") as fh:
packages = fh.read().split("/n")
setuptools.setup(
name="upscaler",
version=__version__,
author='RIA.com',
author_email='anna.hulita@ria.com',
description="RIA upscaler package",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ria-com/upscaler.git",
packages=setuptools.find_packages(),
package_data={
'': ['*.yaml'],
},
install_requires=packages,
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
"Operating System :: OS Independent",
],
keywords='upscaler super-resolution basicsr ria-com ria.com ria',
python_requires='>=3.6'
)