gup
This package allows to quickly initialise new Python package using bleeding edge tools like linters, just run:
pip install gupgup <your-package-name>
Now you are able to:
cd <your-package-name>make check # To run tests and lintersmake publish # To publish your new package to PyPi.org to make it accessable to everyone
This is also a boilerplate for a new python package, so you can create a new package this way as well:
git clone git@github.com:albertas/gup.git <your-package-name>cd <your-package-name>make init <your-package-name>- to start your modern package.
Development
Commonly used commands for package development:
make check- run unit tests and linters.make fix- format code and fix detected fixable issues.make publish- publishes current package version to pypi.org.make compile- bump and freeze dependency versions in requirements*.txt filesmake sync- upgrade installed dependencies in Virtual Environment (executed aftermake compile)
Toolset
This package uses these cutting edge tools:
- ruff - for linting and code formatting
- mypy - for type checking
- pip-audit - for known vulnerability detection in dependencies
- deadcode - for unused code detection
- pytest - for collecting and running unit tests
- coverage - for code coverage by unit tests
- hatch - for publishing package to pypi.org
- uv - for Python virtual environment and dependency management
- pyproject.toml - configuration file for all tools
- Makefile - aliases for commonly used command line commands
Feature requests:
- Newly installed package could have virtualenv initialised.
- Check if
gitis available before trying to initialise the repository. - remove init Makefile alias and cli.py command python files.
- make a cli command: this package should be installable. Ideally this flow should work:
pip install gupgup mynewpackagecd mynewpackage&&make check&&make publish
- Add pre-commit hooks with all the tools enabled.
- codspeed.io could be considered for Continuous integration pipeline
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gup-0.0.1.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gup-0.0.1-py3-none-any.whl
(3.3 kB
view details)
File details
Details for the file gup-0.0.1.tar.gz.
File metadata
- Download URL: gup-0.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3306e2c20d20cff02a6314d74ba993414548056c55b813877ccefa511c0c5375
|
|
| MD5 |
3cc5f65fb3d7a5ba995cff64a550c558
|
|
| BLAKE2b-256 |
7d38613f9e264e6572d3e640542d49eee60bf601816962fb2f575eb23160141d
|
File details
Details for the file gup-0.0.1-py3-none-any.whl.
File metadata
- Download URL: gup-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6414088e90c72bcbaf90b0d5ed085638b1858837b7d8c696a39e66d9bd13fa7
|
|
| MD5 |
6ed26610cc9843c7072da0068051e329
|
|
| BLAKE2b-256 |
b1c2ef55221a41a782ca7315249458123564a83e07c737d6726acbc0bdb1646f
|