Skip to content

Commit

Permalink
Use dist_name python-cellcutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
theochem-ci-bot committed Apr 14, 2019
1 parent b3c0200 commit b0ba5ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .roberto.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project:
name: cellcutoff
packages:
- conda_name: cellcutoff
- dist_name: cellcutoff
tools:
- write-cmake-version
- cardboardlint-static
Expand All @@ -13,7 +13,7 @@ project:
- build-conda
- deploy-conda
- deploy-github
- conda_name: python-cellcutoff
- dist_name: python-cellcutoff
path: python-cellcutoff
tools:
- write-py-version
Expand Down
11 changes: 4 additions & 7 deletions python-cellcutoff/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@
from setuptools import setup, Extension


NAME = 'cellcutoff'


def get_version():
"""Read __version__ from version.py, with exec to avoid importing it."""
try:
with open(os.path.join(NAME, 'version.py'), 'r') as f:
with open(os.path.join('cellcutoff', 'version.py'), 'r') as f:
myglobals = {}
exec(f.read(), myglobals) # pylint: disable=exec-used
return myglobals['__version__']
Expand All @@ -60,10 +57,10 @@ def finalize_options(self):


setup(
name=NAME,
name='python-cellcutoff',
version=get_version(),
package_dir={NAME: NAME},
packages=[NAME],
package_dir={'cellcutoff': 'cellcutoff'},
packages=['cellcutoff'],
description='CellCutoff is a library for periodic boundary conditions '
'and real-space cutoff calculations.',
author='The CellCutoff development team',
Expand Down

0 comments on commit b0ba5ee

Please sign in to comment.