-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update setup.py and get version info from git tags.
We use the requirements.txt file in travis as a way to install the minimal versions for testing, but this change lets us use the same file to get dependency information in setup.py so we have that info in one canonical location. We also add scripts to build packages and upload them to PyPI. Instructions for doing this are in the README. Review: @DanielSank
- Loading branch information
Showing
9 changed files
with
68 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
build/ | ||
dist/ | ||
labrad/version.py | ||
pylabrad.egg-info/ | ||
*.egg | ||
*.pyc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
include *.txt | ||
include *.ini | ||
include *.txt | ||
include *.ini |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Build distribution packages for pylabrad. | ||
# | ||
# We first clear out the dist/ directory which may contain old packages from | ||
# other builds, so that we don't accumulate lots of packages locally. | ||
|
||
rm -r dist/ | ||
python setup.py sdist --format=zip,gztar \ | ||
bdist_wheel --universal |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Use the twine package to upload built packages to pypi. | ||
# | ||
# twine is the recommended package for interacting with PyPI because it is | ||
# careful about only using HTTPS to connect so that credentials are kept safe. | ||
# To use this, you'll need to first `pip install twine` on your local machine. | ||
# And of course you'll need to have already built packages and have an account | ||
# on PyPI with permissions to update pylabrad packages. | ||
|
||
twine upload dist/* |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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