diff --git a/.gitignore b/.gitignore index 725c84d..255174c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -negromate.songs.egg-info +/negromate.songs.egg-info +/build +/dist diff --git a/README.md b/README.md index d752ca8..ecb2b58 100644 --- a/README.md +++ b/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 . diff --git a/VERSION b/VERSION deleted file mode 100644 index d3827e7..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.0 diff --git a/negromate/__init__.py b/negromate/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/negromate/songs/__init__.py b/negromate/songs/__init__.py index df3521e..8b86b57 100644 --- a/negromate/songs/__init__.py +++ b/negromate/songs/__init__.py @@ -1,4 +1,6 @@ import logging +VERSION = "1.0" + logger = logging.getLogger("negromate.songs") diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9787c3b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index fc00c75..61f2f78 100644 --- a/setup.cfg +++ b/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 diff --git a/setup.py b/setup.py deleted file mode 100644 index 2e7dae8..0000000 --- a/setup.py +++ /dev/null @@ -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', - ], - }, -)