-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from broadinstitute/release-v0.2.1
Release v0.2.1
- Loading branch information
Showing
6 changed files
with
100 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release to PyPI | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
release: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Install Tools | ||
run: | | ||
python3 -m pip install --user --upgrade setuptools wheel | ||
python3 -m pip install --user --upgrade twine | ||
- name: Package and Upload | ||
env: | ||
TANGRAM_VERSION: ${{ github.event.release.tag_name }} | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} | ||
run: | | ||
python3 setup.py sdist bdist_wheel | ||
python3 -m 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 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,40 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import setuptools | ||
|
||
with open("README.md","r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
d = {} | ||
with open('tangram/_version.py') as f: exec(f.read(), d) | ||
|
||
setuptools.setup( | ||
name="tangram-sc", | ||
version=d['__version__'], | ||
author="Tommaso Biancalani, Gabriele Scalia", | ||
author_email="tommaso.biancalani@gmail.com", | ||
description="Spatial alignment of single cell transcriptomic data.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/broadinstitute/Tangram", | ||
packages=setuptools.find_packages(), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3.6", | ||
"Operating System :: MacOS", | ||
], | ||
python_requires='>=3.6', | ||
install_requires=[ | ||
"pip>=19.0.0", | ||
"torch>=1.4.0", | ||
"pandas>=1.1.0", | ||
"numpy>=1.19.1", | ||
"scipy>=1.5.2", | ||
"matplotlib>=3.0.0", | ||
"seaborn>=0.10.1", | ||
"scanpy==1.6.0", | ||
# "jupyterlab>=2.2.6", | ||
] | ||
) | ||
|
||
|
||
|
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,3 +1,4 @@ | ||
from ._version import __version__ | ||
from .mapping_utils import * | ||
from .utils import * | ||
from .plot_utils import * |
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,2 @@ | ||
import os | ||
__version__ = os.environ.get('TANGRAM_VERSION') |