Package: pybundler
PybundlerManages python applicatons or packages.Create a basic template of python package and manage python apps or packages.
The purpose of this tool is offer a similar experience with ruby's bundler.
This package is based onpypkg-generatorandpipenv.InstallationOS X & Linux:From PYPI$pip3installpybundlerfrom the source$gitclonehttps://github.com/dany2691/pybundler.git
$cdpybundler
$python3setup.pyinstallUsage exampleOpen a terminal and type:$pybundler--helpAnd it'll display:Options:--install-allInstallsallpackagesfromPipfile-i,--installTEXTInstallagivenpackageorthecontentofthePipfile-u,--uninstallTEXTuninstallsagivendependecy-d,--devIfitisTrue,installdependencyindevsection--lockCreatesorupdatesthePipfile.lock-s,--shellSpawnsashellwithinthevirtualenv-b,--build-wheelCreatesasourcearchiveandawheelforyourpackage-t,--test-releaseUploadsthepackagetotest.pypi.org-r,--releaseUploadsthepackagetopypi.organdpushesittothegitremote-p,--packageCreatesanewpythonpackagefromscratch-v,--versionShowsthecurrentversionofthepackage--helpShowthismessageandexit.The purpose of this tool is offer a similar experience with ruby's bundler. So you can create a new package from scratch.$pybundler--packageThen, a list of question will prompted in order to customize the new package:Please,enterthenanmeofthepackage::greate-project
Enterthepathoftheproject(default:currentdir)[]:
Doyouwanttoincludealicensefile?[y/N]:y
Doyouwanttoincludeacodeofconductfile?[y/N]:y
DoyouwanttoincludeaPipfilefile?[y/N]:y
Doyouwanttoinstallpytest?[y/N]:ySo you can install dependencies like pipenv in a virtual enviroment:$pybundler--installnumpy==1.16.2You can install dev dependencies, as shown below:$pybundler--installpytest--devSo, like pipenv, is possible to install all dependencies from Pipfile$pybundler--install-allThe following option generates or updates Pipfile.lock:$pybundler--lockThe following option spawns a shell within the virtualenv:$pybundler--shellTo see the current version installed in the system:$pybundler--versionIn order to automate the publishing of the new package, we provide the next options for building and uploading the package to pypi and the remote git service.This is a replacement forpython setup.py sdist bdist_wheel$pybundler--build-wheelThe next option, uploads the package to test.pypi.org:$pybundler--test-releaseAnd last but not least, this one, uploads the package to pypi.org and pushes it to the git remote:$pybundler--releaseDevelopment setupThis project usespipenvfor dependecy resolution. It's a kind of mix between
pip and virtualenv. Follow the next instructions to setup the development enviroment.$gitclonehttps://github.com/dany2691/pybundler.git
$cdpybundler
$pipenvshell
$pipenvinstall-e.To run the test-suite, inside the pybundler directory:$pytest-vvtest/Release History0.3.0ADD: Add --version flag to the options0.2.1FIX: Fix the Documentation0.2.0CHANGE: New name of the project,pybundlerinstead ofpy-bundler0.1.1FIX: README.md fixed,text/markdowninstead oftext/markadown0.1.0The first proper releaseADD: Add cli module0.0.1Work in progressMetaDaniel Omar Vergara Pérez –@dan1_net–daniel.omar.vergara@gmail.comhttps://github.com/dany2691ContributingFork it (https://github.com/dany2691/pybundler)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull Request