Skip to content

Commit

Permalink
* create the infrastructure to make a package (setuptools/pip), uploa…
Browse files Browse the repository at this point in the history
…dable to PyPI
  • Loading branch information
marvin-jens committed Jul 7, 2021
1 parent 72eacf3 commit e27b17e
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build_instructions.txt
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/* `



6 changes: 6 additions & 0 deletions pyproject.toml
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"
28 changes: 28 additions & 0 deletions setup.cfg
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
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if __name__ == "__main__":
from setuptools import setup

setup()

0 comments on commit e27b17e

Please sign in to comment.