Skip to main content

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

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.3.tar.gz (15.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.3-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for abstract_pypit-0.0.3.tar.gz
Algorithm Hash digest
SHA256 84c9fd663e0fc0c8797f1589b162a9e46336da665f3b536fa0123a2c15517d5d
MD5 8f3fd3bfd2ffb1ae2cd7acf52d703b3d
BLAKE2b-256 ce854255c8c7fb4d080b194566d3991c40bb544a95b01cf357638949c7675447

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for abstract_pypit-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0d81df40244cb6d240f97abe9b71537e61013f3671d63cf5c7581dfb7168b023
MD5 f17d7380b20baa8dcf3719fa71981ba1
BLAKE2b-256 3547e2ff878694b8e3a804e4da5ec11f4efee986baf014c2a2008e6da88496e3

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