Commit 6757b3f5 authored by Chris Kerr's avatar Chris Kerr
Browse files

Merge branch '55-update-package-metadata-for-pypi' into 'master'

Resolve "Update package metadata for PyPI"

Closes #55

See merge request !31
parents 87e409c3 3def0fa2
Pipeline #15415 passed with stages
in 1 minute and 59 seconds
...@@ -12,6 +12,7 @@ __pycache__ ...@@ -12,6 +12,7 @@ __pycache__
*.pyc *.pyc
*.so *.so
build/* build/*
dist/*
*module.c *module.c
MANIFEST MANIFEST
......
...@@ -56,4 +56,4 @@ test_lint: ...@@ -56,4 +56,4 @@ test_lint:
before_script: before_script:
- pip install tox - pip install tox
script: script:
- tox -e flake8,reuse - tox -e flake8,reuse,twine
...@@ -5,14 +5,27 @@ ...@@ -5,14 +5,27 @@
# #
# SPDX-License-Identifier: LGPL-3.0-or-later # SPDX-License-Identifier: LGPL-3.0-or-later
import os.path
from setuptools import setup from setuptools import setup
def read(filename):
repo_dir = os.path.dirname(__file__)
full_path = os.path.join(repo_dir, filename)
with open(full_path, 'r') as f:
return f.read()
setup( setup(
name='galumph', name='galumph',
version='0.2.0', version='0.3.0',
description='Calculate ALM using GPU acceleration', description='Calculate ALM using GPU acceleration',
long_description=read('README.md'),
long_description_content_type='text/markdown',
url='https://git.embl.de/grp-svergun/galumph', url='https://git.embl.de/grp-svergun/galumph',
author='Christopher Kerr',
author_email='chris.kerr@mykolab.ch',
classifiers=[ classifiers=[
'Development Status :: 3 - Alpha', 'Development Status :: 3 - Alpha',
'Environment :: Console', 'Environment :: Console',
...@@ -20,11 +33,13 @@ setup( ...@@ -20,11 +33,13 @@ setup(
'Intended Audience :: Science/Research', 'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)', 'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
'Natural Language :: English', 'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
], ],
python_requires='>=3.5',
requires=["pyopencl"], requires=["pyopencl"],
packages=[ packages=[
'galumph', 'galumph',
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# List Python 3.7 by default as that is the version installed on Debian 10 # List Python 3.7 by default as that is the version installed on Debian 10
# Developers on other systems should set the TOXENV environment # Developers on other systems should set the TOXENV environment
# variable to the Python versions on their system # variable to the Python versions on their system
envlist = py37,flake8,reuse envlist = py37,flake8,reuse,twine
[testenv] [testenv]
# Use the system packages for pyopencl, numpy, scipy etc # Use the system packages for pyopencl, numpy, scipy etc
...@@ -45,6 +45,15 @@ deps = ...@@ -45,6 +45,15 @@ deps =
commands = commands =
reuse lint reuse lint
[testenv:twine]
basepython = python3
# Actually we only need the source package to be built and added to {distdir}
skip_install = false
deps =
twine
commands =
twine check {distdir}/*
# Additional configuration for non-tox tools # Additional configuration for non-tox tools
[flake8] [flake8]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment