Comments (5)
tomlkit
's tests
directory caused a collision in nixpkgs. As I said in my Poetry PR,
If multiple distributions have tests
as a top-level package, they'll conflict whenever both are installed. (Examples here and here). Two common alternative strategies are:
- not distributing tests (as here), or
- placing tests in a subdirectory of the main package, rather than adjacent (as here and here).
Either of these strategies will avoid this issue.
from tomlkit.
This problem also happen in gentoo.
* ERROR: dev-python/tomlkit-0.7.0::gentoo-zh failed (install phase):
* Package installs 'tests' package which is forbidden and likely a bug in the build system.
*
* Call stack:
* ebuild.sh, line 125: Called src_install
* environment, line 2962: Called distutils-r1_src_install
* environment, line 1187: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install'
* environment, line 439: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_install'
* environment, line 2576: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
* environment, line 2058: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
* environment, line 2056: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_install'
* environment, line 778: Called distutils-r1_run_phase 'distutils-r1_python_install'
* environment, line 1155: Called distutils-r1_python_install
* environment, line 1074: Called die
* The specific snippet of code:
* die "Package installs '${p}' package which is forbidden and likely a bug in the build system.";
*
* If you need support, post the output of `emerge --info '=dev-python/tomlkit-0.7.0::gentoo-zh'`,
* the complete build log and the output of `emerge -pqv '=dev-python/tomlkit-0.7.0::gentoo-zh'`.
* The complete build log is located at '/var/tmp/portage/dev-python/tomlkit-0.7.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/tomlkit-0.7.0/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/tomlkit-0.7.0/work/tomlkit-0.7.0'
* S: '/var/tmp/portage/dev-python/tomlkit-0.7.0/work/tomlkit-0.7.0'
from tomlkit.
Also conda-forge: conda-forge/tomlkit-feedstock#24
We'd love the tests to be present in the sdist (a la recursive-include tests *
and include_package_data=True
) so we can run them, but excluded (a la find_packages(".", exclude=["tests*"])
so they don't cause this conflict. Alas, I do not know the poetry
constructs for these techniques.
from tomlkit.
Perhaps:
[tool.poetry]
# ...
include = ["tests"]
and omit the line about including the tests in the sdist
. I presume the whl
will then have them, too, but that's another issue for another day, i suppose...
from tomlkit.
Relevant issue from Poetry: python-poetry/poetry#2353
from tomlkit.
Related Issues (20)
- "IndexError: list index out of range" when using dotkeys and non-dotkeys HOT 1
- tomlkit does not work with pydantic `dict()` method HOT 1
- Uncaught exception in parse HOT 1
- Can I use tomlkit to dump a multi-line string? HOT 1
- Missing types in the `append()` method of the `Table` class HOT 2
- Bug in dumps? Stringifying subtables and nested arrays of tables, in arrays of tables HOT 1
- Request to be added to Tomlkit OSS-Fuzzer project members HOT 2
- Support `Decimal` serialization? HOT 1
- Support `bidict` inputs?
- Add indent control for multi-line `Array`
- Difference in whitespace in dot notation disappears
- I am switching to `rtoml` HOT 4
- Comments from original TOML end up in the wrong spot HOT 3
- datetime.utcnow and datetime.utcfromtimestamp are deprecated in Python 3.12
- Adding np.array and tomlkit.items.Float leads to NotImplementedType
- Write table with keys containing a dot HOT 3
- Bottleneck parsing
- Missing setup.py on releases? HOT 3
- dividing a tomlkit.Integer by an int does integer division, instead of 'true' division HOT 1
- [REPO] Add discussions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tomlkit.