-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
51 lines (47 loc) · 1.86 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
import io
import os
import re
from setuptools import setup, find_packages
scriptFolder = os.path.dirname(os.path.realpath(__file__))
os.chdir(scriptFolder)
# Find version info from module (without importing the module):
with open("src/pygcurse/__init__.py", "r") as fileObj:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fileObj.read(), re.MULTILINE
).group(1)
# Use the README.md content for the long description:
with io.open("README.md", encoding="utf-8") as fileObj:
long_description = fileObj.read()
setup(
name="pygcurse",
version=version,
url="https://github.com/asweigart/pygcurse",
author="Al Sweigart",
author_email="[email protected]",
description=("""Pygcurse (pronounced "pig curse") is a curses library emulator that runs on top of the Pygame framework."""),
long_description=long_description,
long_description_content_type="text/markdown",
license="BSD",
packages=find_packages(where="src"),
package_dir={"": "src"},
test_suite="tests",
install_requires=['pygame'],
keywords="pygame curses ncurses console text game 2D graphics",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)