Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated Package on PyPi - use automated build & deploy on push to repo or cronjob #30

Open
deepbrook opened this issue Nov 22, 2017 · 3 comments

Comments

@deepbrook
Copy link
Contributor

deepbrook commented Nov 22, 2017

Since the current version on PyPi isn't importable (throws a hearty ImportError on calling import pirant), I suggest automating all or part of the build process.

You can check out the automated deploy process and how to set it up here:
https://docs.travis-ci.com/user/deployment/pypi/

You could also, perhaps, consider a dev branch, via which you can deploy a pre-release package .
If you're new to the workflow with dev branches, have a look here:
http://nvie.com/posts/a-successful-git-branching-model/

For dev branch builds to work, the version number in setup.py requires the appendix d<number> or similar. See here for more on that:
https://packaging.python.org/tutorials/distributing-packages/#choosing-a-versioning-scheme

This is, all of it, of course a wee bit more than necessary, but perhaps it's a neat practice excercise ? You could add issues for newbies for them to have a go at it.

@deepbrook deepbrook changed the title Outdated Package on PyPi - use autoDeploy to build latest version on push to dev Outdated Package on PyPi - use automated build & deploy on push to repo or cronjob Nov 22, 2017
@aayush26
Copy link
Owner

@nlsdfnbch Thanks for opening the issue. I didn't released new version with the latest commits as I wanted to invest more time on covering more APIs and setting up stuffs before going live. The initial version in PyPi that I uploaded was just to learn how PyPi works.
Also, thanks for including links to read and look further on the topics and practices you mentioned. I will be going through it.

Did you try ?

python -m pip install -U pirant

and then in Python terminal,

from pirant import DevRant

The import works fine for me.

@deepbrook
Copy link
Contributor Author

That installation does work, yes. :)
Glad if the links are of use to you - wasn't sure how knowledgeable you're about the whole process and didn't want to be condescending :)

@aayush26
Copy link
Owner

Though, I have wrote good amount of code in python, but all for personal purpose like crawlers or classifiers/ML stuffs. Hence, never followed coding standards.
This is my first time trying to build a proper python package. And hence, you can consider me as an amatuer. Feel free to share as many thoughts as you want.


Keeping this issue open to automate the pypi dev and prod deployments


This was referenced Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants