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.2.tar.gz (15.4 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.2-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: abstract_pypit-0.0.2.tar.gz
  • Upload date:
  • Size: 15.4 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.2.tar.gz
Algorithm Hash digest
SHA256 82c0d61465f5c3d4ec66a9e61113b1b9fbd8fdc71a297ff95d39e308a62ff087
MD5 8f01772ccb76ded09624a8da347e5c1f
BLAKE2b-256 b6ba2f3968054cf69758b4e28e256c5a10ba31372e137d9d2be815aea052e63c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: abstract_pypit-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9eb65370ecc582bc1472d3f3710e7f136d40f1dedca14fd5a9f35359c62f3172
MD5 614b7b848a6f30ec7c994ee90cb260d6
BLAKE2b-256 4ba697703e6615eda014149657b3d2ac8db7da6a938121a8a446fa41ec756e63

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