Skip to content

Add setup.py and prepare for packaging#1

Open
bennuttall wants to merge 1 commit into
M1ke:masterfrom
bennuttall:master
Open

Add setup.py and prepare for packaging#1
bennuttall wants to merge 1 commit into
M1ke:masterfrom
bennuttall:master

Conversation

@bennuttall

Copy link
Copy Markdown

I sorted it out enough for the pull-deploy and push-deploy scripts to get as far as trying to read the config file, so it probably works with a valid config file.

  1. git clone
  2. make a venv and activate it (see https://gist.github.com/bennuttall/9f35ab1f41136fbf10fd)
  3. pip install boto3 requests pyyaml
  4. python setup.py develop
  5. python setup.py install (for scripts)
  6. Sort out your config.yaml
  7. Try running pull-deploy and push-deploy
  8. Build sdist and wheel: python setup.py sdist bdist_wheel
  9. ls dist will show the built files (a .tar.gz and a .whl)
  10. Register on PyPI: https://pypi.org/account/register/
  11. Put a .pypirc in your homedir
  12. twine upload dist/*

See https://packaging.python.org/ for more info

Feel free to ping me if you have any questions.

@M1ke

M1ke commented Mar 26, 2019

Copy link
Copy Markdown
Owner

Thanks for this - sorry for my slow response! I'll test it myself and look to merge then deploy to pypi

@bennuttall

Copy link
Copy Markdown
Author

I wondered if s3pulldeploy would be a better module name?

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

Successfully merging this pull request may close these issues.

2 participants