-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create the infrastructure to make a package (setuptools/pip), uploa…
…dable to PyPI
- Loading branch information
1 parent
72eacf3
commit e27b17e
Showing
4 changed files
with
57 additions
and
0 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,19 @@ | ||
# How this package was built for PyPI | ||
|
||
- installing 'build' and 'twine' via pip | ||
|
||
`python3 -m pip install --upgrade build` | ||
`python3 -m pip install --upgrade twine` | ||
|
||
- getting an API token from PyPI and placing in ~/.pypirc | ||
|
||
- in top-level (where pyptoject.toml resides) `python -m build` | ||
|
||
This creates package files in the dists/ subdirectory | ||
|
||
- upload | ||
testpypi: `python3 -m twine upload --repository testpypi dist/* ` | ||
live pypi: `python3 -m twine upload --repository pypi 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" |
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,28 @@ | ||
[metadata] | ||
name = spacemake | ||
version = 0.0.1 | ||
author = Nikolaos Karaiskos Tamás Sztanka-Tóth Marvin Jens | ||
author_email = [email protected] | ||
description = A bioinformatic pipeline for the analysis of spatial transcriptomic data | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/rajewsky-lab/spacemake | ||
#project_urls = | ||
# Bug Tracker = https://github.com/rajewsky-lab/spacemake/issues | ||
# classifiers = | ||
# Programming Language :: Python :: 3 | ||
# License :: OSI Approved :: MIT License | ||
# Operating System :: OS Independent | ||
license = MIT | ||
|
||
[options] | ||
python_requires = >=3.6 | ||
package_dir = | ||
= scripts | ||
packages = spacemake | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
alnstats = spacemake.alnstats:cmdline | ||
preprocess = spacemake.preprocess:cmdline | ||
spacemake = spacemake.smk:cmdline |
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,4 @@ | ||
if __name__ == "__main__": | ||
from setuptools import setup | ||
|
||
setup() |