forked from FlorianRhiem/mogli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added setup.py and uploaded mogli to PyPI.
- Loading branch information
1 parent
dc0f8ce
commit baac59d
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
from setuptools import setup | ||
import os.path | ||
import shutil | ||
import subprocess | ||
|
||
|
||
def create_required_files(): | ||
""" | ||
Creates the files required for building a package. | ||
""" | ||
# Manifest | ||
if not os.path.isfile('MANIFEST.in'): | ||
with open('MANIFEST.in', 'w') as manifest_in: | ||
manifest_in.write('include *.txt\n') | ||
manifest_in.write('include *.rst\n') | ||
|
||
# License | ||
if not os.path.isfile('LICENSE.txt'): | ||
shutil.copyfile('LICENSE', 'LICENSE.txt') | ||
|
||
# Readme in reST format | ||
if not os.path.isfile('README.rst'): | ||
subprocess.call(['pandoc', 'README.md', '-t', 'rst', '-o', 'README.rst']) | ||
|
||
create_required_files() | ||
# README.txt was created in the function above, so we can use its content for | ||
# the long description: | ||
with open('README.rst') as file: | ||
long_description = file.read() | ||
|
||
setup(name='mogli', | ||
version='0.2.0', | ||
description='Simple visualization of molecules in python', | ||
long_description=long_description, | ||
author='Florian Rhiem', | ||
author_email='[email protected]', | ||
url='https://github.com/FlorianRhiem/mogli', | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Science/Research', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python', | ||
'Topic :: Scientific/Engineering :: Visualization', | ||
'Topic :: Scientific/Engineering :: Chemistry', | ||
'Topic :: Scientific/Engineering :: Physics' | ||
], | ||
py_modules=['mogli'], | ||
install_requires=['glfw', 'gr', 'numpy', 'PyOpenGL'], | ||
) |