Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
41 lines (35 loc) · 1.25 KB
/
Copy pathsetup.py
File metadata and controls
41 lines (35 loc) · 1.25 KB
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
importio
importimportlib.util
frompathlibimportPath
fromsetuptoolsimportsetup, find_packages
name="paperswithcode-client"
author="Viktor Kerkez"
author_email="alefnula@gmail.com"
url="https://github.com/paperswithcode/paperswithcode-client"
defget_version():
"""Import the version module and get the project version from it."""
version_py=Path(__file__).parent/"paperswithcode"/"version.py"
spec=importlib.util.spec_from_file_location("version", version_py)
version=importlib.util.module_from_spec(spec) # type: ignore
spec.loader.exec_module(version) # type: ignore
returnversion.__version__
setup(
name=name,
version=get_version(),
author=author,
author_email=author_email,
maintainer=author,
maintainer_email=author_email,
description="Python client for paperswithcode.com API.",
long_description=io.open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
url=url,
platforms=["Windows", "POSIX", "MacOSX"],
license="Apache-2.0",
packages=find_packages(),
install_requires=io.open("requirements.txt").read().splitlines(),
entry_points="""
[console_scripts]
pwc=paperswithcode.__main__:app
""",
)