Explore tweets tagged as #mypackage
@bbelderbos
Bob Belderbos
3 years
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
@bbelderbos
Bob Belderbos
3 years
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
@thdxr
dax
9 months
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
@thdxr
dax
1 year
this is the ideal exports definition for me - but it breaks autocomplete for some reason (can't type @scope/mypackage/ and get suggestions) does anyone know why?
6
0
44
@bbelderbos
Bob Belderbos
1 year
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
@matthen2
Matt Henderson
7 months
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
@ProgrammerDude
Arian van Putten
2 years
Why is it packages.x86-64_linux.myPackage And not packages.myPackage.x86-linux ?
7
0
11
@darani_pravajra
DARANI
3 years
『MYPACKAGE / BN3TH』のおぱんつ🩲 https://t.co/N3buPKYsC5
2
12
166
@ProgrammerDude
Arian van Putten
2 years
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
@domenkozar
Domen Kožar
2 years
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
@domenkozar
Domen Kožar
8 months
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
@altryne
Alex Volkov (Thursd/AI)
2 years
#mojoLang supports 🔥 as the filename, but everyone knows that, a little hidden gem from the docs, you can also compile pre-compile packages (thing just mojo code that you import) with myPackage.📦 emoji! Love it 😂
0
0
4
@domenkozar
Domen Kožar
3 years
How about: $ cachix pin mycache --flake Where somewhere in flake.nix: https://t.co/S9Tlu0yQcm."mypackage-1.0" = pkgs.mypackage;
@cachix_org
Cachix
3 years
📣 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
@MartinDotNet
Martin Thwaites
2 years
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
@myakaislayla
100%_Ore._Girl_
2 years
0
0
0
@akshitarora0907
Akshit Arora
2 years
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
@jacob_dotnet
Jacob Foshee
3 years
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
@eikonifrit
LEON S. KENNEDY’S WIFE
2 years
got mypackage in the mail :) feeling happy :)
1
0
1
@BOATRACE_AI_LAB
艇ラボ
1 year
あれーー、、なんか VSCode の仕様変わった? pip install -e . で install した自作package だけが Pylance(reportMissingImports) ってなって参照できないい。venv を pyproject.toml と同じ階層に作ってるんだが、例えば code ./mypackage/program.py で開くとエラー。
1
0
1
@bangtanzanitee
Maria⁷⁼¹⊙⊝⊜ | (IA cuz ramadan)
2 years
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