Add setuptools data for building a package

This commit is contained in:
Raoul Snyman 2021-07-28 21:39:43 -07:00
parent 45416a4064
commit 1834e17c56
3 changed files with 51 additions and 0 deletions

5
pyproject.toml Normal file
View File

@ -0,0 +1,5 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]

44
setup.cfg Normal file
View File

@ -0,0 +1,44 @@
[metadata]
name = python-chordpro
author = Raoul Snyman
author_email = raoul@snyman.info
description = A ChordPro parser, written in Python
long_description = file:README.rst
long_description_content_type = text/x-rst
url = https://git.snyman.info/raoul/python-chordpro
license = MIT
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: POSIX
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Utilities
keywords = music, chords, guitar
[options]
package_dir =
= src
packages = find:
python_requires = >=3.7
setup_requires =
setuptools_scm
install_requires =
pyhyphen
[options.packages.find]
where = src
[options.entry_points]
console_scripts =
python-chordpro = chordpro
[bdist_wheel]
universal = 1
[flake8]
max-line-length = 120

2
setup.py Normal file
View File

@ -0,0 +1,2 @@
from setuptools import setup
setup(use_scm_version=True, setup_requires=['setuptools_scm'])