Skip to content

Commit 495f2b7

Browse files
authored
Merge pull request #34 from wwu-mmll/develop
Merge dev: improve setup.py and update build badge
2 parents 3120601 + b523992 commit 495f2b7

File tree

3 files changed

+47
-13
lines changed

3 files changed

+47
-13
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PHOTONAI release deployment on PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
name: Build and publish to PyPI
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python 3.7.6
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.7.6
17+
- name: Install pypa/build
18+
run: pip install build
19+
- name: Build a binary wheel and a source tarball
20+
run: python -m build --sdist --wheel --outdir dist/ .
21+
- name: Publish distribution to Test PyPI
22+
uses: pypa/gh-action-pypi-publish@master
23+
with:
24+
user: __token__
25+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![PHOTON LOGO](http://www.photon-ai.com/static/img/photon/photon-logo-github.png "PHOTON Logo")
22

3-
[![Build Status](https://travis-ci.com/wwu-mmll/photonai.svg?branch=master)](https://travis-ci.com/wwu-mmll/photonai)
3+
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/wwu-mmll/photonai/PHOTONAI%20test%20and%20test%20deploy)](https://github.com/wwu-mmll/photonai/actions)
44
[![Coverage Status](https://coveralls.io/repos/github/wwu-mmll/photonai/badge.svg?branch=master)](https://coveralls.io/github/wwu-mmll/photonai?branch=master)
55
[![Github Contributors](https://img.shields.io/github/contributors-anon/wwu-mmll/photonai?color=blue)](https://github.com/wwu-mmll/photonai/graphs/contributors)
66
[![Github Commits](https://img.shields.io/github/commit-activity/y/wwu-mmll/photonai)](https://github.com/wwu-mmll/photonai/commits/master)

setup.py

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,38 @@
55
use_setuptools()
66
from setuptools import setup, find_packages
77

8-
# from setuptools.command.install import install
9-
#
10-
# class Modulenstalltio
11-
128

139
__version__ = '2.1.0'
1410

11+
with open("README.md", "r", encoding="utf-8") as fh:
12+
long_description = fh.read()
13+
1514
setup(
1615
name='photonai',
1716
packages=find_packages(),
1817
include_package_data=True,
1918
version=__version__,
20-
description="""
21-
PHOTONAI
22-
is a rapid prototyping framework enabling (not so experienced) users to build, train, optimize, evaluate,
23-
and share even complex machine learning (ML) pipelines with very high efficiency.
24-
""",
19+
description="PHOTONAI is a high level python API for designing and optimizing machine learning pipelines.",
20+
long_description=long_description,
21+
long_description_content_type="text/markdown",
22+
license = "GPLv3",
2523
author='PHOTONAI Team',
2624
author_email='[email protected]',
27-
url='https://github.com/mmll-wwu/photonai.git',
28-
download_url='https://github.com/wwu-mmll/photonai/archive/' + __version__ + '.tar.gz',
25+
url='https://www.photon-ai.com/',
26+
project_urls={
27+
"Source Code": "https://github.com/wwu-mmll/photonai/",
28+
"Documentation": "https://wwu-mmll.github.io/photonai/",
29+
"Bug Tracker": "https://github.com/wwu-mmll/photonai/issues",
30+
},
31+
download_url='https://pypi.org/project/photonai/#files',
2932
keywords=['machine learning', 'deep learning', 'neural networks', 'hyperparameter'],
30-
classifiers=[],
33+
classifiers=[
34+
"Programming Language :: Python :: 3",
35+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
36+
"Operating System :: OS Independent",
37+
'Intended Audience :: Science/Research',
38+
'Intended Audience :: Developers',
39+
],
3140
install_requires=[
3241
'numpy',
3342
'matplotlib',

0 commit comments

Comments
 (0)