Skip to content

Instantly share code, notes, and snippets.

@at1as
Created June 1, 2015 14:31
Show Gist options
  • Save at1as/f3eecf2c71bfa02e14d5 to your computer and use it in GitHub Desktop.
Save at1as/f3eecf2c71bfa02e14d5 to your computer and use it in GitHub Desktop.
Publishing Gems & Python Packages
*PyPi Package*
Structure:
├── LICENSE.md
├── README.md
├── hello_world
│   ├── __init__.py
│   ├── hello_world.py
├── hello_world_runner.py
└── setup.py
Commands:
python setup.py install
python setup.py sdist
twine upload dist/*
*RubyGems*
Structure:
├── Gemfile
├── LICENSE.md
├── README.md
├── bin
│   └── hello_world.rb
├── lib
│   └── hello_world.rb
└── hello_world.gemspec
Commands:
gem build hello_world.gemspec
gem push hello_world-0.0.1.gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment