forked from joshuarli/pylibgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (56 loc) · 1.9 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import os
from setuptools import find_packages
from setuptools import setup
version = "2.0.2"
url = "https://github.com/JoshuaRLi/pylibgen"
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md")) as f:
long_description = f.read()
with open(os.path.join(here, "requirements.txt")) as f:
install_requires = f.read()
with open(os.path.join(here, "requirements-dev.txt")) as f:
dev_requires = f.read()
setup(
name="pylibgen",
version=version,
description="Python interface to Library Genesis.",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
url=url,
download_url="{}/archive/v{}.tar.gz".format(url, version),
author="Joshua Li",
author_email="josh@jrl.ninja",
maintainer="Joshua Li",
maintainer_email="josh@jrl.ninja",
keywords=[
"libgen",
"library",
"genesis",
"search",
"download",
"books",
"ebooks",
"textbooks",
],
packages=find_packages(exclude=("tests",)),
python_requires=">=3.6",
install_requires=install_requires,
extras_require={
# linting and formatting tools (flake8, black) we let pre-commit pin versions
# build and publishing tools (setuptools, wheel, twine) we always want latest (see makefile)
# only dev dependencies that should be pinned in extras (imo) is testing (pytest) and pre-commit
"dev": dev_requires,
},
classifiers=[
"Development Status :: 7 - Inactive",
"Intended Audience :: Developers",
"Topic :: Software Development",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)