-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: move metadata to pyproject.toml
- Loading branch information
1 parent
01791ca
commit da5edc6
Showing
2 changed files
with
104 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,68 @@ | ||
|
||
# -- Project metadata ------------------------------------------------------------------ | ||
|
||
[project] | ||
name = "pyrekordbox" | ||
description = "Inofficial Python package for interacting with the library of Pioneers Rekordbox DJ software." | ||
readme = "README.md" | ||
authors = [ | ||
{name = "Dylan Jones", email = "[email protected]"}, | ||
] | ||
license = {file = "LICENSE"} | ||
dynamic = ["version"] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: MacOS", | ||
"Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Multimedia :: Sound/Audio", | ||
] | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
"bidict>=0.21.0", | ||
"blowfish>=0.6.0", | ||
"construct>=2.10.0", | ||
"hypothesis>=6.0.0", | ||
"numpy>=1.19.0", | ||
"packaging", | ||
"pytest>=6.2.0", | ||
"psutil>=5.9.0", | ||
"setuptools>=60.0.0", | ||
"setuptools-scm[toml]>=4", | ||
"sqlalchemy>=2.0.0", | ||
] | ||
packages = "find" | ||
platforms = ["any"] | ||
zip-safe = false | ||
include-package-data = true | ||
|
||
|
||
[project.optional-dependencies] | ||
build = [ | ||
"wheel>=0.37.0", | ||
] | ||
test = [ | ||
"pytest-cov", | ||
"wheel>=0.37.0", | ||
] | ||
|
||
|
||
[project.urls] | ||
Source = "https://github.com/dylanljones/pyrekordbox" | ||
Documentation = "https://pyrekordbox.readthedocs.io/en/stable/" | ||
Tracker = "https://github.com/dylanljones/pyrekordbox/issues" | ||
|
||
|
||
# -- Build ----------------------------------------------------------------------------- | ||
|
||
[build-system] | ||
|
@@ -28,3 +92,43 @@ force-exclude = """ | |
mysettings/structs.py | ||
)\ | ||
""" | ||
|
||
|
||
# -- Linting --------------------------------------------------------------------------- | ||
|
||
[tool.pydocstyle] | ||
add_ignore = [ | ||
"D105", # ignore undocumented dunder methods like ``__str__` | ||
] | ||
|
||
|
||
# -- Coverage -------------------------------------------------------------------------- | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = ["pyrekordbox"] | ||
|
||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
|
||
"def __repr__", | ||
"def __str__", | ||
|
||
"@abstract", | ||
"@property", | ||
|
||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
|
||
"if 0:", | ||
"if __name__ == .__main__.:" | ||
] | ||
omit = [ | ||
"pyrekordbox/utils.py", | ||
"pyrekordbox/config.py", | ||
"pyrekordbox/_version.py", | ||
"pyrekordbox/__main__.py", | ||
] | ||
ignore_errors = true |
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,71 +1,8 @@ | ||
[metadata] | ||
name = pyrekordbox | ||
description = Inofficial Python package for interacting with the library of Pioneers Rekordbox DJ software. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/dylanljones/pyrekordbox | ||
author = Dylan Jones | ||
author_email = [email protected] | ||
license = MIT | ||
license_file = LICENSE | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Intended Audience :: Developers | ||
Intended Audience :: Information Technology | ||
License :: OSI Approved :: MIT License | ||
Natural Language :: English | ||
Operating System :: MacOS | ||
Operating System :: Microsoft :: Windows | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Topic :: Multimedia :: Sound/Audio | ||
project_urls = | ||
Source = https://github.com/dylanljones/pyrekordbox | ||
Documentation = https://pyrekordbox.readthedocs.io/en/stable/ | ||
Tracker = https://github.com/dylanljones/pyrekordbox/issues | ||
|
||
[options] | ||
packages = find: | ||
install_requires = | ||
bidict>=0.21.0 | ||
blowfish>=0.6.0 | ||
construct>=2.10.0 | ||
hypothesis>=6.0.0 | ||
numpy>=1.19.0 | ||
packaging | ||
pytest>=6.2.0 | ||
psutil>=5.9.0 | ||
setuptools>=60.0.0 | ||
setuptools-scm[toml]>=4 | ||
sqlalchemy>=2.0.0 | ||
python_requires = >=3.7 | ||
include_package_data = True | ||
platforms = any | ||
zip_safe = False | ||
|
||
[options.extras_require] | ||
build = | ||
wheel>=0.37.0 | ||
test = | ||
pytest-cov | ||
wheel>=0.37.0 | ||
|
||
[aliases] | ||
test = pytest | ||
|
||
[build_sphinx] | ||
project = pyrekordbox | ||
source-dir = ./docs/source | ||
build-dir = ./docs/build | ||
|
||
[pydocstyle] | ||
add-ignore = D105 # ignore undocumented dunder methods like ``__str__` | ||
|
||
[flake8] | ||
max-line-length = 88 | ||
ignore = D203 | ||
|
@@ -80,31 +17,3 @@ exclude = | |
*/structs.py, | ||
*/_version.py, | ||
docs/* | ||
|
||
[coverage:run] | ||
branch = False | ||
source = pyrekordbox | ||
|
||
[coverage:report] | ||
exclude_lines = | ||
pragma: no cover | ||
|
||
def __repr__ | ||
def __str__ | ||
|
||
@abstract | ||
|
||
@property | ||
|
||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
if 0: | ||
if __name__ == .__main__.: | ||
|
||
ignore_errors = True | ||
omit = | ||
pyrekordbox/utils.py | ||
pyrekordbox/config.py | ||
pyrekordbox/_version.py | ||
pyrekordbox/__main__.py |