Skip to main content

One-command PyPI publisher + GitHub pusher. Version-bumps, builds, uploads to PyPI, commits and pushes to GitHub, and syncs the local install — all in one call.

Project description

abstract_pypit

One-command PyPI publisher + GitHub pusher.

Finds the next free version above whatever is on PyPI, bumps setup.py and pyproject.toml, builds sdist + wheel, uploads to PyPI via twine, commits and pushes to GitHub, then syncs the local install — all in one call.

Zero dependencies outside the stdlib except requests.

Install

pip install abstract_pypit

Usage

# from any package directory that has setup.py + pyproject.toml:
from pypit import runit
runit()
# or from the command line:
abstract-pypit

Credentials

PyPI: twine reads ~/.pypirc or TWINE_USERNAME / TWINE_PASSWORD env vars.

GitHub: create pypit/src/envs/.env on the machine running pypit:

GITHUB_OWNER_1=your-username
GITPASS_1=<your-github-pat>
GITHUB_OWNER_2=your-org
GITPASS_2=<org-github-pat>

SSH key at ~/.ssh/github/githubssh_nopass must be registered with GitHub.

Per-package config

Add to the package's own pyproject.toml:

[tool.pypit]
github_owner = "your-org-or-username"   # which org/user owns the repo
github_push  = true                      # set false to skip GitHub entirely

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

abstract_pypit-0.0.1.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

abstract_pypit-0.0.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file abstract_pypit-0.0.1.tar.gz.

File metadata

  • Download URL: abstract_pypit-0.0.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for abstract_pypit-0.0.1.tar.gz
Algorithm Hash digest
SHA256 31c3f03419e261120914c1005d76b4e205d1d694fcca6bcac6ff39288daa4409
MD5 750fb80a773fcaeb10e037df8295f3b2
BLAKE2b-256 bc10fcf8291e0a2d9f3234fb8ebb39e824b5e7a5a7c5e9613fe95f64636a80cb

See more details on using hashes here.

File details

Details for the file abstract_pypit-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: abstract_pypit-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for abstract_pypit-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f598219afc29b8ed745602a19b950df9ca409078e596a51b255e5b07fb1d08c
MD5 0ff184731f88b451121b6d98ed86c481
BLAKE2b-256 f060b7a4440d432d5d21444982a4f7d406c5d94a592138da81c0537137c96a5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page