forked from Tenchi2xh/pokedex-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·56 lines (50 loc) · 1.64 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
# -*- encoding: utf-8 -*-
from setuptools import setup, find_packages
def get_version(relpath):
"""Read version info from a file without importing it"""
from os.path import dirname, join
root = dirname(__file__)
for line in open(join(root, relpath), "rb"):
# encoding is not passed to open() parameter, because
# it is incompatible with Python 2
line = line.decode("utf-8")
if "__version__" in line:
if '"' in line:
return line.split('"')[1]
# readme_file = open("README_PYPI.rst", "r")
VERSION = get_version("pokedex/main.py")
# README = readme_file.read()
# readme_file.close()
setup(
name="pokedex",
packages=find_packages(),
version=VERSION,
description="Pokédex CLI",
# long_description=README,
author="calacuda",
# author_email="[email protected]",
url="https://github.com/calacuda/pokedex-cli",
download_url="https://github.com/calacuda/pokedex-cli",
keywords=["pokedex", "pokemon", "terminal", "cli"],
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10"
"Programming Language :: Python :: 3.11"
"Programming Language :: Python :: 3.12"
"Programming Language :: Python :: 3.13"
],
install_requires=["Pillow", "click", ],
extras_require={
"test": ["pytest"]
},
entry_points={
"console_scripts": [
"pokedex = pokedex.main:pokedex"
]
},
package_data={
"pokedex": ["resources/icons/*.png"]
}
)