-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (52 loc) · 2.02 KB
/
setup.py
File metadata and controls
58 lines (52 loc) · 2.02 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import setuptools
from setuptools import setup
import sys
from pathlib import Path
import datetime
year = datetime.date.today().year
__name__ = "egs-api-py"
__version__ = "1.0.0" # Update this version as needed
__author__ = "Laurent Ongaro"
__codename__ = "v" + __version__
__author_email__ = 'laurent@gameamea.com'
__description__ = 'A minimal asynchronous interface to Epic Games Store in python new FAB marketplace API.'
__copyright__ = f'{year} {__author__}'
__license__ = 'MIT'
__url__ = 'https://github.com/LaurentOngaro/egs-api-py'
if sys.version_info < (3, 9):
sys.exit('python 3.9 or higher is required for this project')
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
current_folder = Path(__file__).parent
# Read __long_description__ from README.md
######################
__long_description__ = Path.joinpath(current_folder, 'README.md').read_text()
# add information about the version and codename in the PyPI page because codename s not available by default
__long_description__ += f'\n\n {__name__} ## version:{__version__} ## codename: {__codename__}'
# __long_description__ = ''.join(__long_description__[8:16]) # keep only description text
setup(
name=__name__,
version=__version__,
license=__license__,
author=__author__,
author_email=__author_email__,
description=__description__,
long_description=__long_description__,
long_description_content_type='text/markdown',
url=__url__,
packages=setuptools.find_packages(),
package_data={'': ['assets/*']},
python_requires='>=3.9',
classifiers=[
'License :: OSI Approved :: MIT License', #
'Programming Language :: Python :: 3.9', #
'Programming Language :: Python :: 3.10', #
'Programming Language :: Python :: 3.11', #
'Programming Language :: Python :: 3.12', #
'Operating System :: OS Independent', #
#'Development Status :: 4 - Beta'
'Development Status :: 5 - Production/Stable'
]
)
if __name__ == '__main__':
setup()