-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pypirc
More file actions
108 lines (93 loc) · 3.63 KB
/
.pypirc
File metadata and controls
108 lines (93 loc) · 3.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# =============================================================================
# PyPI Configuration
# https://packaging.python.org/en/latest/specifications/pypirc/
# =============================================================================
#
# This file is portable - copy to other repos without modification.
#
# Defines package index servers for uploading Python packages.
# This file should NOT contain credentials - store them securely:
#
# Authentication methods (in order of preference):
# 1. API tokens via environment variables (CI/CD)
# export TWINE_USERNAME=__token__
# export TWINE_PASSWORD=pypi-xxxxx
#
# 2. System keyring (recommended for local dev)
# keyring set https://upload.pypi.org/legacy/ __token__
#
# 3. ~/.pypirc in home directory (not in repo)
# [pypi]
# username = __token__
# password = pypi-xxxxx
#
# Upload commands:
# poetry publish # Uses Poetry's config
# twine upload dist/* -r pypi # Upload to PyPI
# twine upload dist/* -r testpypi # Upload to TestPyPI
#
# =============================================================================
# =============================================================================
# Index Server Registry
# =============================================================================
#
# List all available package indexes. Use with: twine upload -r <name>
#
# =============================================================================
[distutils]
index-servers =
pypi
testpypi
gitlab
github
# =============================================================================
# PyPI (Production)
# =============================================================================
#
# The official Python Package Index.
# Create API token: https://pypi.org/manage/account/token/
#
# Upload: twine upload dist/* -r pypi
#
# =============================================================================
[pypi]
repository = https://upload.pypi.org/legacy/
# =============================================================================
# TestPyPI (Staging)
# =============================================================================
#
# Test your package uploads before releasing to production.
# Create API token: https://test.pypi.org/manage/account/token/
#
# Upload: twine upload dist/* -r testpypi
# Install: pip install -i https://test.pypi.org/simple/ <package>
#
# =============================================================================
[testpypi]
repository = https://test.pypi.org/legacy/
# =============================================================================
# GitLab Package Registry
# =============================================================================
#
# GitLab's built-in package registry.
# Replace <project_id> with your GitLab project ID.
# Use deploy token or personal access token for auth.
#
# Upload: twine upload dist/* -r gitlab
#
# =============================================================================
[gitlab]
repository = https://gitlab.com/api/v4/projects/<project_id>/packages/pypi
# =============================================================================
# GitHub Package Registry
# =============================================================================
#
# GitHub Packages for Python (via PyPI-compatible endpoint).
# Use personal access token with write:packages scope.
#
# Note: GitHub doesn't have native PyPI hosting; this points to PyPI.
# For GitHub Packages, use: https://docs.github.com/en/packages
#
# =============================================================================
; [github]
; repository = https://upload.pypi.org/legacy/