Explore tweets tagged as #mypackage
How to add an entry point to your Python package? 1️⃣ Organize your package: mypackage/ │ ├── __init__.py ├── https://t.co/wcBpPm0NrT └── https://t.co/ANr3jG68N0 2️⃣ Create a __main__.py file: mypackage/ │ ├── __init__.py ├── https://t.co/wcBpPm0NrT ├──
7
108
747
How to add a console script to your #Python package: 1️⃣ Organize your package: mypackage/ │ ├── __init__.py ├── https://t.co/wcBpPm0NrT └── https://t.co/ANr3jG68N0 In mypackage, define the function you want to make accessible via the command line, for example: #
6
55
440
if you omit `exports` from package.json resolution works like import "mypackage/foo" -> "mypackage/foo/index.ts" "mypackage/foo/bar" -> "mypackage/foo/bar.ts" there seems to be no spec compliant way to include `exports` and recreate this behavior i got it to work with arrays
8
0
25
How to add a console script to your #Python package with uv 🚀 1️⃣ Init a package: uv init --lib mypackage 2️⃣ Add function to module 3️⃣ Define [project.scripts] in pyproject.toml 4️⃣ Build: uv build 5️⃣ Install + run: uv pip install -e . && uv run hello Detailed steps 👇
3
8
77
Is there anything like llms.txt for software (rather than websites)? e.g. ‘my-cli-tool --llm-help’ or ‘python -m mypackage llm-help’ could print out markdown. Thinking about how tools like Claude Code could learn to use new stuff without having to search the web. @jeremyphoward
6
0
7
Why is it packages.x86-64_linux.myPackage And not packages.myPackage.x86-linux ?
7
0
11
This happens to me multiple times per week: 1. Build flake 2. Doesn't work because I forgot a system 3. Copy all the code 4. Forget to replace buildInputs = [ packages.aarch64-darwin.mypackage] with x86-64_linux 5. the build breaks at a late point with an extremely obscure error
I've written an extensive report of why "system" should be an input in Flakes in 2021: https://t.co/3Dh83xqMkW A year later https://t.co/jvVYdtOMNL was born to address that and a bunch of other things that are extremely hard for someone beginning with Nix.
1
0
8
We've solved developer environments once and for all. teach AI to use it: ❯ cat ~/.claude/CLAUDE.md When a command is missing, use: $ devenv -O languages.rust.enable:bool true -O packages:pkgs "mypackage mypackage2" shell -- cli args When the setup is more complex, create
0
1
9
How about: $ cachix pin mycache --flake Where somewhere in flake.nix: https://t.co/S9Tlu0yQcm."mypackage-1.0" = pkgs.mypackage;
📣 Introducing Pins: Permanent Nix Binary Storage You now have greater control over what stays in your cache during garbage collection, reducing the risk of removing significant files. https://t.co/eXgrgIj0e3 1/5
0
0
1
This is the problem with no releasing something as a "full" or "stable" version... If you do "dotnet add package <mypackage> --prerelease" you get the 9.0.0 version, which is then incompatible if you're on .NET 8. So you MUST have the version number identically :/
1
0
0
Especially if it’s shoes!!!! #vans
#shoeobsession
#shoeaddict
#amazon
#tracking
#mypackage
#just
#bethechange
0
0
0
May be a dumb question, but is there any way by which we can restrict the package to be installed only in the specific application? Example: akshitarora/mypackage can only be installed in laravel/laravel package??
2
0
3
Is there a convention for Nuget packages that depend on different versions of Microsoft.Extensions.*? For example I want to support both version 6 and 7. Would I have MyPackage.Net7 and MyPackage.Net6?
1
0
0
あれーー、、なんか VSCode の仕様変わった? pip install -e . で install した自作package だけが Pylance(reportMissingImports) ってなって参照できないい。venv を pyproject.toml と同じ階層に作ってるんだが、例えば code ./mypackage/program.py で開くとエラー。
1
0
1
Help me @IndiaPostOffice mypackage is stuck in delhi for almost 2 months and its not delivered to me yet and im not getting any updates regarding to my parcel please look in to this matter asap
2
1
0