Migrate setup to pep517
This commit is contained in:
parent
7751b5812c
commit
22f89720f6
|
@ -1 +1,3 @@
|
|||
negromate.songs.egg-info
|
||||
/negromate.songs.egg-info
|
||||
/build
|
||||
/dist
|
||||
|
|
11
README.md
11
README.md
|
@ -1,4 +1,11 @@
|
|||
Negro Mate Songs
|
||||
==================
|
||||
|
||||
================
|
||||
NegroMate's song database library.
|
||||
|
||||
Install from source
|
||||
-------------------
|
||||
Instalation uses the pep517 packaging format, whichs requires pip version
|
||||
19 or newer.
|
||||
|
||||
pip install "pip>=19"
|
||||
pip install .
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import logging
|
||||
|
||||
VERSION = "1.0"
|
||||
|
||||
|
||||
logger = logging.getLogger("negromate.songs")
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[build-system]
|
||||
requires = ["setuptools", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
29
setup.cfg
29
setup.cfg
|
@ -1,7 +1,34 @@
|
|||
[metadata]
|
||||
# This includes the license file(s) in the wheel.
|
||||
# https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
|
||||
license_files = LICENSE.txt
|
||||
name = negromate.songs
|
||||
version = attr: negromate.songs.VERSION
|
||||
license-file = LICENSE.txt
|
||||
author = Ales (Shagi) Zabala Alava
|
||||
author_email = shagi@gisa-elkartea.org
|
||||
url = http://negromate.rocks
|
||||
description = NegroMate karaoke song database library
|
||||
long_description_content_type = text/markdown
|
||||
long_description = file: README.md
|
||||
license = GPLv3
|
||||
classifiers =
|
||||
Development Status :: 5 - Production/Stable
|
||||
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
||||
Programming Language :: Python :: 3
|
||||
Topic :: Games/Entertainment
|
||||
|
||||
[options]
|
||||
packages = find:
|
||||
zip_safe = true
|
||||
python_requires = >= 3.4
|
||||
install_requires =
|
||||
webvtt-py
|
||||
asstosrt ==0.1.6
|
||||
srt ==1.6.0
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
negromate-songs = negromate.songs.command:main
|
||||
|
||||
[bdist_wheel]
|
||||
# This flag says to generate wheels that support both Python 2 and Python
|
||||
|
|
40
setup.py
40
setup.py
|
@ -1,40 +0,0 @@
|
|||
import setuptools
|
||||
from os import path
|
||||
|
||||
here = path.abspath(path.dirname(__file__))
|
||||
|
||||
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
with open(path.join(here, 'VERSION'), encoding='utf-8') as f:
|
||||
version = f.read()
|
||||
|
||||
|
||||
setuptools.setup(
|
||||
name="negromate.songs",
|
||||
version=version,
|
||||
author="Ales (Shagi) Zabala Alava",
|
||||
author_email="shagi@gisa-elkartea.org",
|
||||
url="http://negromate.rocks",
|
||||
description="NegroMate karaoke song database library",
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
packages=setuptools.find_namespace_packages(include=['negromate.*']),
|
||||
classifiers=[
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Topic :: Games/Entertainment",
|
||||
],
|
||||
python_requires=">=3.4",
|
||||
install_requires=[
|
||||
"webvtt-py",
|
||||
"asstosrt==0.1.6",
|
||||
"srt==1.6.0",
|
||||
],
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'negromate-songs=negromate.songs.command:main',
|
||||
],
|
||||
},
|
||||
)
|
Loading…
Reference in New Issue