Name | setuptools-dynamic-dependencies JSON |
Version |
1.0.0
JSON |
| download |
home_page | None |
Summary | A setuptools plugin that allows for dependencies that are dependent on the package's version number. |
upload_time | 2025-01-12 02:42:19 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | Copyright (c) 2022 Russell Keith-Magee. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of setuptools_dynamic_dependencies nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
keywords |
setuptools
dynamic
dependencies
optional-dependencies
install_requires
extras_require
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
[<img src="http://beeware.org/static/images/defaultlogo.png" width="72px" alt="Generic BeeWare Logo">](https://beeware.org/)
# setuptools_dynamic_dependencies
[![Python Versions](https://img.shields.io/pypi/pyversions/setuptools_dynamic_dependencies.svg)](https://pypi.python.org/pypi/setuptools_dynamic_dependencies)
[![PyPI Version](https://img.shields.io/pypi/v/setuptools_dynamic_dependencies.svg)](https://pypi.python.org/pypi/setuptools_dynamic_dependencies)
[![Maturity](https://img.shields.io/pypi/status/setuptools_dynamic_dependencies.svg)](https://pypi.python.org/pypi/setuptools_dynamic_dependencies)
[![BSD License](https://img.shields.io/pypi/l/setuptools_dynamic_dependencies.svg)](https://github.com/beeware/setuptools_dynamic_dependencies/blob/master/LICENSE)
[![Discord server](https://img.shields.io/discord/836455665257021440?label=Discord%20Chat&logo=discord&style=plastic)](https://beeware.org/bee/chat/)
`setuptools_dynamic_dependencies` is a setuptools plugin that allows you to define project
requirements that are dynamically dependent on other properties (such as project
version). This can be useful in monorepositories which contain a "core" package and a
number of "backend" packages, and you want to enforce a version dependency between the
backend and the core.
## Usage
You *must* be using a `pyproject.toml`-based project configuration. `setup.cfg` and
`setup.py` configurations are not supported.
Add `setuptools_dynamic_dependencies` to the `build-system` requirements for your project:
[build-system]
requires = ["setuptools_dynamic_dependencies"]
Declare "dependencies" as being dynamic in your `[project]` table:
[project]
dynamic = ["dependencies"]
Then, add a `[tool.setuptools_dynamic_dependencies]` section to your configuration. In
this section, add an `dependencies` key for any requirements. In the following example,
`dynamic-package` will be pinned to the same version as the package being built:
[tool.setuptools_dynamic_requires]
dependencies = [
"dynamic-package == {version}"
]
So - if this was the `pyproject.toml` for "myproject", and you were building v1.2.3, the
dependency would be set to `dynamic_package == 1.2.3`. This `version` value can come
from a `setuptool_scm` dynamic version, if required.
You can also specify a `[tool.setuptools_dynamic_dependencies.optional-dependencies]` to
define dynamic optional requirements:
[tool.setuptools_dynamic_dependencies.optional-dependencies]
feature = [
"dynamic-package == {version}"
]
## Community
`setuptools_dynamic_dependencies` is part of the [BeeWare suite](http://beeware.org). You
can talk to the community through:
- [@pybeeware on Twitter](https://twitter.com/pybeeware)
- [Discord](https://beeware.org/bee/chat/)
We foster a welcoming and respectful community as described in our [BeeWare
Community Code of Conduct](http://beeware.org/community/behavior/).
## Contributing
If you experience problems with `setuptools_dynamic_dependencies`, [log them on
GitHub](https://github.com/beeware/setuptools_dynamic_dependencies/issues). If you want
to contribute code, please [fork the
code](https://github.com/beeware/setuptools_dynamic_dependencies) and [submit a pull
request](https://github.com/beeware/setuptools_dynamic_dependencies/pulls).
Raw data
{
"_id": null,
"home_page": null,
"name": "setuptools-dynamic-dependencies",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Russell Keith-Magee <russell@keith-magee.com>",
"keywords": "setuptools, dynamic, dependencies, optional-dependencies, install_requires, extras_require",
"author": null,
"author_email": "Russell Keith-Magee <russell@keith-magee.com>",
"download_url": "https://files.pythonhosted.org/packages/ca/81/c1a0b26eb2e9b001b8719aefd0e351fbf9eaa06ff58cd6479494edb8ef56/setuptools_dynamic_dependencies-1.0.0.tar.gz",
"platform": null,
"description": "[<img src=\"http://beeware.org/static/images/defaultlogo.png\" width=\"72px\" alt=\"Generic BeeWare Logo\">](https://beeware.org/)\n\n# setuptools_dynamic_dependencies\n\n[![Python Versions](https://img.shields.io/pypi/pyversions/setuptools_dynamic_dependencies.svg)](https://pypi.python.org/pypi/setuptools_dynamic_dependencies)\n[![PyPI Version](https://img.shields.io/pypi/v/setuptools_dynamic_dependencies.svg)](https://pypi.python.org/pypi/setuptools_dynamic_dependencies)\n[![Maturity](https://img.shields.io/pypi/status/setuptools_dynamic_dependencies.svg)](https://pypi.python.org/pypi/setuptools_dynamic_dependencies)\n[![BSD License](https://img.shields.io/pypi/l/setuptools_dynamic_dependencies.svg)](https://github.com/beeware/setuptools_dynamic_dependencies/blob/master/LICENSE)\n[![Discord server](https://img.shields.io/discord/836455665257021440?label=Discord%20Chat&logo=discord&style=plastic)](https://beeware.org/bee/chat/)\n\n`setuptools_dynamic_dependencies` is a setuptools plugin that allows you to define project\nrequirements that are dynamically dependent on other properties (such as project\nversion). This can be useful in monorepositories which contain a \"core\" package and a\nnumber of \"backend\" packages, and you want to enforce a version dependency between the\nbackend and the core.\n\n## Usage\n\nYou *must* be using a `pyproject.toml`-based project configuration. `setup.cfg` and\n`setup.py` configurations are not supported.\n\nAdd `setuptools_dynamic_dependencies` to the `build-system` requirements for your project:\n\n [build-system]\n requires = [\"setuptools_dynamic_dependencies\"]\n\nDeclare \"dependencies\" as being dynamic in your `[project]` table:\n\n [project]\n dynamic = [\"dependencies\"]\n\nThen, add a `[tool.setuptools_dynamic_dependencies]` section to your configuration. In\nthis section, add an `dependencies` key for any requirements. In the following example,\n`dynamic-package` will be pinned to the same version as the package being built:\n\n [tool.setuptools_dynamic_requires]\n dependencies = [\n \"dynamic-package == {version}\"\n ]\n\nSo - if this was the `pyproject.toml` for \"myproject\", and you were building v1.2.3, the\ndependency would be set to `dynamic_package == 1.2.3`. This `version` value can come\nfrom a `setuptool_scm` dynamic version, if required.\n\nYou can also specify a `[tool.setuptools_dynamic_dependencies.optional-dependencies]` to\ndefine dynamic optional requirements:\n\n [tool.setuptools_dynamic_dependencies.optional-dependencies]\n feature = [\n \"dynamic-package == {version}\"\n ]\n\n## Community\n\n`setuptools_dynamic_dependencies` is part of the [BeeWare suite](http://beeware.org). You\ncan talk to the community through:\n\n- [@pybeeware on Twitter](https://twitter.com/pybeeware)\n- [Discord](https://beeware.org/bee/chat/)\n\nWe foster a welcoming and respectful community as described in our [BeeWare\nCommunity Code of Conduct](http://beeware.org/community/behavior/).\n\n## Contributing\n\nIf you experience problems with `setuptools_dynamic_dependencies`, [log them on\nGitHub](https://github.com/beeware/setuptools_dynamic_dependencies/issues). If you want\nto contribute code, please [fork the\ncode](https://github.com/beeware/setuptools_dynamic_dependencies) and [submit a pull\nrequest](https://github.com/beeware/setuptools_dynamic_dependencies/pulls).\n",
"bugtrack_url": null,
"license": "Copyright (c) 2022 Russell Keith-Magee. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of setuptools_dynamic_dependencies nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
"summary": "A setuptools plugin that allows for dependencies that are dependent on the package's version number.",
"version": "1.0.0",
"project_urls": {
"Funding": "https://beeware.org/contributing/membership/",
"Project": "https://github.com/beeware/setuptools_dynamic_dependencies",
"Source": "https://github.com/beeware/setuptools_dynamic_dependencies",
"Tracker": "https://github.com/beeware/setuptools_dynamic_dependencies/issues"
},
"split_keywords": [
"setuptools",
" dynamic",
" dependencies",
" optional-dependencies",
" install_requires",
" extras_require"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "087be6f08ea8c21dbf01fe83fa13a2cba22d8953c3a78e5c37be2c29b3d9e2fa",
"md5": "801e166d0e9df09fdbd63bf571fb8d72",
"sha256": "bf4366ef91ebcc9f16aac3c1c2c607b76eadf6964d6fd84156ce353a29cffbc6"
},
"downloads": -1,
"filename": "setuptools_dynamic_dependencies-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "801e166d0e9df09fdbd63bf571fb8d72",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 6250,
"upload_time": "2025-01-12T02:42:16",
"upload_time_iso_8601": "2025-01-12T02:42:16.638389Z",
"url": "https://files.pythonhosted.org/packages/08/7b/e6f08ea8c21dbf01fe83fa13a2cba22d8953c3a78e5c37be2c29b3d9e2fa/setuptools_dynamic_dependencies-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ca81c1a0b26eb2e9b001b8719aefd0e351fbf9eaa06ff58cd6479494edb8ef56",
"md5": "59f4ddb5186d1a5c97be987778eb96c9",
"sha256": "4ee2566acbd83822efee73e0bc865234815359ac54ef851fa751033a67ad532f"
},
"downloads": -1,
"filename": "setuptools_dynamic_dependencies-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "59f4ddb5186d1a5c97be987778eb96c9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 7233,
"upload_time": "2025-01-12T02:42:19",
"upload_time_iso_8601": "2025-01-12T02:42:19.573732Z",
"url": "https://files.pythonhosted.org/packages/ca/81/c1a0b26eb2e9b001b8719aefd0e351fbf9eaa06ff58cd6479494edb8ef56/setuptools_dynamic_dependencies-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-12 02:42:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "beeware",
"github_project": "setuptools_dynamic_dependencies",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "setuptools-dynamic-dependencies"
}