Skip to content

Commit

Permalink
Merge branch 'main' into multi_version_release
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Nov 25, 2023
2 parents 209d039 + 800f1d3 commit 4850010
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .ci_support/environment-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
- ase =3.22.1
- coverage
- numpy =1.26.0
- scipy =1.11.3
- scipy =1.11.4
- spglib =2.1.0
- phonopy =2.20.0
- structuretoolkit =0.0.11
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependencies:
- ase =3.22.1
- coverage
- numpy =1.26.0
- scipy =1.11.3
- scipy =1.11.4
- spglib =2.1.0
- phonopy =2.20.0
- structuretoolkit =0.0.12
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Convert dependencies
run: |
cp .ci_support/environment-old.yml environment.yml
python .ci_support/release.py; cat setup.py
python .ci_support/release.py; cat pyproject.toml
- name: Build
run: python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
Expand Down
2 changes: 1 addition & 1 deletion atomistics/workflows/phonons/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def plot_band_structure(
axis=None,
*args,
label: Optional[str] = None,
**kwargs
**kwargs,
):
"""
Plot bandstructure calculated with :meth:`.get_bandstructure`.
Expand Down
4 changes: 2 additions & 2 deletions atomistics/workflows/phonons/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def plot_band_structure(
axis=axis,
*args,
label=label,
**kwargs
**kwargs,
)

def plot_dos(self, *args, axis=None, **kwargs):
Expand All @@ -216,5 +216,5 @@ def plot_dos(self, *args, axis=None, **kwargs):
dos_total=self._dos_dict["total_dos"],
*args,
axis=axis,
**kwargs
**kwargs,
)
63 changes: 63 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "atomistics"
description = "Interfaces for atomistic simulation codes and workflows"
authors = [
{ name = "Jan Janssen", email = "[email protected]" },
]
readme = "README.md"
license = { file = "LICENSE" }
keywords = ["pyiron"]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"ase==3.22.1",
"numpy==1.26.0",
"scipy==1.11.4",
"spglib==2.1.0",
]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/pyiron/atomistics"
Documentation = "https://atomistics.readthedocs.io"
Repository = "https://github.com/pyiron/atomistics"

[project.optional-dependencies]
phonopy = [
"phonopy==2.20.0",
"seekpath==2.1.0",
"structuretoolkit==0.0.12",
]
gpaw = [
"gpaw==23.9.1",
]
lammps = [
"pylammpsmpi==0.2.6",
"jinja2==3.1.2",
"pandas==2.1.3",
]

[tool.setuptools]
packages = ["atomistics"]

[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "atomistics/_version.py"
parentdir_prefix = "atomistics"
tag_prefix = "atomistics-"
45 changes: 2 additions & 43 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
"""
Setuptools based setup module
"""
from setuptools import setup, find_packages
from pathlib import Path
import versioneer
from setuptools import setup

setup(
name='atomistics',
version=versioneer.get_version(),
description='atomistics - materials science workgflows to calculate material properties',
long_description=Path("README.md").read_text(),
long_description_content_type='text/markdown',
url='https://github.com/pyiron/atomistics',
author='Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department',
author_email='[email protected]',
license='BSD',

classifiers=['Development Status :: 5 - Production/Stable',
'Topic :: Scientific/Engineering :: Physics',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'
],

keywords='pyiron',
packages=find_packages(exclude=["*tests*", "*docs*", "*binder*", "*conda*", "*notebooks*", "*.ci_support*"]),
install_requires=[
'ase==3.22.1',
'numpy==1.26.0',
'scipy==1.11.3',
'spglib==2.1.0',
],
extras_require={
"phonopy": ['phonopy==2.20.0', 'seekpath==2.1.0', 'structuretoolkit==0.0.12'],
"gpaw": ['gpaw==23.9.1'],
"lammps": ['pylammpsmpi==0.2.6', 'jinja2==3.1.2', 'pandas==2.1.3']
},
cmdclass=versioneer.get_cmdclass(),
)
setup()

0 comments on commit 4850010

Please sign in to comment.