Skip to content
Snippets Groups Projects
Commit d6761b5d authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Added pypi suff

I added some material needed for pypi packaging.
parent d5ddc81a
No related branches found
No related tags found
No related merge requests found
......@@ -8,3 +8,5 @@
!/README
!/module.type
!/test
!/MANIFEST.in
!/README.rst
include VERSION
include Plumed.h
......@@ -39,5 +39,18 @@ pip:
cp ../src/wrapper/Plumed.h .
cp ../VERSION .
ifndef python_bin
python_bin=python
endif
.PHONY: pypi
pypi:
mkdir -p pypi
cp -r test pypi/
cp ../src/wrapper/Plumed.h README.rst MANIFEST.in cplumed.pxd plumed.pyx setup.py ../VERSION pypi/
cd pypi ; $(python_bin) setup.py sdist
echo "now use: $(python_bin) -m twine upload dist/plumed-$(VERSION).tar.gz"
clean:
rm -fr *.so plumed.cpp build Plumed.h VERSION
rm -fr *.so plumed.cpp build Plumed.h VERSION pypi test/logfile test/bck* pypi
Python wrappers for plumed
==========================
Install using the following commands::
# install dependencies
python -m pip install cython numpy
# install plumed
python -m pip install plumed
WARNING: You will need to also build and install the plumed library (see http://www.plumed.org) and set the environment variable
`PLUMED_KERNEL` to point to the file `libplumedKernel.so` (or `libplumedKernel.dylib`). Something like this should work::
PLUMED_KERNEL=/path/to/libplumedKernel.so
python
>>> import plumed
>>> p=plumed.Plumed()
......@@ -70,10 +70,28 @@ try:
except:
include_dirs.append(".")
def readme():
with open('README.rst') as f:
return f.read()
setup(
name=plumedname,
version=plumedversion,
description='Python interface to PLUMED',
long_description=readme(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Physics',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
author='Gareth A. Tribello',
author_email='plumed-users@googlegroups.com',
url='http://www.plumed.org',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment