Skip to content

Instantly share code, notes, and snippets.

@bbarker
Forked from mickours/release.nix
Created June 19, 2018 20:00
Show Gist options
  • Save bbarker/65358df09a481cf6ade88112d3c5e907 to your computer and use it in GitHub Desktop.
Save bbarker/65358df09a481cf6ade88112d3c5e907 to your computer and use it in GitHub Desktop.
Nix environment for releasing pypi package
# Use this environment to publish this package on pypi:
#
# # Enter the environment
# nix-shell release.nix
#
# # create the package
# python setup.py bdist
#
# # register to pypi (if not registered yet)
# twine register dist/project_name-x.y.z.tar.gz
#
# # upload you package
# twine upload dist/project_name-x.y.z.tar.gz
with import <nixpkgs> {};
(pkgs.python36.withPackages (ps: with ps; [twine setuptools])).env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment