forked from frescobaldi/python-ly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move project metadata to pyproject.toml
Modern Python packaging standards rely on static metadata in pyproject.toml rather than dynamic metadata in setup.py, which is considered deprecated. Porting notes: - In modern packaging, console scripts are installed via entry points. The bin/ directory containing the ly and ly-server scripts is removed; instead, entry points specify a module and function to run, and pip automatically creates a wrapper script when installing the project. - The pkginfo is trimmed down to contain only the version. This is because pyproject.toml is not Python code, and the ways in which it can read metadata dynamically are limited. The conf.py file for Sphinx now declares the metadata as well; this might be considered duplication, but things like the name 'python-ly' and the author 'Wilbert Berendsen' are unlikely to change. - There are now a few more URLs in the [project.urls] table. - This does not use setuptools_scm to display the version, but that could be done in the future (see frescobaldi#148). However, getting the version for conf.py needs having the package installed, so this will impose certain constraints for developers. - This change was tested by executing "python -m build" before and after, unpacking the sdists, and checking that the differences were intended.
- Loading branch information
Showing
9 changed files
with
51 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,3 @@ | ||
# This file is part of python-ly, https://pypi.python.org/pypi/python-ly | ||
# | ||
# Copyright (c) 2014 - 2015 by Wilbert Berendsen | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 2 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
# See http://www.gnu.org/licenses/ for more information. | ||
"""Meta-information about the LY package.""" | ||
|
||
""" | ||
Meta-information about the LY package. | ||
This information is used by the install script, and also for the | ||
command ``ly --version``. | ||
""" | ||
|
||
from __future__ import unicode_literals | ||
|
||
#: name of the package | ||
name = "python-ly" | ||
|
||
#: the current version | ||
version = "0.9.7" | ||
|
||
#: short description | ||
description = "Tool and library for manipulating LilyPond files" | ||
|
||
#: long description | ||
long_description = \ | ||
"The python-ly package provides a Python library and a commandline tool " \ | ||
"that can be used to parse and manipulate LilyPond source files." | ||
|
||
#: maintainer name | ||
maintainer = "Wilbert Berendsen" | ||
|
||
#: maintainer email | ||
maintainer_email = "[email protected]" | ||
|
||
#: homepage | ||
url = "https://github.com/wbsoft/python-ly" | ||
|
||
#: license | ||
license = "GPL" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[build-system] | ||
requires = ["setuptools >= 64"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "python-ly" | ||
description = "Tool and library for manipulating LilyPond files" | ||
readme = "README.rst" | ||
license.text = "GPL" | ||
maintainers = [{name = "Wilbert Berendsen", email = "[email protected]"}] | ||
classifiers = [ | ||
'Development Status :: 4 - Beta', | ||
#'Development Status :: 5 - Production/Stable', | ||
'License :: OSI Approved :: GNU General Public License (GPL)', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Topic :: Multimedia :: Sound/Audio', | ||
'Topic :: Text Editors', | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/wbsoft/python-ly" | ||
Documentation = "https://python-ly.readthedocs.io" | ||
Repository = "https://github.com/frescobaldi/python-ly" | ||
"Issue tracker" = "https://github.com/frescobaldi/python-ly/issues" | ||
|
||
[project.scripts] | ||
ly = "ly.cli.main:main" | ||
ly-server = "ly.server.main:main" | ||
|
||
[tool.setuptools.dynamic] | ||
version.attr = "ly.pkginfo.version" |