|
1 | 1 | ## 📦 A Project Template for Self-developed Python Package
|
2 | 2 |
|
3 |
| - |
| 3 | + |
4 | 4 | [](https://opensource.org/license/MIT)
|
5 | 5 | 
|
6 | 6 |
|
@@ -85,7 +85,7 @@ This repo provides an 𝐨𝐮𝐭-𝐨𝐟-𝐭𝐡𝐞-𝐛𝐨𝐱 𝐩𝐫
|
85 | 85 | cd MYPROJECT
|
86 | 86 |
|
87 | 87 | # replace 'my-project' with your project name
|
88 |
| - mv package-name my-project |
| 88 | + git mv package-name my-project |
89 | 89 | ```
|
90 | 90 | <details>
|
91 | 91 | <summary>𝘯𝘰𝘸 𝘺𝘰𝘶𝘳 𝘱𝘳𝘰𝘫𝘦𝘤𝘵 𝘴𝘵𝘳𝘶𝘤𝘵𝘶𝘳𝘦 𝘴𝘩𝘰𝘶𝘭𝘥 𝘣𝘦 𝘭𝘪𝘬𝘦 𝘵𝘩𝘪𝘴</summary>
|
@@ -330,13 +330,21 @@ This repo provides an 𝐨𝐮𝐭-𝐨𝐟-𝐭𝐡𝐞-𝐛𝐨𝐱 𝐩𝐫
|
330 | 330 | EOF
|
331 | 331 |
|
332 | 332 | # encrypt your pypi token
|
333 |
| - # same process for testpypi, just replace `pypi` with `testpypi` |
334 |
| - keyring set pypi <username> |
| 333 | + ## pypi |
| 334 | + keyring set https://upload.pypi.org/legacy/ __token__ |
335 | 335 |
|
336 | 336 | ## enter your pypi token when prompted
|
337 | 337 |
|
338 | 338 | # verify that the encrypted token has been stored
|
339 |
| - keyring get pypi <username> |
| 339 | + keyring get https://upload.pypi.org/legacy/ __token__ |
| 340 | +
|
| 341 | + ## testpypi |
| 342 | + keyring set https://test.pypi.org/legacy/ __token__ |
| 343 | +
|
| 344 | + ## enter your pypi token when prompted |
| 345 | +
|
| 346 | + # verify that the encrypted token has been stored |
| 347 | + keyring get https://test.pypi.org/legacy/ __token__ |
340 | 348 |
|
341 | 349 | # ---------------------- configure .pypirc ----------------------
|
342 | 350 | # refer to https://packaging.python.org/en/latest/specifications/pypirc/
|
@@ -379,9 +387,6 @@ This repo provides an 𝐨𝐮𝐭-𝐨𝐟-𝐭𝐡𝐞-𝐛𝐨𝐱 𝐩𝐫
|
379 | 387 | - [Official Python Packaging User Guide](https://packaging.python.org)
|
380 | 388 | - [Ruff document](https://docs.astral.sh/ruff/)
|
381 | 389 | - [Isort document](https://pycqa.github.io/isort/index.html)
|
382 |
| -- [navdeep-/setup.py](https://jgithub.xyz/navdeep-G/setup.py) |
383 |
| -- [pypa/sampleproject](https://jgithub.xyz/pypa/sampleproject/) |
384 |
| -- [audreyfeldroy/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage) |
385 | 390 |
|
386 | 391 | # 🧾 License
|
387 | 392 |
|
|
0 commit comments