Skip to content

fraser-langton/publish-python-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

publish-python-package

Publish a python package in as little commands as possible

1. Change to project folder

cd <project/path/here/package_name>

2. Package files

(for /D %a in ("<package_name>.egg-info" "build" "dist") do rd /s /q %~a) - if directory not cleaned (step 4)
(python -m pip install --upgrade build) - if not already installed
python -m build

3. Upload files

(python -m pip install --user --upgrade twine) - if not already installed
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

4. Clean directory

for /D %a in ("<package_name>.egg-info" "build" "dist") do rd /s /q %~a

All one ctrl V

cd <project/path/here/package_name>
python -m build
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
for /D %a in ("<package_name>.egg-info" "build" "dist") do rd /s /q %~a

About

Publish a python package in as little commands as possible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published