mirror of
https://github.com/derrod/legendary.git
synced 2025-01-09 06:05:28 +00:00
Switch from setup.py to new pyproject.toml
This commit is contained in:
parent
a70ac2d1f9
commit
8684eaf137
51
pyproject.toml
Normal file
51
pyproject.toml
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
packages = [
|
||||||
|
"legendary",
|
||||||
|
"legendary.api",
|
||||||
|
"legendary.downloader",
|
||||||
|
"legendary.downloader.mp",
|
||||||
|
"legendary.lfs",
|
||||||
|
"legendary.models",
|
||||||
|
"legendary.utils",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.setuptools.dynamic]
|
||||||
|
version = {attr = "legendary.__version__"}
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "legendary"
|
||||||
|
description = "Free and open-source replacement for the Epic Games Launcher application"
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.9"
|
||||||
|
license = {file = "LICENSE"}
|
||||||
|
authors = [
|
||||||
|
{name = "Rodney", email = "rodney@rodney.io" }
|
||||||
|
]
|
||||||
|
classifiers = [
|
||||||
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Operating System :: POSIX :: Linux",
|
||||||
|
"Operating System :: Microsoft",
|
||||||
|
"Intended Audience :: End Users/Desktop",
|
||||||
|
"Topic :: Games/Entertainment",
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
|
]
|
||||||
|
dependencies = [
|
||||||
|
"requests < 3.0"
|
||||||
|
]
|
||||||
|
dynamic = ["version"]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
webview = ["pywebview >= 3.4"]
|
||||||
|
webview_gtk = ["pywebview>=3.4", "PyGObject"]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
"Homepage" = "https://github.com/derrod/legendary"
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
legendary = "legendary.cli:main"
|
61
setup.py
61
setup.py
|
@ -1,61 +0,0 @@
|
||||||
# !/usr/bin/env python
|
|
||||||
# coding: utf-8
|
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from setuptools import setup
|
|
||||||
|
|
||||||
from legendary import __version__ as legendary_version
|
|
||||||
|
|
||||||
if sys.version_info < (3, 9):
|
|
||||||
sys.exit('python 3.9 or higher is required for legendary')
|
|
||||||
|
|
||||||
with open("README.md", "r") as fh:
|
|
||||||
long_description_l = fh.readlines()
|
|
||||||
del long_description_l[2:5] # remove discord/twitter link and logo
|
|
||||||
long_description = ''.join(long_description_l)
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name='legendary-gl',
|
|
||||||
version=legendary_version,
|
|
||||||
license='GPL-3',
|
|
||||||
author='Rodney',
|
|
||||||
author_email='rodney@rodney.io',
|
|
||||||
packages=[
|
|
||||||
'legendary',
|
|
||||||
'legendary.api',
|
|
||||||
'legendary.downloader',
|
|
||||||
'legendary.downloader.mp',
|
|
||||||
'legendary.lfs',
|
|
||||||
'legendary.models',
|
|
||||||
'legendary.utils',
|
|
||||||
],
|
|
||||||
entry_points=dict(
|
|
||||||
console_scripts=['legendary = legendary.cli:main']
|
|
||||||
),
|
|
||||||
install_requires=[
|
|
||||||
'requests<3.0',
|
|
||||||
'setuptools',
|
|
||||||
'wheel'
|
|
||||||
],
|
|
||||||
extras_require=dict(
|
|
||||||
webview=['pywebview>=3.4'],
|
|
||||||
webview_gtk=['pywebview>=3.4', 'PyGObject']
|
|
||||||
),
|
|
||||||
url='https://github.com/derrod/legendary',
|
|
||||||
description='Free and open-source replacement for the Epic Games Launcher application',
|
|
||||||
long_description=long_description,
|
|
||||||
long_description_content_type="text/markdown",
|
|
||||||
python_requires='>=3.9',
|
|
||||||
classifiers=[
|
|
||||||
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
|
|
||||||
'Programming Language :: Python',
|
|
||||||
'Programming Language :: Python :: 3.9',
|
|
||||||
'Operating System :: POSIX :: Linux',
|
|
||||||
'Operating System :: Microsoft',
|
|
||||||
'Intended Audience :: End Users/Desktop',
|
|
||||||
'Topic :: Games/Entertainment',
|
|
||||||
'Development Status :: 4 - Beta',
|
|
||||||
]
|
|
||||||
)
|
|
Loading…
Reference in a new issue