-
-
Save bbarker/65358df09a481cf6ade88112d3c5e907 to your computer and use it in GitHub Desktop.
Nix environment for releasing pypi package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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