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

Python Packaging Setup #1

Closed
2 tasks done
kb1lqc opened this issue Nov 30, 2017 · 6 comments
Closed
2 tasks done

Python Packaging Setup #1

kb1lqc opened this issue Nov 30, 2017 · 6 comments

Comments

@kb1lqc
Copy link
Member

kb1lqc commented Nov 30, 2017

Starting off by packaging the project from the start. Since we're starting with python 3 I'm using the following guides:

@kb1lqc
Copy link
Member Author

kb1lqc commented Nov 30, 2017

Cool, we can create windows installation programs!

image

@kb1lqc
Copy link
Member Author

kb1lqc commented Jan 28, 2018

Oh wow we can automate the python package deployment! https://docs.travis-ci.com/user/deployment/pypi/

@kb1lqc
Copy link
Member Author

kb1lqc commented Jan 30, 2018

I can see that my locally generated source distribution can install and be imported with from faradayio import faraday

>>> from faradayio import faraday
>>> dir(faraday)
['Faraday', 'Monitor', 'TunnelServer', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'pytun', 'sliplib', 'threading']

This appears to have the proper Faraday, Monitor, and TunnelServer classes available as expected!

@kb1lqc
Copy link
Member Author

kb1lqc commented Jan 30, 2018

I have Travis-CI encryption working on my computer after installing ruby. However. I'm concerned that I need to perform the encrypt command when working in a faradayrf checked out repository. This may work if I encrypt it with my personal kb1lqc/faradayio repository but when we want to upload it from the FaradayRF repo it may fail to decode since Travis-CI associates each repo with a different public/private key.

Is this true @reillyeon @hdkmike @el-iso @lqdev?

@kb1lqc
Copy link
Member Author

kb1lqc commented Jan 30, 2018

We will see how this goes. I manually made travis encrypt use faradayrf/faradayio as the repository so hopefully it signed with that private key.

@kb1lqc
Copy link
Member Author

kb1lqc commented Jan 30, 2018

Closing since the main intent of this ticket has been achieved and #32 covers actual deployments from Travis CI.

I have performed an automated upload attempt on build#86. It appears that the deployment was attempted but halted since the deployment may have been required to be from a FaradayRF repository branch. The following output were the last two lines in the build:

Skipping a deployment with the pypi provider because this branch is not permitted
Done. Your build exited with 0.

This appears to have at least triggered an automated deployment of an otherwise good module.

@kb1lqc kb1lqc closed this as completed Jan 30, 2018
kb1lqc added a commit that referenced this issue Feb 1, 2018
* Added deploy section with login credentials for pypi
* Encrypted the password for `faradayrf/faradayio` repository per #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant