From 5b12cb6fcf89e77c1c9186cb371bbb73cda18273 Mon Sep 17 00:00:00 2001 From: mjoppich Date: Tue, 13 Oct 2020 11:10:44 +0200 Subject: [PATCH] pypi test --- .gitignore | 5 ++++- .travis.yml | 2 +- MANIFEST.in | 2 +- README.md | 26 ++++++++++---------------- README.rst | 30 ------------------------------ setup.py | 9 ++++++--- upload.sh | 6 ++++++ 7 files changed, 28 insertions(+), 52 deletions(-) delete mode 100644 README.rst create mode 100644 upload.sh diff --git a/.gitignore b/.gitignore index cc73412..c455485 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,7 @@ examples/slided_test build dist -pIMZ.egg-info \ No newline at end of file +pIMZ.egg-info + +docs/_build +__pycache__ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 98327d1..8216423 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,4 @@ language: python python: - "3.8" script: - - python setup.py develop test + - python3 setup.py develop test diff --git a/MANIFEST.in b/MANIFEST.in index 0cd92ce..62e93f1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,2 @@ -include README.rst CHANGELOG.txt LICENSE.txt +include README.md CHANGELOG.txt LICENSE.txt recursive-include pIMZ/tablefilter * \ No newline at end of file diff --git a/README.md b/README.md index 82c1292..0b19bfc 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,11 @@ ---- -title: 'pIMZ: an integrative framework for imaging mass spectrometry analysis' ---- +# pIMZ: an integrative framework for imaging mass spectrometry analysis -![image](https://readthedocs.org/projects/pimz/badge/?version=latest) - -target - -: - -alt - -: Documentation Status - -[![image](https://travis-ci.org/mjoppich/pIMZ.svg?branch=master)](https://travis-ci.org/mjoppich/pIMZ) +[![Documentation Status](https://readthedocs.org/projects/pimz/badge/?version=latest)](https://pimz.readthedocs.io/en/latest/?badge=latest) +[![Build Status](https://travis-ci.org/mjoppich/pIMZ.svg?branch=master)](https://travis-ci.org/mjoppich/pIMZ) +![PyPI](https://img.shields.io/pypi/v/pIMZ) +![GitHub All Releases](https://img.shields.io/github/downloads/mjoppich/pIMZ/total) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pIMZ) +![PyPI - License](https://img.shields.io/pypi/l/pIMZ) No idea what this framework does \... @@ -32,11 +25,12 @@ format it properly. Installation ============ -The easiest way to install most Python packages is via `easy_install` or -`pip`: +The easiest way to install is via `pip`: $ sudo pip install pIMZ $ sudo pip3 install pIMZ + +or on a user-level: $ pip install pIMZ --user $ pip3 install pIMZ --user diff --git a/README.rst b/README.rst deleted file mode 100644 index 758a2ee..0000000 --- a/README.rst +++ /dev/null @@ -1,30 +0,0 @@ -====================================================================== -pIMZ: an integrative framework for imaging mass spectrometry analysis -====================================================================== - -.. image:: https://readthedocs.org/projects/pimz/badge/?version=latest -:target: https://pimz.readthedocs.io/en/latest/?badge=latest -:alt: Documentation Status - -.. image:: https://travis-ci.org/mjoppich/pIMZ.svg?branch=master - :target: https://travis-ci.org/mjoppich/pIMZ - -No idea what this framework does ... - -... it's not yet ready. But once it is, you will get to know a lot more here! - -This is a "long description" file for the package that you are creating. -If you submit your package to PyPi, this text will be presented on the `public page `_ of your package. - -Note: This README has to be written using `reStructured Text `_, otherwise PyPi won't format it properly. - -Installation ------------- - -The easiest way to install most Python packages is via ``easy_install`` or ``pip``:: - - $ sudo pip install pIMZ - $ sudo pip3 install pIMZ - - $ pip install pIMZ --user - $ pip3 install pIMZ --user diff --git a/setup.py b/setup.py index 8871a1c..72f000f 100644 --- a/setup.py +++ b/setup.py @@ -41,19 +41,22 @@ def run_tests(self): ) -version = "1.0" +version = "1.0a" import pathlib setup(name="pIMZ", version=version, description="pIMZ: an integrative framework for imaging mass spectrometry analysis", - long_description=open("README.rst").read(), + long_description=open("README.md").read(), + long_description_content_type='text/markdown', classifiers=[ # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Programming Language :: Python', - 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Topic :: Scientific/Engineering :: Bio-Informatics', 'Topic :: Scientific/Engineering :: Medical Science Apps.' ], diff --git a/upload.sh b/upload.sh new file mode 100644 index 0000000..58a78a1 --- /dev/null +++ b/upload.sh @@ -0,0 +1,6 @@ +#python3 setup.py register sdist upload + +rm -rf dist +python setup.py sdist +twine upload -r testpypi dist/* +#twine upload dist/* \ No newline at end of file